Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkStatisticsKeepNObjectsLabelMapFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkStatisticsKeepNObjectsLabelMapFilter.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 __itkStatisticsKeepNObjectsLabelMapFilter_h
00018 #define __itkStatisticsKeepNObjectsLabelMapFilter_h
00019 
00020 #include "itkShapeKeepNObjectsLabelMapFilter.h"
00021 #include "itkStatisticsLabelObject.h"
00022 #include "itkStatisticsLabelObjectAccessors.h"
00023 
00024 namespace itk {
00042 template<class TImage>
00043 class ITK_EXPORT StatisticsKeepNObjectsLabelMapFilter : 
00044     public ShapeKeepNObjectsLabelMapFilter<TImage>
00045 {
00046 public:
00048   typedef StatisticsKeepNObjectsLabelMapFilter    Self;
00049   typedef ShapeKeepNObjectsLabelMapFilter<TImage> Superclass;
00050   typedef SmartPointer<Self>                      Pointer;
00051   typedef SmartPointer<const Self>                ConstPointer;
00052 
00054   typedef TImage                              ImageType;
00055   typedef typename ImageType::Pointer         ImagePointer;
00056   typedef typename ImageType::ConstPointer    ImageConstPointer;
00057   typedef typename ImageType::PixelType       PixelType;
00058   typedef typename ImageType::IndexType       IndexType;
00059   typedef typename ImageType::LabelObjectType LabelObjectType;
00060 
00061   typedef typename LabelObjectType::AttributeType AttributeType;
00062   
00064   itkStaticConstMacro(ImageDimension, unsigned int,
00065                       TImage::ImageDimension);
00066 
00068   itkNewMacro(Self);
00069 
00071   itkTypeMacro(StatisticsKeepNObjectsLabelMapFilter, 
00072                ShapeKeepNObjectsLabelMapFilter);
00073 
00074 #ifdef ITK_USE_CONCEPT_CHECKING
00075 
00076 /*  itkConceptMacro(InputEqualityComparableCheck,
00077     (Concept::EqualityComparable<InputImagePixelType>));
00078   itkConceptMacro(IntConvertibleToInputCheck,
00079     (Concept::Convertible<int, InputImagePixelType>));
00080   itkConceptMacro(InputOStreamWritableCheck,
00081     (Concept::OStreamWritable<InputImagePixelType>));*/
00082 
00084 #endif
00085 protected:
00086   StatisticsKeepNObjectsLabelMapFilter();
00087   ~StatisticsKeepNObjectsLabelMapFilter() {};
00089 
00090   void GenerateData();
00091   
00092 private:
00093   StatisticsKeepNObjectsLabelMapFilter(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 "itkStatisticsKeepNObjectsLabelMapFilter.txx"
00102 #endif
00103 
00104 #endif
00105 

Generated at Tue Sep 15 05:03:40 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000