Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkShiftScaleLabelMapFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkShiftScaleLabelMapFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-08-04 20:25:11 $
00007   Version:   $Revision: 1.4 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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 /*  itkConceptMacro(InputEqualityComparableCheck,
00071     (Concept::EqualityComparable<InputImagePixelType>));
00072   itkConceptMacro(IntConvertibleToInputCheck,
00073     (Concept::Convertible<int, InputImagePixelType>));
00074   itkConceptMacro(InputOStreamWritableCheck,
00075     (Concept::OStreamWritable<InputImagePixelType>));*/
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&); //purposely not implemented
00104   void operator=(const Self&); //purposely not implemented
00105 
00106 }; // end of class
00107 
00108 } // end namespace itk
00109   
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkShiftScaleLabelMapFilter.txx"
00112 #endif
00113 
00114 #endif
00115 

Generated at Tue Sep 15 04:57:00 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000