ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Segmentation
LevelSetsv4
include
itkLevelSetQuadEdgeMesh.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 __itkLevelSetQuadEdgeMesh_h
20
#define __itkLevelSetQuadEdgeMesh_h
21
22
#include "
itkLevelSetBase.h
"
23
#include "
itkObjectFactory.h
"
24
25
namespace
itk
26
{
34
template
<
class
TMesh >
35
class
LevelSetQuadEdgeMesh
:
36
public
LevelSetBase
<
37
typename TMesh::PointIdentifier,
38
TMesh::PointDimension,
39
typename TMesh::PixelType,
40
TMesh >
41
{
42
public
:
43
typedef
TMesh
MeshType
;
44
typedef
typename
TMesh::Pointer
MeshPointer
;
45
46
typedef
LevelSetQuadEdgeMesh
Self
;
47
typedef
SmartPointer< Self >
Pointer
;
48
typedef
SmartPointer< const Self >
ConstPointer
;
49
typedef
LevelSetBase
<
typename
MeshType::PointIdentifier,
50
MeshType::PointDimension,
51
typename
MeshType::PixelType,
52
MeshType
>
Superclass
;
53
55
itkNewMacro (
Self
);
56
58
itkTypeMacro (
LevelSetQuadEdgeMesh
,
LevelSetBase
);
59
60
typedef
typename
Superclass::InputType
InputType
;
61
typedef
typename
Superclass::OutputType
OutputType
;
62
typedef
typename
Superclass::OutputRealType
OutputRealType
;
63
typedef
typename
Superclass::GradientType
GradientType
;
64
typedef
typename
Superclass::HessianType
HessianType
;
65
typedef
typename
Superclass::LevelSetDataType
LevelSetDataType
;
66
67
itkSetObjectMacro(
Mesh
,
MeshType
);
68
itkGetObjectMacro(
Mesh
,
MeshType
);
69
71
virtual
OutputType
Evaluate
(
const
InputType
& iP )
const
;
72
75
virtual
GradientType
EvaluateGradient
(
const
InputType
& iP )
const
;
76
79
virtual
HessianType
EvaluateHessian
(
const
InputType
& iP )
const
;
80
81
84
virtual
void
Evaluate
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
85
89
virtual
void
EvaluateGradient
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
90
94
virtual
void
EvaluateHessian
(
const
InputType
& iP,
LevelSetDataType
& ioData )
const
;
95
97
virtual
void
Initialize
();
98
100
virtual
void
CopyInformation
(
const
DataObject
*data);
101
103
virtual
void
Graft
(
const
DataObject
* data );
104
105
106
protected
:
107
LevelSetQuadEdgeMesh
();
108
virtual
~LevelSetQuadEdgeMesh
();
109
110
private
:
111
LevelSetQuadEdgeMesh
(
const
Self
& );
// purposely not implemented
112
void
operator =
(
const
Self
& );
// purposely not implemented
113
114
MeshPointer
m_Mesh
;
115
};
116
}
117
118
#ifndef ITK_MANUAL_INSTANTIATION
119
#include "itkLevelSetQuadEdgeMesh.hxx"
120
#endif
121
#endif // __itkLevelSetQuadEdgeMesh_h
122
Generated on Tue Jul 10 2012 23:35:23 for ITK by
1.8.1