Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkRGBToGrayFilter.h

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 __mitkRGBToGrayFilter_h
00012 #define __mitkRGBToGrayFilter_h
00013 
00014 #include "mitkVolumeToVolumeFilter.h"
00015 
00026 class MITK_COMMON_API mitkRGBToGrayFilter : public mitkVolumeToVolumeFilter
00027 {
00028 public:
00029     MITK_TYPE(mitkRGBToGrayFilter, mitkVolumeToVolumeFilter)
00030 
00031     virtual void PrintSelf(ostream &os);
00032 
00033     mitkRGBToGrayFilter();
00034 
00049     void SetOutputDataType(int dataType) { this->GetOutput()->SetDataType(dataType); }
00050 
00061     void SetCoefficients(float coefRed, float coefGreen, float coefBlue);
00062 
00063 protected:
00064     virtual ~mitkRGBToGrayFilter();
00065 
00066     virtual bool Execute();
00067 
00068     float m_CoefRed;
00069     float m_CoefGreen;
00070     float m_CoefBlue;
00071 
00072 private:
00073     mitkRGBToGrayFilter(const mitkRGBToGrayFilter&);
00074     void operator = (const mitkRGBToGrayFilter&);
00075 
00076 };
00077 
00078 
00079 //#define DEFINED_mitkRGBToGrayFilter
00080 
00081 
00082 
00083 #endif
00084 

Generated on Tue Feb 25 15:00:37 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3