ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Nonunit
Review
include
itkScalarChanAndVeseLevelSetFunctionData.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
#ifndef __itkScalarChanAndVeseLevelSetFunctionData_h
19
#define __itkScalarChanAndVeseLevelSetFunctionData_h
20
21
#include "
itkRegionBasedLevelSetFunctionData.h
"
22
23
namespace
itk
24
{
60
template
<
class
TInputImage,
class
TFeatureImage >
61
class
ScalarChanAndVeseLevelSetFunctionData
:
62
public
RegionBasedLevelSetFunctionData
< TInputImage, TFeatureImage >
63
{
64
public
:
65
66
typedef
ScalarChanAndVeseLevelSetFunctionData
Self
;
67
typedef
RegionBasedLevelSetFunctionData< TInputImage, TFeatureImage >
Superclass
;
68
typedef
SmartPointer< Self >
Pointer
;
69
typedef
SmartPointer< const Self >
ConstPointer
;
70
71
itkStaticConstMacro(
ImageDimension
,
unsigned
int
, TFeatureImage::ImageDimension);
72
74
itkNewMacro(
Self
);
75
76
itkTypeMacro(
ScalarChanAndVeseLevelSetFunctionData
,
RegionBasedLevelSetFunctionData
);
77
78
typedef
TInputImage
InputImageType
;
79
typedef
typename
Superclass::InputImagePointer
InputImagePointer
;
80
typedef
typename
Superclass::InputImageConstPointer
InputImageConstPointer
;
81
typedef
typename
Superclass::InputPixelType
InputPixelType
;
82
typedef
typename
Superclass::InputRegionType
InputRegionType
;
83
typedef
typename
Superclass::InputSizeType
InputSizeType
;
84
typedef
typename
Superclass::InputSizeValueType
InputSizeValueType
;
85
typedef
typename
Superclass::InputSpacingType
InputSpacingType
;
86
typedef
typename
Superclass::InputIndexType
InputIndexType
;
87
typedef
typename
Superclass::InputIndexValueType
InputIndexValueType
;
88
typedef
typename
Superclass::InputPointType
InputPointType
;
89
90
typedef
TFeatureImage
FeatureImageType
;
91
typedef
typename
Superclass::FeatureImagePointer
FeatureImagePointer
;
92
typedef
typename
Superclass::FeatureImageConstPointer
FeatureImageConstPointer
;
93
typedef
typename
Superclass::FeaturePixelType
FeaturePixelType
;
94
typedef
typename
Superclass::FeatureRegionType
FeatureRegionType
;
95
typedef
typename
Superclass::FeatureSizeType
FeatureSizeType
;
96
typedef
typename
Superclass::FeatureSizeValueType
FeatureSizeValueType
;
97
typedef
typename
Superclass::FeatureSpacingType
FeatureSpacingType
;
98
typedef
typename
Superclass::FeatureIndexType
FeatureIndexType
;
99
typedef
typename
Superclass::FeaturePointType
FeaturePointType
;
100
101
double
m_BackgroundConstantValues
;
102
double
m_ForegroundConstantValues
;
103
double
m_WeightedSumOfPixelValuesInsideLevelSet
;
104
double
m_WeightedSumOfPixelValuesOutsideLevelSet
;
105
protected
:
106
ScalarChanAndVeseLevelSetFunctionData
():
Superclass
()
107
{
108
m_BackgroundConstantValues
= 0.;
109
m_ForegroundConstantValues
= 0.;
110
m_WeightedSumOfPixelValuesInsideLevelSet
= 0.;
111
m_WeightedSumOfPixelValuesOutsideLevelSet
= 0.;
112
}
113
114
virtual
~ScalarChanAndVeseLevelSetFunctionData
() {}
115
private
:
116
ScalarChanAndVeseLevelSetFunctionData
(
const
Self
&);
//purposely not
117
// implemented
118
void
operator=
(
const
Self
&);
//purposely not
119
// implemented
120
};
121
}
//end namespace itk
122
123
#endif
124
Generated on Tue Jul 10 2012 23:42:45 for ITK by
1.8.1