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
itkLevelSetEquationChanAndVeseExternalTerm.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 __itkLevelSetEquationChanAndVeseExternalTerm_h
20
#define __itkLevelSetEquationChanAndVeseExternalTerm_h
21
22
#include "
itkLevelSetEquationChanAndVeseInternalTerm.h
"
23
#include "
itkNumericTraits.h
"
24
25
namespace
itk
26
{
48
template
<
class
TInput,
// Input image or mesh
49
class
TLevelSetContainer >
50
class
LevelSetEquationChanAndVeseExternalTerm
:
51
public
LevelSetEquationChanAndVeseInternalTerm
< TInput, TLevelSetContainer >
52
{
53
public
:
54
typedef
LevelSetEquationChanAndVeseExternalTerm
Self
;
55
typedef
SmartPointer< Self >
Pointer
;
56
typedef
SmartPointer< const Self >
ConstPointer
;
57
typedef
LevelSetEquationChanAndVeseInternalTerm
< TInput,
58
TLevelSetContainer >
Superclass
;
60
62
itkNewMacro(
Self
);
63
65
itkTypeMacro(
LevelSetEquationChanAndVeseExternalTerm
,
66
LevelSetEquationChanAndVeseInternalTerm
);
67
68
typedef
typename
Superclass::InputImageType
InputImageType
;
69
typedef
typename
Superclass::InputImagePointer
InputImagePointer
;
70
typedef
typename
Superclass::InputPixelType
InputPixelType
;
71
typedef
typename
Superclass::InputPixelRealType
InputPixelRealType
;
72
73
typedef
typename
Superclass::LevelSetContainerType
LevelSetContainerType
;
74
typedef
typename
Superclass::LevelSetContainerPointer
LevelSetContainerPointer
;
75
typedef
typename
Superclass::LevelSetType
LevelSetType
;
76
typedef
typename
Superclass::LevelSetPointer
LevelSetPointer
;
77
typedef
typename
Superclass::LevelSetOutputPixelType
LevelSetOutputPixelType
;
78
typedef
typename
Superclass::LevelSetOutputRealType
LevelSetOutputRealType
;
79
typedef
typename
Superclass::LevelSetInputIndexType
LevelSetInputIndexType
;
80
typedef
typename
Superclass::LevelSetGradientType
LevelSetGradientType
;
81
typedef
typename
Superclass::LevelSetHessianType
LevelSetHessianType
;
82
typedef
typename
Superclass::LevelSetIdentifierType
LevelSetIdentifierType
;
83
84
typedef
typename
Superclass::DomainMapImageFilterType
DomainMapImageFilterType
;
85
typedef
typename
Superclass::CacheImageType
CacheImageType
;
86
87
typedef
typename
DomainMapImageFilterType::DomainMapType::const_iterator
DomainIteratorType
;
88
89
typedef
typename
LevelSetContainerType::IdListType
IdListType
;
90
typedef
typename
LevelSetContainerType::IdListIterator
IdListIterator
;
91
typedef
typename
LevelSetContainerType::IdListConstIterator
IdListConstIterator
;
92
93
typedef
typename
Superclass::HeavisideType
HeavisideType
;
94
typedef
typename
Superclass::HeavisideConstPointer
HeavisideConstPointer
;
95
97
virtual
void
ComputeProduct
(
const
LevelSetInputIndexType
& iP,
98
LevelSetOutputRealType
& prod );
99
102
virtual
void
ComputeProductTerm
(
const
LevelSetInputIndexType
& iP,
103
LevelSetOutputRealType
& prod );
104
106
virtual
void
UpdatePixel
(
const
LevelSetInputIndexType
& iP,
107
const
LevelSetOutputRealType
& oldValue,
108
const
LevelSetOutputRealType
& newValue );
109
110
protected
:
111
LevelSetEquationChanAndVeseExternalTerm
();
112
virtual
~LevelSetEquationChanAndVeseExternalTerm
();
113
114
private
:
115
LevelSetEquationChanAndVeseExternalTerm
(
const
Self
& );
// purposely not implemented
116
void
operator =
(
const
Self
& );
// purposely not implemented
117
118
DomainMapImageFilterType
*
m_DomainMapImageFilter
;
119
CacheImageType
*
m_CacheImage
;
120
};
121
122
}
123
#ifndef ITK_MANUAL_INSTANTIATION
124
#include "itkLevelSetEquationChanAndVeseExternalTerm.hxx"
125
#endif
126
127
#endif
128
Generated on Sun Dec 9 2012 01:17:06 for ITK by
1.8.2