ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkStatisticsOpeningLabelMapFilter.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 __itkStatisticsOpeningLabelMapFilter_h
00019 #define __itkStatisticsOpeningLabelMapFilter_h
00020 
00021 #include "itkShapeOpeningLabelMapFilter.h"
00022 #include "itkStatisticsLabelObject.h"
00023 #include "itkStatisticsLabelObjectAccessors.h"
00024 
00025 namespace itk
00026 {
00044 template< class TImage >
00045 class ITK_EXPORT StatisticsOpeningLabelMapFilter:
00046   public ShapeOpeningLabelMapFilter< TImage >
00047 {
00048 public:
00050   typedef StatisticsOpeningLabelMapFilter      Self;
00051   typedef ShapeOpeningLabelMapFilter< TImage > Superclass;
00052   typedef SmartPointer< Self >                 Pointer;
00053   typedef SmartPointer< const Self >           ConstPointer;
00054 
00056   typedef TImage                              ImageType;
00057   typedef typename ImageType::Pointer         ImagePointer;
00058   typedef typename ImageType::ConstPointer    ImageConstPointer;
00059   typedef typename ImageType::PixelType       PixelType;
00060   typedef typename ImageType::IndexType       IndexType;
00061   typedef typename ImageType::LabelObjectType LabelObjectType;
00062 
00063   typedef typename LabelObjectType::AttributeType AttributeType;
00064 
00066   itkStaticConstMacro(ImageDimension, unsigned int,
00067                       TImage::ImageDimension);
00068 
00070   itkNewMacro(Self);
00071 
00073   itkTypeMacro(StatisticsOpeningLabelMapFilter,
00074                ShapeOpeningLabelMapFilter);
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 protected:
00088   StatisticsOpeningLabelMapFilter();
00089   ~StatisticsOpeningLabelMapFilter() {}
00090 
00091   void GenerateData();
00092 
00093 private:
00094   StatisticsOpeningLabelMapFilter(const Self &); //purposely not implemented
00095   void operator=(const Self &);                  //purposely not implemented
00096 };                                               // end of class
00097 } // end namespace itk
00098 
00099 #ifndef ITK_MANUAL_INSTANTIATION
00100 #include "itkStatisticsOpeningLabelMapFilter.hxx"
00101 #endif
00102 
00103 #endif
00104