ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkStatisticsUniqueLabelMapFilter.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 __itkStatisticsUniqueLabelMapFilter_h
00019 #define __itkStatisticsUniqueLabelMapFilter_h
00020 
00021 #include "itkShapeUniqueLabelMapFilter.h"
00022 #include "itkStatisticsLabelObject.h"
00023 
00024 namespace itk
00025 {
00039 template< class TImage >
00040 class ITK_EXPORT StatisticsUniqueLabelMapFilter:
00041   public ShapeUniqueLabelMapFilter< TImage >
00042 {
00043 public:
00045   typedef StatisticsUniqueLabelMapFilter      Self;
00046   typedef ShapeUniqueLabelMapFilter< TImage > Superclass;
00047   typedef SmartPointer< Self >                Pointer;
00048   typedef SmartPointer< const Self >          ConstPointer;
00049 
00051   typedef TImage                              ImageType;
00052   typedef typename ImageType::Pointer         ImagePointer;
00053   typedef typename ImageType::ConstPointer    ImageConstPointer;
00054   typedef typename ImageType::PixelType       PixelType;
00055   typedef typename ImageType::IndexType       IndexType;
00056   typedef typename ImageType::LabelObjectType LabelObjectType;
00057 
00058   typedef typename LabelObjectType::AttributeType AttributeType;
00059 
00061   itkStaticConstMacro(ImageDimension, unsigned int,
00062                       TImage::ImageDimension);
00063 
00065   itkNewMacro(Self);
00066 
00068   itkTypeMacro(StatisticsUniqueLabelMapFilter,
00069                ShapeUniqueLabelMapFilter);
00070 
00071 #ifdef ITK_USE_CONCEPT_CHECKING
00072 
00073 /*  itkConceptMacro(InputEqualityComparableCheck,
00074     (Concept::EqualityComparable<InputImagePixelType>));
00075   itkConceptMacro(IntConvertibleToInputCheck,
00076     (Concept::Convertible<int, InputImagePixelType>));
00077   itkConceptMacro(InputOStreamWritableCheck,
00078     (Concept::OStreamWritable<InputImagePixelType>));*/
00079 
00081 #endif
00082 protected:
00083   StatisticsUniqueLabelMapFilter();
00084   ~StatisticsUniqueLabelMapFilter() {}
00085 
00086   void GenerateData();
00087 
00088 private:
00089   StatisticsUniqueLabelMapFilter(const Self &); //purposely not implemented
00090   void operator=(const Self &);                 //purposely not implemented
00091 };                                              // end of class
00092 } // end namespace itk
00093 
00094 #ifndef ITK_MANUAL_INSTANTIATION
00095 #include "itkStatisticsUniqueLabelMapFilter.hxx"
00096 #endif
00097 
00098 #endif
00099