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 __itkAggregateLabelMapFilter_h 00019 #define __itkAggregateLabelMapFilter_h 00020 00021 #include "itkInPlaceLabelMapFilter.h" 00022 00023 namespace itk 00024 { 00043 template< class TImage > 00044 class ITK_EXPORT AggregateLabelMapFilter: 00045 public InPlaceLabelMapFilter< TImage > 00046 { 00047 public: 00049 typedef AggregateLabelMapFilter Self; 00050 typedef InPlaceLabelMapFilter< TImage > Superclass; 00051 typedef SmartPointer< Self > Pointer; 00052 typedef SmartPointer< const Self > ConstPointer; 00053 00055 typedef TImage ImageType; 00056 typedef typename ImageType::Pointer ImagePointer; 00057 typedef typename ImageType::ConstPointer ImageConstPointer; 00058 typedef typename ImageType::PixelType PixelType; 00059 typedef typename ImageType::IndexType IndexType; 00060 typedef typename ImageType::LabelObjectType LabelObjectType; 00061 00063 itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension); 00064 00066 itkNewMacro(Self); 00067 00069 itkTypeMacro(AggregateLabelMapFilter, InPlaceLabelMapFilter); 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 AggregateLabelMapFilter() {} 00084 ~AggregateLabelMapFilter() {} 00086 00087 void PrintSelf(std::ostream & os, Indent indent) const; 00088 00089 void GenerateData(); 00090 00091 private: 00092 AggregateLabelMapFilter(const Self &); //purposely not implemented 00093 void operator=(const Self &); //purposely not implemented 00094 }; // end of class 00095 } // end namespace itk 00096 00097 #ifndef ITK_MANUAL_INSTANTIATION 00098 #include "itkAggregateLabelMapFilter.hxx" 00099 #endif 00100 00101 #endif 00102