Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 #ifndef __cmtkImageOperationDownsample_h_included_
00032 #define __cmtkImageOperationDownsample_h_included_
00033 
00034 #include <cmtkconfig.h>
00035 
00036 #include <Base/cmtkImageOperation.h>
00037 
00038 namespace
00039 cmtk
00040 {
00041 
00043 class ImageOperationDownsample
00045   : public ImageOperation
00046 {
00047 public:
00049   ImageOperationDownsample( const int factorX, const int factorY, const int factorZ ) : m_FactorX( factorX ), m_FactorY( factorY ), m_FactorZ( factorZ ) {}
00050   
00052   virtual cmtk::UniformVolume::SmartPtr  Apply( cmtk::UniformVolume::SmartPtr& volume );
00053   
00055   static void New( const char* arg );
00056   
00057 private:
00059   int m_FactorX;
00060 
00062   int m_FactorY;
00063 
00065   int m_FactorZ;
00066 };
00067 
00068 } 
00069 
00070 #endif // #ifndef __cmtkImageOperationDownsample_h_included_