ITK
4.2.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
122
protected
:
123
125
FastMarchingImageToNodePairContainerAdaptor
();
126
128
virtual
~FastMarchingImageToNodePairContainerAdaptor
() {}
129
130
ImageConstPointer
m_AliveImage
;
131
ImageConstPointer
m_TrialImage
;
132
ImageConstPointer
m_ForbiddenImage
;
133
134
NodePairContainerPointer
m_AlivePoints
;
135
NodePairContainerPointer
m_TrialPoints
;
136
NodePairContainerPointer
m_ForbiddenPoints
;
137
138
OutputPixelType
m_AliveValue
;
139
OutputPixelType
m_TrialValue
;
140
141
bool
m_IsForbiddenImageBinaryMask
;
142
143
virtual
void
GenerateData
();
144
146
void
147
SetPointsFromImage
(
const
ImageType
* image,
const
LabelType
& iLabel,
148
const
OutputPixelType
& iValue );
149
150
151
private
:
152
153
FastMarchingImageToNodePairContainerAdaptor
(
const
Self
& );
154
void
operator =
(
const
Self
& );
155
156
};
157
}
158
159
#include "itkFastMarchingImageToNodePairContainerAdaptor.hxx"
160
#endif // __itkFastMarchingImageToNodePairContainerAdaptor_h
161
Generated on Tue Jul 10 2012 23:24:40 for ITK by
1.8.1