ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkConvertLabelMapFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkConvertLabelMapFilter_h
00019 #define __itkConvertLabelMapFilter_h
00020 
00021 #include "itkLabelMapFilter.h"
00022 
00023 namespace itk
00024 {
00042 template< class TInputImage, class TOutputImage >
00043 class ITK_EXPORT ConvertLabelMapFilter:
00044   public LabelMapFilter< TInputImage, TOutputImage >
00045 {
00046 public:
00048   typedef ConvertLabelMapFilter                       Self;
00049   typedef LabelMapFilter< TInputImage, TOutputImage > Superclass;
00050   typedef SmartPointer< Self >                        Pointer;
00051   typedef SmartPointer< const Self >                  ConstPointer;
00052 
00054   typedef TInputImage                                 InputImageType;
00055   typedef TOutputImage                                OutputImageType;
00056   typedef typename InputImageType::Pointer            InputImagePointer;
00057   typedef typename InputImageType::ConstPointer       InputImageConstPointer;
00058   typedef typename InputImageType::RegionType         InputImageRegionType;
00059   typedef typename InputImageType::PixelType          InputImagePixelType;
00060   typedef typename InputImageType::LabelObjectType    LabelObjectType;
00061 
00062   typedef typename OutputImageType::Pointer           OutputImagePointer;
00063   typedef typename OutputImageType::ConstPointer      OutputImageConstPointer;
00064   typedef typename OutputImageType::RegionType        OutputImageRegionType;
00065   typedef typename OutputImageType::PixelType         OutputImagePixelType;
00066   typedef typename OutputImageType::IndexType         IndexType;
00067   typedef typename OutputImageType::LabelObjectType   OutputLabelObjectType;
00068 
00070   itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
00071   itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
00073 
00075   itkNewMacro(Self);
00076 
00078   itkTypeMacro(ConvertLabelMapFilter, LabelMapFilter);
00079 
00080 protected:
00081   ConvertLabelMapFilter() {}
00082   ~ConvertLabelMapFilter() {}
00083 
00084   virtual void GenerateData();
00085 
00086 private:
00087   ConvertLabelMapFilter(const Self &); //purposely not implemented
00088   void operator=(const Self &);             //purposely not implemented
00089 };                                          // end of class
00090 } // end namespace itk
00091 
00092 #ifndef ITK_MANUAL_INSTANTIATION
00093 #include "itkConvertLabelMapFilter.hxx"
00094 #endif
00095 
00096 #endif
00097