00001 /*========================================================================= 00002 00003 Program: 3DMed 00004 Date: $Date: 2014-02-25 18:30:00 +0800 $ 00005 Version: $Version: 4.6.0 $ 00006 Copyright: MIPG, Institute of Automation, Chinese Academy of Sciences 00007 00008 =========================================================================*/ 00009 00010 00011 #ifndef __mitkNearestNeighborInterpolateFilter_h 00012 #define __mitkNearestNeighborInterpolateFilter_h 00013 00014 #include "mitkInterpolateFilter.h" 00015 00016 00022 00023 class MITK_REGISTRATION_API mitkNearestNeighborInterpolateFilter : public mitkInterpolateFilter 00024 { 00025 public: 00026 MITK_TYPE(mitkNearestNeighborInterpolateFilter, mitkInterpolateFilter) 00027 virtual void PrintSelf(ostream &os); 00028 00032 mitkNearestNeighborInterpolateFilter(); 00033 00034 protected: 00035 virtual ~mitkNearestNeighborInterpolateFilter(); 00036 virtual void _interpolation(const ScalarParameterType* index, ScalarPixelType* value); 00037 virtual void _interpolation(const ScalarParameterType* index, ScalarPixelType& value); 00038 00039 int indexGrid[3]; 00040 00041 private: 00042 mitkNearestNeighborInterpolateFilter(const mitkNearestNeighborInterpolateFilter&); 00043 void operator = (const mitkNearestNeighborInterpolateFilter&); 00044 00045 }; 00046 00047 00048 //#define DEFINED_mitkNearestNeighborInterpolateFilter 00049 00050 00051 00052 #endif 00053