ITK
5.2.0
Insight Toolkit
ITK
Modules
Core
Common
include
itkSymmetricEllipsoidInteriorExteriorSpatialFunction.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright NumFOCUS
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 itkSymmetricEllipsoidInteriorExteriorSpatialFunction_h
19
#define itkSymmetricEllipsoidInteriorExteriorSpatialFunction_h
20
21
#include "
itkInteriorExteriorSpatialFunction.h
"
22
23
namespace
itk
24
{
38
template
<
unsigned
int
VDimension = 3,
typename
TInput = Po
int
<
double
, VDimension>>
39
class
ITK_TEMPLATE_EXPORT
SymmetricEllipsoidInteriorExteriorSpatialFunction
40
:
public
InteriorExteriorSpatialFunction
<VDimension, TInput>
41
{
42
public
:
43
ITK_DISALLOW_COPY_AND_MOVE(
SymmetricEllipsoidInteriorExteriorSpatialFunction
);
44
46
using
Self
=
SymmetricEllipsoidInteriorExteriorSpatialFunction
;
47
using
Superclass
=
InteriorExteriorSpatialFunction<VDimension>
;
48
using
Pointer
=
SmartPointer<Self>
;
49
using
ConstPointer
=
SmartPointer<const Self>
;
50
using
VectorType
=
Vector<double, VDimension>
;
51
53
itkNewMacro(
Self
);
54
56
itkTypeMacro(
SymmetricEllipsoidInteriorExteriorSpatialFunction
,
InteriorExteriorSpatialFunction
);
57
59
using
InputType
=
typename
Superclass::InputType
;
60
62
using
OutputType
=
typename
Superclass::OutputType
;
63
65
OutputType
66
Evaluate(
const
InputType
& position)
const override
;
67
69
itkGetConstMacro(Center,
InputType
);
70
itkSetMacro(Center,
InputType
);
72
75
void
76
SetOrientation(
VectorType
orientation,
double
uniqueAxis,
double
symmetricAxes);
77
78
protected
:
79
SymmetricEllipsoidInteriorExteriorSpatialFunction
();
80
~
SymmetricEllipsoidInteriorExteriorSpatialFunction
()
override
=
default
;
81
82
void
83
PrintSelf(std::ostream & os,
Indent
indent)
const override
;
84
85
private
:
87
InputType
m_Center
;
88
90
double
m_UniqueAxis{ 10 };
91
93
double
m_SymmetricAxes{ 5 };
94
96
Vector<double, VDimension>
m_Orientation
;
97
99
double
m_VectorRatio{ 0.0 };
100
};
101
}
// end namespace itk
102
103
#ifndef ITK_MANUAL_INSTANTIATION
104
# include "itkSymmetricEllipsoidInteriorExteriorSpatialFunction.hxx"
105
#endif
106
107
#endif
itk::InteriorExteriorSpatialFunction
Returns whether or not a location is "inside" or "outside" a function.
Definition:
itkInteriorExteriorSpatialFunction.h:49
itk::SymmetricEllipsoidInteriorExteriorSpatialFunction::m_Center
InputType m_Center
Definition:
itkSymmetricEllipsoidInteriorExteriorSpatialFunction.h:87
itk::Vector< double, VDimension >
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition:
itkIndent.h:49
itk::SpatialFunction< bool, VDimension, TInput >::OutputType
typename Superclass::OutputType OutputType
Definition:
itkSpatialFunction.h:63
itk::InteriorExteriorSpatialFunction::InputType
typename Superclass::InputType InputType
Definition:
itkInteriorExteriorSpatialFunction.h:64
itk::InteriorExteriorSpatialFunction::OutputType
typename Superclass::OutputType OutputType
Definition:
itkInteriorExteriorSpatialFunction.h:67
itk::SpatialFunction< bool, VDimension, TInput >
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition:
itkAnnulusOperator.h:24
itkInteriorExteriorSpatialFunction.h
itk::SymmetricEllipsoidInteriorExteriorSpatialFunction::m_Orientation
Vector< double, VDimension > m_Orientation
Definition:
itkSymmetricEllipsoidInteriorExteriorSpatialFunction.h:96
itk::SymmetricEllipsoidInteriorExteriorSpatialFunction
Function implementation of an ellipsoid.
Definition:
itkSymmetricEllipsoidInteriorExteriorSpatialFunction.h:39
Generated on Thu Apr 1 2021 02:05:40 for ITK by
1.8.16