ITK
6.0.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
* https://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
itkOverrideGetNameOfClassMacro(
SymmetricEllipsoidInteriorExteriorSpatialFunction
);
57
59
using
typename
Superclass::InputType
;
60
62
using
typename
Superclass::OutputType
;
63
65
OutputType
66
Evaluate(
const
InputType & position)
const override
;
67
69
itkGetConstMacro(Center, InputType);
70
itkSetMacro(Center, InputType);
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::Vector< double, VDimension >
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition:
itkIndent.h:49
itk::FunctionBase< TInput, bool >::OutputType
bool OutputType
Definition:
itkFunctionBase.h:62
itk::SpatialFunction< bool, VDimension, TInput >
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition:
itkAnatomicalOrientation.h:29
itkInteriorExteriorSpatialFunction.h
itk::FunctionBase< TInput, bool >::InputType
TInput InputType
Definition:
itkFunctionBase.h:59
itk::SymmetricEllipsoidInteriorExteriorSpatialFunction
Function implementation of an ellipsoid.
Definition:
itkSymmetricEllipsoidInteriorExteriorSpatialFunction.h:39
Generated on
unknown
for ITK by
1.8.16