ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkStatisticsPositionLabelMapFilter.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 __itkStatisticsPositionLabelMapFilter_h
00019 #define __itkStatisticsPositionLabelMapFilter_h
00020 
00021 #include "itkShapePositionLabelMapFilter.h"
00022 
00023 namespace itk {
00041 template<class TImage>
00042 class ITK_EXPORT StatisticsPositionLabelMapFilter :
00043     public ShapePositionLabelMapFilter<TImage>
00044 {
00045 public:
00047   typedef StatisticsPositionLabelMapFilter    Self;
00048   typedef ShapePositionLabelMapFilter<TImage> Superclass;
00049   typedef SmartPointer<Self>                  Pointer;
00050   typedef SmartPointer<const Self>            ConstPointer;
00051 
00053   typedef TImage                              ImageType;
00054   typedef typename ImageType::Pointer         ImagePointer;
00055   typedef typename ImageType::ConstPointer    ImageConstPointer;
00056   typedef typename ImageType::PixelType       PixelType;
00057   typedef typename ImageType::IndexType       IndexType;
00058   typedef typename ImageType::LabelObjectType LabelObjectType;
00059 
00060   typedef typename LabelObjectType::AttributeType AttributeType;
00061 
00063   itkStaticConstMacro(ImageDimension, unsigned int,
00064                       TImage::ImageDimension);
00065 
00067   itkNewMacro(Self);
00068 
00070   itkTypeMacro(StatisticsPositionLabelMapFilter,
00071                InPlaceLabelMapFilter);
00072 
00073 #ifdef ITK_USE_CONCEPT_CHECKING
00074 
00075 /*  itkConceptMacro(InputEqualityComparableCheck,
00076     (Concept::EqualityComparable<InputImagePixelType>));
00077   itkConceptMacro(IntConvertibleToInputCheck,
00078     (Concept::Convertible<int, InputImagePixelType>));
00079   itkConceptMacro(InputOStreamWritableCheck,
00080     (Concept::OStreamWritable<InputImagePixelType>));*/
00081 
00083 #endif
00084 
00085 protected:
00086   StatisticsPositionLabelMapFilter();
00087   ~StatisticsPositionLabelMapFilter() {};
00088 
00089   virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );
00090 
00091 private:
00092   StatisticsPositionLabelMapFilter(const Self&); //purposely not implemented
00093   void operator=(const Self&); //purposely not implemented
00094 
00095 }; // end of class
00096 
00097 } // end namespace itk
00098 
00099 #ifndef ITK_MANUAL_INSTANTIATION
00100 #include "itkStatisticsPositionLabelMapFilter.hxx"
00101 #endif
00102 
00103 #endif
00104