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
itkShiSparseLevelSetImage.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 __itkShiSparseLevelSetImage_h
20
#define __itkShiSparseLevelSetImage_h
21
22
#include "
itkLevelSetSparseImage.h
"
23
24
namespace
itk
25
{
36
template
<
unsigned
int
VDimension >
37
class
ShiSparseLevelSetImage
:
38
public
LevelSetSparseImage
< int8_t, VDimension >
39
{
40
public
:
41
typedef
ShiSparseLevelSetImage
Self
;
42
typedef
SmartPointer< Self >
Pointer
;
43
typedef
SmartPointer< const Self >
ConstPointer
;
44
typedef
LevelSetSparseImage< int8_t, VDimension >
45
Superclass
;
46
48
itkNewMacro(
Self
);
49
51
itkTypeMacro(
ShiSparseLevelSetImage
,
LevelSetSparseImage
);
52
53
itkStaticConstMacro (
Dimension
,
unsigned
int
, VDimension );
54
55
typedef
typename
Superclass::InputType
InputType
;
56
typedef
typename
Superclass::OutputType
OutputType
;
57
typedef
typename
Superclass::OutputRealType
OutputRealType
;
58
typedef
typename
Superclass::GradientType
GradientType
;
59
typedef
typename
Superclass::HessianType
HessianType
;
60
typedef
typename
Superclass::LevelSetDataType
LevelSetDataType
;
61
62
typedef
typename
Superclass::LayerIdType
LayerIdType
;
63
typedef
typename
Superclass::LabelObjectType
LabelObjectType
;
64
typedef
typename
Superclass::LabelObjectPointer
LabelObjectPointer
;
65
typedef
typename
Superclass::LabelObjectLengthType
LabelObjectLengthType
;
66
typedef
typename
Superclass::LabelObjectLineType
LabelObjectLineType
;
67
68
typedef
typename
Superclass::LabelMapType
LabelMapType
;
69
typedef
typename
Superclass::LabelMapPointer
LabelMapPointer
;
70
typedef
typename
Superclass::RegionType
RegionType
;
71
72
typedef
typename
Superclass::LayerType
LayerType
;
73
typedef
typename
Superclass::LayerIterator
LayerIterator
;
74
typedef
typename
Superclass::LayerConstIterator
LayerConstIterator
;
75
76
typedef
typename
Superclass::LayerMapType
LayerMapType
;
77
typedef
typename
Superclass::LayerMapIterator
LayerMapIterator
;
78
typedef
typename
Superclass::LayerMapConstIterator
LayerMapConstIterator
;
79
81
using
Superclass::Evaluate
;
82
virtual
OutputType
Evaluate
(
const
InputType
& iP )
const
;
83
85
virtual
HessianType
EvaluateHessian
(
const
InputType
& iP )
const
;
86
88
virtual
OutputRealType
EvaluateLaplacian
(
const
InputType
& iP )
const
;
89
91
virtual
OutputRealType
EvaluateMeanCurvature
(
const
InputType
& iP )
const
;
92
93
virtual
void
EvaluateHessian
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
94
virtual
void
EvaluateLaplacian
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
95
virtual
void
EvaluateMeanCurvature
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
96
97
static
inline
LayerIdType
MinusThreeLayer
() {
return
-3; }
98
static
inline
LayerIdType
MinusOneLayer
() {
return
-1; }
99
static
inline
LayerIdType
PlusOneLayer
() {
return
1; }
100
static
inline
LayerIdType
PlusThreeLayer
() {
return
3; }
101
102
protected
:
103
104
ShiSparseLevelSetImage
();
105
106
virtual
~ShiSparseLevelSetImage
();
107
109
virtual
void
InitializeLayers
();
110
111
virtual
void
InitializeInternalLabelList
();
112
113
private
:
114
115
ShiSparseLevelSetImage
(
const
Self
& );
//purposely not implemented
116
void
operator =
(
const
Self
& );
//purposely not implemented
117
};
118
}
119
120
#ifndef ITK_MANUAL_INSTANTIATION
121
#include "itkShiSparseLevelSetImage.hxx"
122
#endif
123
124
#endif // __itkShiSparseLevelSetImage_h
125
Generated on Sun Dec 9 2012 01:26:51 for ITK by
1.8.2