itkShiftScaleLabelMapFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkShiftScaleLabelMapFilter_h
00018 #define __itkShiftScaleLabelMapFilter_h
00019
00020 #include "itkInPlaceLabelMapFilter.h"
00021
00022 namespace itk {
00039 template<class TImage >
00040 class ITK_EXPORT ShiftScaleLabelMapFilter :
00041 public InPlaceLabelMapFilter<TImage>
00042 {
00043 public:
00045 typedef ShiftScaleLabelMapFilter Self;
00046 typedef InPlaceLabelMapFilter<TImage> Superclass;
00047 typedef SmartPointer<Self> Pointer;
00048 typedef SmartPointer<const Self> ConstPointer;
00049
00051 typedef TImage ImageType;
00052 typedef typename ImageType::Pointer ImagePointer;
00053 typedef typename ImageType::ConstPointer ImageConstPointer;
00054 typedef typename ImageType::PixelType PixelType;
00055 typedef typename ImageType::IndexType IndexType;
00056 typedef typename ImageType::LabelObjectType LabelObjectType;
00057 typedef typename Superclass::LabelObjectContainerType LabelObjectContainerType;
00058
00060 itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
00061
00063 itkNewMacro(Self);
00064
00066 itkTypeMacro(ShiftScaleLabelMapFilter, InPlaceLabelMapFilter);
00067
00068 #ifdef ITK_USE_CONCEPT_CHECKING
00069
00070
00071
00072
00073
00074
00075
00076
00078 #endif
00079
00080 itkSetMacro( Shift, double );
00081 itkGetConstReferenceMacro( Shift, double );
00082
00083 itkSetMacro( Scale, double );
00084 itkGetConstReferenceMacro( Scale, double );
00085
00086 itkSetMacro( ChangeBackgroundValue, bool );
00087 itkGetConstMacro( ChangeBackgroundValue, bool );
00088 itkBooleanMacro( ChangeBackgroundValue );
00089
00090 protected:
00091 ShiftScaleLabelMapFilter();
00092 ~ShiftScaleLabelMapFilter() {};
00093
00094 void GenerateData();
00095
00096 void PrintSelf(std::ostream& os, Indent indent) const;
00097
00098 double m_Shift;
00099 double m_Scale;
00100 bool m_ChangeBackgroundValue;
00101
00102 private:
00103 ShiftScaleLabelMapFilter(const Self&);
00104 void operator=(const Self&);
00105
00106 };
00107
00108 }
00109
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkShiftScaleLabelMapFilter.txx"
00112 #endif
00113
00114 #endif
00115