ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Filtering
LabelMap
include
itkRelabelLabelMapFilter.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 __itkRelabelLabelMapFilter_h
19
#define __itkRelabelLabelMapFilter_h
20
21
#include "
itkAttributeRelabelLabelMapFilter.h
"
22
#include "
itkLabelObjectAccessors.h
"
23
24
namespace
itk
25
{
45
template
<
class
TImage >
46
class
ITK_EXPORT
RelabelLabelMapFilter
:
47
public
AttributeRelabelLabelMapFilter
< TImage, typename Functor::LabelLabelObjectAccessor<typename TImage::LabelObjectType> >
48
{
49
public
:
51
typedef
RelabelLabelMapFilter
Self
;
52
typedef
AttributeRelabelLabelMapFilter
< TImage,
53
typename
Functor::LabelLabelObjectAccessor<typename TImage::LabelObjectType>
>
54
Superclass
;
55
typedef
SmartPointer< Self >
Pointer
;
56
typedef
SmartPointer< const Self >
ConstPointer
;
57
59
typedef
TImage
ImageType
;
60
typedef
typename
ImageType::Pointer
ImagePointer
;
61
typedef
typename
ImageType::ConstPointer
ImageConstPointer
;
62
typedef
typename
ImageType::PixelType
PixelType
;
63
typedef
typename
ImageType::IndexType
IndexType
;
64
typedef
typename
ImageType::LabelObjectType
LabelObjectType
;
65
67
itkStaticConstMacro(ImageDimension,
unsigned
int
, TImage::ImageDimension);
68
70
itkNewMacro(
Self
);
71
73
itkTypeMacro(
RelabelLabelMapFilter
,
AttributeRelabelLabelMapFilter
);
74
75
#ifdef ITK_USE_CONCEPT_CHECKING
76
77
/* itkConceptMacro(InputEqualityComparableCheck,
78
(Concept::EqualityComparable<InputImagePixelType>));
79
itkConceptMacro(IntConvertibleToInputCheck,
80
(Concept::Convertible<int, InputImagePixelType>));
81
itkConceptMacro(InputOStreamWritableCheck,
82
(Concept::OStreamWritable<InputImagePixelType>));*/
83
85
#endif
86
87
protected
:
88
RelabelLabelMapFilter
()
89
{
90
this->SetReverseOrdering(
true
);
91
}
92
~RelabelLabelMapFilter
() {}
93
94
private
:
95
RelabelLabelMapFilter
(
const
Self &);
//purposely not implemented
96
void
operator=(
const
Self &);
//purposely not implemented
97
};
// end of class
98
}
// end namespace itk
99
100
101
#endif
102
Generated on Mon May 13 2013 01:06:14 for ITK by
1.8.3.1