ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkCartesianToPolarTransform.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 itkCartesianToPolarTransform_h
19#define itkCartesianToPolarTransform_h
20
21#include <iostream>
22#include "itkTransform.h"
23#include "itkMacro.h"
24#include "itkMatrix.h"
25
26namespace itk
27{
28
56template <typename TParametersValueType = double, // Data type for scalars (float or double)
57 unsigned int NDimensions = 3> // Number of dimensions
58class ITK_TEMPLATE_EXPORT CartesianToPolarTransform : public Transform<TParametersValueType, NDimensions, NDimensions>
59{
60public:
61 ITK_DISALLOW_COPY_AND_MOVE(CartesianToPolarTransform);
62
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(CartesianToPolarTransform);
74
76 static constexpr unsigned int SpaceDimension = NDimensions;
77 static constexpr unsigned int ParametersDimension = 0;
78
81
84
87
91
95
97 using InputVnlVectorType = vnl_vector_fixed<TParametersValueType, Self::SpaceDimension>;
98 using OutputVnlVectorType = vnl_vector_fixed<TParametersValueType, Self::SpaceDimension>;
99
103
109 TransformPoint(const InputPointType & point) const override;
110
113 TransformVector(const InputVectorType &) const override
114 {
115 itkExceptionMacro(<< "Method not applicable for this type of transform.");
116 return OutputVectorType();
117 }
118
120 OutputVnlVectorType
121 TransformVector(const InputVnlVectorType &) const override
122 {
123 itkExceptionMacro(<< "Method not applicable for this type of transform.");
124 return OutputVnlVectorType();
125 }
126
128 typename Superclass::OutputVectorPixelType
129 TransformVector(const typename Superclass::InputVectorPixelType &, const InputPointType &) const override
130 {
131 itkExceptionMacro(<< "Method not applicable for this type of transform.");
132 return typename Superclass::OutputVectorPixelType();
133 }
134
135 using Superclass::TransformVector;
136
138 OutputCovariantVectorType
140 {
141 itkExceptionMacro(<< "Method not applicable for this type of transform.");
143 }
144
145 using Superclass::TransformCovariantVector;
146
147 void
149 {
150 itkExceptionMacro(<< "Method not implemented yet.");
151 }
152
153 void
155 {}
156
157 void
159 {}
160
163 itkGetConstReferenceMacro(Center, InputPointType);
164
170 itkGetConstReferenceMacro(AngleOffset, typename OutputPointType::ValueType);
171
176 itkSetMacro(ConstArcIncr, bool);
177 itkGetMacro(ConstArcIncr, bool);
178 itkBooleanMacro(ConstArcIncr);
179
180protected:
183
185 void
186 PrintSelf(std::ostream & os, Indent indent) const override;
187
188private:
191 bool m_ConstArcIncr = false;
192}; // class CartesianToPolarTransform
193
194} // namespace itk
195
196
197#ifndef ITK_MANUAL_INSTANTIATION
198# include "itkCartesianToPolarTransform.hxx"
199#endif
200
201#endif
void PrintSelf(std::ostream &os, Indent indent) const override
static constexpr unsigned int SpaceDimension
Transform< TParametersValueType, NDimensions, NDimensions > Superclass
vnl_vector_fixed< TParametersValueType, Self::SpaceDimension > InputVnlVectorType
CovariantVector< TParametersValueType, Self::SpaceDimension > OutputCovariantVectorType
void SetParameters(const ParametersType &) override
typename Superclass::JacobianType JacobianType
static constexpr unsigned int ParametersDimension
OutputCovariantVectorType TransformCovariantVector(const InputCovariantVectorType &) const override
typename Superclass::ParametersType ParametersType
OutputVectorType TransformVector(const InputVectorType &) const override
CovariantVector< TParametersValueType, Self::SpaceDimension > InputCovariantVectorType
void SetFixedParameters(const ParametersType &) override
vnl_vector_fixed< TParametersValueType, Self::SpaceDimension > OutputVnlVectorType
Point< TParametersValueType, Self::SpaceDimension > InputPointType
Superclass::OutputVectorPixelType TransformVector(const typename Superclass::InputVectorPixelType &, const InputPointType &) const override
Vector< TParametersValueType, Self::SpaceDimension > InputVectorType
void ComputeJacobianWithRespectToParameters(const InputPointType &, JacobianType &) const override
OutputVnlVectorType TransformVector(const InputVnlVectorType &) const override
typename Superclass::ScalarType ScalarType
Vector< TParametersValueType, Self::SpaceDimension > OutputVectorType
Point< TParametersValueType, Self::SpaceDimension > OutputPointType
OutputPointType TransformPoint(const InputPointType &point) const override
A templated class holding a n-Dimensional covariant vector.
Control indentation during Print() invocation.
Definition itkIndent.h:53
A templated class holding a geometric point in n-Dimensional space.
Definition itkPoint.h:54
Implements transparent reference counting.
OptimizerParameters< ParametersValueType > ParametersType
VariableLengthVector< TParametersValueType > OutputVectorPixelType
VariableLengthVector< TParametersValueType > InputVectorPixelType
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)