00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkStatisticsOpeningLabelMapFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-08-07 09:55:14 $ 00007 Version: $Revision: 1.2 $ 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 __itkStatisticsOpeningLabelMapFilter_h 00018 #define __itkStatisticsOpeningLabelMapFilter_h 00019 00020 #include "itkShapeOpeningLabelMapFilter.h" 00021 #include "itkStatisticsLabelObject.h" 00022 #include "itkStatisticsLabelObjectAccessors.h" 00023 00024 namespace itk { 00041 template<class TImage> 00042 class ITK_EXPORT StatisticsOpeningLabelMapFilter : 00043 public ShapeOpeningLabelMapFilter<TImage> 00044 { 00045 public: 00047 typedef StatisticsOpeningLabelMapFilter Self; 00048 typedef ShapeOpeningLabelMapFilter<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(StatisticsOpeningLabelMapFilter, 00071 ShapeOpeningLabelMapFilter); 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 00086 protected: 00087 StatisticsOpeningLabelMapFilter(); 00088 ~StatisticsOpeningLabelMapFilter() {}; 00089 00090 void GenerateData(); 00091 00092 private: 00093 StatisticsOpeningLabelMapFilter(const Self&); //purposely not implemented 00094 void operator=(const Self&); //purposely not implemented 00095 00096 }; // end of class 00097 00098 } // end namespace itk 00099 00100 #ifndef ITK_MANUAL_INSTANTIATION 00101 #include "itkStatisticsOpeningLabelMapFilter.txx" 00102 #endif 00103 00104 #endif 00105