ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Segmentation
LevelSetsv4
include
itkDiscreteLevelSetImage.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 __itkDiscreteLevelSetImage_h
20
#define __itkDiscreteLevelSetImage_h
21
22
#include "
itkLevelSetImage.h
"
23
24
namespace
itk
25
{
35
template
<
typename
TOutput,
unsigned
int
VDimension >
36
class
DiscreteLevelSetImage
:
37
public
LevelSetImage
< Index< VDimension >, VDimension, TOutput >
38
{
39
public
:
40
typedef
Index< VDimension >
IndexType
;
41
42
typedef
DiscreteLevelSetImage
Self
;
43
typedef
SmartPointer< Self >
Pointer
;
44
typedef
SmartPointer< const Self >
ConstPointer
;
45
typedef
LevelSetImage< IndexType, VDimension, TOutput >
Superclass
;
46
48
itkTypeMacro (
DiscreteLevelSetImage
,
LevelSetImage
);
49
50
itkStaticConstMacro (
Dimension
,
unsigned
int
,
Superclass::Dimension
);
51
52
typedef
typename
Superclass::InputType
InputType
;
53
typedef
typename
Superclass::OutputType
OutputType
;
54
typedef
typename
Superclass::OutputRealType
OutputRealType
;
55
typedef
typename
Superclass::GradientType
GradientType
;
56
typedef
typename
Superclass::HessianType
HessianType
;
57
typedef
typename
Superclass::LevelSetDataType
LevelSetDataType
;
58
60
virtual
OutputType
Evaluate
(
const
InputType
& iP )
const
= 0;
61
63
virtual
GradientType
EvaluateGradient
(
const
InputType
& iP )
const
;
64
66
virtual
HessianType
EvaluateHessian
(
const
InputType
& iP )
const
;
67
69
virtual
OutputRealType
EvaluateLaplacian
(
const
InputType
& iP )
const
;
70
72
virtual
OutputRealType
EvaluateMeanCurvature
(
const
InputType
& iP )
const
;
73
74
virtual
GradientType
EvaluateForwardGradient
(
const
InputType
& iP )
const
;
75
76
virtual
GradientType
EvaluateBackwardGradient
(
const
InputType
& iP )
const
;
77
79
virtual
void
Evaluate
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
80
83
virtual
void
EvaluateGradient
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
84
87
virtual
void
EvaluateHessian
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
88
91
virtual
void
EvaluateMeanCurvature
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
92
95
virtual
void
EvaluateLaplacian
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
96
99
virtual
void
EvaluateForwardGradient
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
100
103
virtual
void
EvaluateBackwardGradient
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
104
105
protected
:
106
DiscreteLevelSetImage
();
107
108
virtual
~DiscreteLevelSetImage
();
109
111
virtual
void
Initialize
();
112
114
virtual
void
CopyInformation
(
const
DataObject
*data);
115
117
virtual
void
Graft
(
const
DataObject
* data );
118
119
private
:
120
121
DiscreteLevelSetImage
(
const
Self
& );
// purposely not implemented
122
void
operator =
(
const
Self
& );
// purposely not implemented
123
};
124
}
125
126
#ifndef ITK_MANUAL_INSTANTIATION
127
#include "itkDiscreteLevelSetImage.hxx"
128
#endif
129
130
#endif // __itkDiscreteLevelSetImage_h
131
Generated on Mon May 13 2013 00:48:27 for ITK by
1.8.3.1