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 __itkLabelUniqueLabelMapFilter_h 00019 #define __itkLabelUniqueLabelMapFilter_h 00020 00021 #include "itkAttributeUniqueLabelMapFilter.h" 00022 #include "itkLabelObject.h" 00023 #include "itkLabelObjectAccessors.h" 00024 #include <set> 00025 00026 00027 namespace itk { 00045 template<class TImage> 00046 class ITK_EXPORT LabelUniqueLabelMapFilter : 00047 public AttributeUniqueLabelMapFilter<TImage, typename Functor::LabelLabelObjectAccessor< typename TImage::LabelObjectType > > 00048 { 00049 public: 00051 typedef LabelUniqueLabelMapFilter Self; 00052 typedef AttributeUniqueLabelMapFilter<TImage, typename Functor::LabelLabelObjectAccessor< typename TImage::LabelObjectType > > 00053 Superclass; 00054 typedef SmartPointer<Self> Pointer; 00055 typedef SmartPointer<const Self> ConstPointer; 00056 00058 typedef TImage ImageType; 00059 typedef typename ImageType::Pointer ImagePointer; 00060 typedef typename ImageType::ConstPointer ImageConstPointer; 00061 typedef typename ImageType::PixelType PixelType; 00062 typedef typename ImageType::IndexType IndexType; 00063 00064 typedef typename Superclass::AttributeAccessorType AttributeAccessorType; 00065 typedef typename Superclass::AttributeValueType AttributeValueType; 00066 00068 itkStaticConstMacro(ImageDimension, unsigned int, 00069 TImage::ImageDimension); 00070 00072 itkNewMacro(Self); 00073 00075 itkTypeMacro(LabelUniqueLabelMapFilter, 00076 AttributeUniqueLabelMapFilter); 00077 00078 #ifdef ITK_USE_CONCEPT_CHECKING 00079 00080 /* itkConceptMacro(InputEqualityComparableCheck, 00081 (Concept::EqualityComparable<InputImagePixelType>)); 00082 itkConceptMacro(IntConvertibleToInputCheck, 00083 (Concept::Convertible<int, InputImagePixelType>)); 00084 itkConceptMacro(InputOStreamWritableCheck, 00085 (Concept::OStreamWritable<InputImagePixelType>));*/ 00086 00088 #endif 00089 00090 protected: 00091 LabelUniqueLabelMapFilter() {}; 00092 ~LabelUniqueLabelMapFilter() {}; 00093 00094 private: 00095 LabelUniqueLabelMapFilter(const Self&); //purposely not implemented 00096 void operator=(const Self&); //purposely not implemented 00097 00098 }; // end of class 00099 00100 } // end namespace itk 00101 00102 #endif 00103