ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Segmentation
LevelSetsv4
include
itkMalcolmSparseLevelSetImage.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 __itkMalcolmSparseLevelSetImage_h
20
#define __itkMalcolmSparseLevelSetImage_h
21
22
#include "
itkImage.h
"
23
#include "
itkLevelSetSparseImage.h
"
24
25
#include "
itkLabelObject.h
"
26
#include "
itkLabelMap.h
"
27
28
namespace
itk
29
{
40
template
<
unsigned
int
VDimension >
41
class
MalcolmSparseLevelSetImage
:
42
public
LevelSetSparseImage
< int8_t, VDimension >
43
{
44
public
:
45
typedef
MalcolmSparseLevelSetImage
Self
;
46
typedef
SmartPointer< Self >
Pointer
;
47
typedef
SmartPointer< const Self >
ConstPointer
;
48
typedef
LevelSetSparseImage< int8_t, VDimension >
Superclass
;
49
51
itkNewMacro(
Self
);
52
54
itkTypeMacro(
MalcolmSparseLevelSetImage
,
LevelSetSparseImage
);
55
56
itkStaticConstMacro (
Dimension
,
unsigned
int
, VDimension );
57
58
typedef
typename
Superclass::InputType
InputType
;
59
typedef
typename
Superclass::OutputType
OutputType
;
60
typedef
typename
Superclass::OutputRealType
OutputRealType
;
61
typedef
typename
Superclass::GradientType
GradientType
;
62
typedef
typename
Superclass::HessianType
HessianType
;
63
typedef
typename
Superclass::LevelSetDataType
LevelSetDataType
;
64
65
typedef
typename
Superclass::LayerIdType
LayerIdType
;
66
typedef
typename
Superclass::LabelObjectType
LabelObjectType
;
67
typedef
typename
Superclass::LabelObjectPointer
LabelObjectPointer
;
68
typedef
typename
Superclass::LabelObjectLengthType
LabelObjectLengthType
;
69
typedef
typename
Superclass::LabelObjectLineType
LabelObjectLineType
;
70
71
typedef
typename
Superclass::LabelMapType
LabelMapType
;
72
typedef
typename
Superclass::LabelMapPointer
LabelMapPointer
;
73
typedef
typename
Superclass::RegionType
RegionType
;
74
75
typedef
typename
Superclass::LayerType
LayerType
;
76
typedef
typename
Superclass::LayerIterator
LayerIterator
;
77
typedef
typename
Superclass::LayerConstIterator
LayerConstIterator
;
78
79
typedef
typename
Superclass::LayerMapType
LayerMapType
;
80
typedef
typename
Superclass::LayerMapIterator
LayerMapIterator
;
81
typedef
typename
Superclass::LayerMapConstIterator
LayerMapConstIterator
;
82
84
using
Superclass::Evaluate
;
85
virtual
OutputType
Evaluate
(
const
InputType
& iP )
const
;
86
88
virtual
HessianType
EvaluateHessian
(
const
InputType
& iP )
const
;
89
91
virtual
OutputRealType
EvaluateLaplacian
(
const
InputType
& iP )
const
;
92
94
virtual
OutputRealType
EvaluateMeanCurvature
(
const
InputType
& iP )
const
;
95
96
virtual
void
EvaluateHessian
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
97
virtual
void
EvaluateLaplacian
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
98
virtual
void
EvaluateMeanCurvature
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
99
100
static
inline
LayerIdType
MinusOneLayer
() {
return
-1; }
101
static
inline
LayerIdType
ZeroLayer
() {
return
0; }
102
static
inline
LayerIdType
PlusOneLayer
() {
return
1; }
103
104
protected
:
105
106
MalcolmSparseLevelSetImage
();
107
108
virtual
~MalcolmSparseLevelSetImage
();
109
111
virtual
void
InitializeLayers
();
112
113
virtual
void
InitializeInternalLabelList
();
114
115
private
:
116
MalcolmSparseLevelSetImage
(
const
Self
& );
//purposely not implemented
117
void
operator =
(
const
Self
& );
//purposely not implemented
118
};
119
}
120
#ifndef ITK_MANUAL_INSTANTIATION
121
#include "itkMalcolmSparseLevelSetImage.hxx"
122
#endif
123
124
#endif // __itkMalcolmSparseLevelSetImage_h
125
Generated on Sun Dec 9 2012 01:18:18 for ITK by
1.8.2