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