ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkRelabelLabelMapFilter.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 __itkRelabelLabelMapFilter_h
00019 #define __itkRelabelLabelMapFilter_h
00020 
00021 #include "itkAttributeRelabelLabelMapFilter.h"
00022 #include "itkLabelObjectAccessors.h"
00023 
00024 namespace itk
00025 {
00045 template< class TImage >
00046 class ITK_EXPORT RelabelLabelMapFilter:
00047   public AttributeRelabelLabelMapFilter< TImage, typename Functor::LabelLabelObjectAccessor<typename TImage::LabelObjectType> >
00048 {
00049 public:
00051   typedef RelabelLabelMapFilter           Self;
00052   typedef AttributeRelabelLabelMapFilter< TImage,
00053      typename Functor::LabelLabelObjectAccessor<typename TImage::LabelObjectType> >
00054                                           Superclass;
00055   typedef SmartPointer< Self >            Pointer;
00056   typedef SmartPointer< const Self >      ConstPointer;
00057 
00059   typedef TImage                                        ImageType;
00060   typedef typename ImageType::Pointer                   ImagePointer;
00061   typedef typename ImageType::ConstPointer              ImageConstPointer;
00062   typedef typename ImageType::PixelType                 PixelType;
00063   typedef typename ImageType::IndexType                 IndexType;
00064   typedef typename ImageType::LabelObjectType           LabelObjectType;
00065 
00067   itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
00068 
00070   itkNewMacro(Self);
00071 
00073   itkTypeMacro(RelabelLabelMapFilter, AttributeRelabelLabelMapFilter);
00074 
00075 #ifdef ITK_USE_CONCEPT_CHECKING
00076 
00077 /*  itkConceptMacro(InputEqualityComparableCheck,
00078     (Concept::EqualityComparable<InputImagePixelType>));
00079   itkConceptMacro(IntConvertibleToInputCheck,
00080     (Concept::Convertible<int, InputImagePixelType>));
00081   itkConceptMacro(InputOStreamWritableCheck,
00082     (Concept::OStreamWritable<InputImagePixelType>));*/
00083 
00085 #endif
00086 protected:
00087   RelabelLabelMapFilter()
00088     {
00089     this->SetReverseOrdering( true );
00090     }
00091   ~RelabelLabelMapFilter() {}
00093 
00094 private:
00095   RelabelLabelMapFilter(const Self &); //purposely not implemented
00096   void operator=(const Self &);        //purposely not implemented
00097 };                                     // end of class
00098 } // end namespace itk
00099 
00100 
00101 #endif
00102