ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkAttributePositionLabelMapFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkAttributePositionLabelMapFilter_h
19 #define __itkAttributePositionLabelMapFilter_h
20 
23 
24 namespace itk {
42 template<class TImage, class TAttributeAccessor=
43  typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType >, bool VPhysicalPosition=true >
45  public InPlaceLabelMapFilter<TImage>
46 {
47 public:
53 
55  typedef TImage ImageType;
56  typedef typename ImageType::Pointer ImagePointer;
57  typedef typename ImageType::ConstPointer ImageConstPointer;
58  typedef typename ImageType::PixelType PixelType;
59  typedef typename ImageType::IndexType IndexType;
60  typedef typename ImageType::LabelObjectType LabelObjectType;
61 
62  typedef TAttributeAccessor AttributeAccessorType;
63  typedef typename AttributeAccessorType::AttributeValueType AttributeValueType;
64 
66  itkStaticConstMacro(ImageDimension, unsigned int,
67  TImage::ImageDimension);
68 
70  itkNewMacro(Self);
71 
75 
76 #ifdef ITK_USE_CONCEPT_CHECKING
77 
78 /* itkConceptMacro(InputEqualityComparableCheck,
79  (Concept::EqualityComparable<InputImagePixelType>));
80  itkConceptMacro(IntConvertibleToInputCheck,
81  (Concept::Convertible<int, InputImagePixelType>));
82  itkConceptMacro(InputOStreamWritableCheck,
83  (Concept::OStreamWritable<InputImagePixelType>));*/
84 
86 #endif
87 
88 protected:
91 
92  virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );
93 
94  void PrintSelf(std::ostream& os, Indent indent) const;
95 
96 private:
97  AttributePositionLabelMapFilter(const Self&); //purposely not implemented
98  void operator=(const Self&); //purposely not implemented
99 
100 }; // end of class
101 
102 } // end namespace itk
103 
104 #ifndef ITK_MANUAL_INSTANTIATION
105 #include "itkAttributePositionLabelMapFilter.hxx"
106 #endif
107 
108 #endif
109