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
FastMarching
include
itkFastMarchingImageToNodePairContainerAdaptor.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
19
#ifndef __itkFastMarchingImageToNodePairContainerAdaptor_h
20
#define __itkFastMarchingImageToNodePairContainerAdaptor_h
21
22
#include "
itkObject.h
"
23
#include "
itkFastMarchingTraits.h
"
24
25
namespace
itk
26
{
49
template
<
class
TInput,
class
TOutput,
class
TImage >
50
class
FastMarchingImageToNodePairContainerAdaptor
:
51
public
Object
52
{
53
public
:
54
typedef
FastMarchingImageToNodePairContainerAdaptor
Self
;
55
typedef
LightObject
Superclass
;
56
typedef
SmartPointer< Self >
Pointer
;
57
typedef
SmartPointer< const Self >
ConstPointer
;
58
59
61
itkNewMacro(
Self
);
62
64
itkTypeMacro(
FastMarchingImageToNodePairContainerAdaptor
,
LightObject
);
65
66
typedef
FastMarchingTraits< TInput, TOutput >
Traits
;
67
typedef
typename
Traits::NodePairType
NodePairType
;
68
typedef
typename
Traits::NodePairContainerType
NodePairContainerType
;
69
typedef
typename
Traits::NodePairContainerPointer
NodePairContainerPointer
;
70
typedef
typename
Traits::LabelType
LabelType
;
71
typedef
typename
Traits::OutputPixelType
OutputPixelType
;
72
73
typedef
TImage
ImageType
;
74
typedef
typename
ImageType::Pointer
ImagePointer
;
75
typedef
typename
ImageType::ConstPointer
ImageConstPointer
;
76
typedef
typename
ImageType::PixelType
ImagePixelType
;
77
78
itkStaticConstMacro(
ImageDimension
,
unsigned
int
,
79
Traits::ImageDimension );
80
84
void
SetAliveImage
(
const
ImageType
* iImage );
85
89
void
SetTrialImage
(
const
ImageType
* iImage );
90
101
void
SetForbiddenImage
(
const
ImageType
* iImage );
102
103
itkSetMacro( IsForbiddenImageBinaryMask,
bool
);
104
itkBooleanMacro( IsForbiddenImageBinaryMask );
105
107
NodePairContainerType
*
GetAlivePoints
();
108
110
NodePairContainerType
*
GetTrialPoints
();
111
113
NodePairContainerType
*
GetForbiddenPoints
();
114
115
itkSetMacro( AliveValue,
OutputPixelType
);
116
itkSetMacro( TrialValue,
OutputPixelType
);
117
119
void
Update
();
120
121
protected
:
122
124
FastMarchingImageToNodePairContainerAdaptor
();
125
127
virtual
~FastMarchingImageToNodePairContainerAdaptor
() {}
128
129
ImageConstPointer
m_AliveImage
;
130
ImageConstPointer
m_TrialImage
;
131
ImageConstPointer
m_ForbiddenImage
;
132
133
NodePairContainerPointer
m_AlivePoints
;
134
NodePairContainerPointer
m_TrialPoints
;
135
NodePairContainerPointer
m_ForbiddenPoints
;
136
137
OutputPixelType
m_AliveValue
;
138
OutputPixelType
m_TrialValue
;
139
140
bool
m_IsForbiddenImageBinaryMask
;
141
142
virtual
void
GenerateData
();
143
145
void
146
SetPointsFromImage
(
const
ImageType
* image,
const
LabelType
& iLabel,
147
const
OutputPixelType
& iValue );
148
149
private
:
150
151
FastMarchingImageToNodePairContainerAdaptor
(
const
Self
& );
152
void
operator =
(
const
Self
& );
153
154
};
155
}
156
157
#include "itkFastMarchingImageToNodePairContainerAdaptor.hxx"
158
#endif // __itkFastMarchingImageToNodePairContainerAdaptor_h
159
Generated on Mon May 13 2013 00:49:20 for ITK by
1.8.3.1