ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkAttributePositionLabelMapFilter.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 __itkAttributePositionLabelMapFilter_h
00019 #define __itkAttributePositionLabelMapFilter_h
00020 
00021 #include "itkInPlaceLabelMapFilter.h"
00022 #include "itkAttributeLabelObject.h"
00023 
00024 namespace itk {
00042 template<class TImage, class TAttributeAccessor=
00043     typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >, bool VPhysicalPosition=true >
00044 class ITK_EXPORT AttributePositionLabelMapFilter :
00045     public InPlaceLabelMapFilter<TImage>
00046 {
00047 public:
00049   typedef AttributePositionLabelMapFilter Self;
00050   typedef InPlaceLabelMapFilter<TImage>   Superclass;
00051   typedef SmartPointer<Self>              Pointer;
00052   typedef SmartPointer<const Self>        ConstPointer;
00053 
00055   typedef TImage                              ImageType;
00056   typedef typename ImageType::Pointer         ImagePointer;
00057   typedef typename ImageType::ConstPointer    ImageConstPointer;
00058   typedef typename ImageType::PixelType       PixelType;
00059   typedef typename ImageType::IndexType       IndexType;
00060   typedef typename ImageType::LabelObjectType LabelObjectType;
00061 
00062   typedef TAttributeAccessor                                 AttributeAccessorType;
00063   typedef typename AttributeAccessorType::AttributeValueType AttributeValueType;
00064 
00066   itkStaticConstMacro(ImageDimension, unsigned int,
00067                       TImage::ImageDimension);
00068 
00070   itkNewMacro(Self);
00071 
00073   itkTypeMacro(AttributePositionLabelMapFilter,
00074                InPlaceLabelMapFilter);
00075 
00076 #ifdef ITK_USE_CONCEPT_CHECKING
00077 
00078 /*  itkConceptMacro(InputEqualityComparableCheck,
00079     (Concept::EqualityComparable<InputImagePixelType>));
00080   itkConceptMacro(IntConvertibleToInputCheck,
00081     (Concept::Convertible<int, InputImagePixelType>));
00082   itkConceptMacro(InputOStreamWritableCheck,
00083     (Concept::OStreamWritable<InputImagePixelType>));*/
00084 
00086 #endif
00087 
00088 protected:
00089   AttributePositionLabelMapFilter();
00090   ~AttributePositionLabelMapFilter() {};
00091 
00092   virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );
00093 
00094   void PrintSelf(std::ostream& os, Indent indent) const;
00095 
00096 private:
00097   AttributePositionLabelMapFilter(const Self&); //purposely not implemented
00098   void operator=(const Self&); //purposely not implemented
00099 
00100 }; // end of class
00101 
00102 } // end namespace itk
00103 
00104 #ifndef ITK_MANUAL_INSTANTIATION
00105 #include "itkAttributePositionLabelMapFilter.hxx"
00106 #endif
00107 
00108 #endif
00109