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
itkLevelSetDenseImage.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 __itkLevelSetDenseImage_h
20
#define __itkLevelSetDenseImage_h
21
22
#include "
itkDiscreteLevelSetImage.h
"
23
24
namespace
itk
25
{
40
template
<
class
TImage >
41
class
LevelSetDenseImage
:
42
public
DiscreteLevelSetImage
< typename TImage::PixelType, TImage::ImageDimension >
43
{
44
public
:
45
typedef
TImage
ImageType
;
46
typedef
typename
ImageType::Pointer
ImagePointer
;
47
typedef
typename
ImageType::IndexType
IndexType
;
48
typedef
typename
ImageType::PixelType
PixelType
;
49
typedef
typename
ImageType::RegionType
RegionType
;
51
52
typedef
LevelSetDenseImage
Self
;
53
typedef
SmartPointer< Self >
Pointer
;
54
typedef
SmartPointer< const Self >
ConstPointer
;
55
typedef
DiscreteLevelSetImage< PixelType, ImageType::ImageDimension >
Superclass
;
56
58
itkNewMacro (
Self
);
59
61
itkTypeMacro (
LevelSetDenseImage
,
DiscreteLevelSetImage
);
62
63
itkStaticConstMacro (
Dimension
,
unsigned
int
,
Superclass::Dimension
);
64
65
typedef
typename
Superclass::InputType
InputType
;
66
typedef
typename
Superclass::OutputType
OutputType
;
67
typedef
typename
Superclass::OutputRealType
OutputRealType
;
68
typedef
typename
Superclass::GradientType
GradientType
;
69
typedef
typename
Superclass::HessianType
HessianType
;
70
typedef
typename
Superclass::LevelSetDataType
LevelSetDataType
;
71
72
virtual
void
SetImage
(
ImageType
* iImage );
73
itkGetModifiableObjectMacro(
Image
,
ImageType
);
74
76
virtual
OutputType
Evaluate
(
const
InputType
& iP )
const
;
77
virtual
void
Evaluate
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
79
80
protected
:
81
LevelSetDenseImage
();
82
83
virtual
~LevelSetDenseImage
();
84
85
ImagePointer
m_Image
;
86
87
virtual
bool
IsInsideDomain
(
const
InputType
& iP )
const
;
88
90
virtual
void
Initialize
();
91
93
virtual
void
CopyInformation
(
const
DataObject
*data);
94
96
virtual
void
Graft
(
const
DataObject
* data );
97
98
private
:
99
100
LevelSetDenseImage
(
const
Self
& );
// purposely not implemented
101
void
operator =
(
const
Self
& );
// purposely not implemented
102
};
103
}
104
105
#ifndef ITK_MANUAL_INSTANTIATION
106
#include "itkLevelSetDenseImage.hxx"
107
#endif
108
109
#endif // __itkLevelSetDenseImage_h
110
Generated on Mon May 13 2013 00:58:54 for ITK by
1.8.3.1