ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4.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 itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4_h
19#define itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4_h
20
22
24
25namespace itk
26{
27
64
65template <typename TPointSet, class TInternalComputationValueType = double>
67 : public PointSetToPointSetMetricv4<TPointSet, TPointSet, TInternalComputationValueType>
68{
69public:
71
77
79 itkSimpleNewMacro(Self);
80
83
84 using PointSetType = TPointSet;
85 using PointsContainer = typename PointSetType::PointsContainer;
86 using PointsContainerConstIterator = typename PointsContainer::ConstIterator;
87
88 static constexpr unsigned int PointDimension = TPointSet::PointDimension;
89
91 using typename Superclass::MeasureType;
92 using typename Superclass::DerivativeType;
95 using typename Superclass::PointType;
96 using typename Superclass::PixelType;
97 using typename Superclass::CoordinateType;
98 using typename Superclass::PointIdentifier;
101
102 using typename Superclass::JacobianType;
105
107
114
116 void
117 Initialize() override;
118
128 itkSetClampMacro(Alpha, RealType, 1.0, 2.0);
129
133 itkGetConstMacro(Alpha, RealType);
134
140 itkSetMacro(PointSetSigma, RealType);
141
143 itkGetConstMacro(PointSetSigma, RealType);
144
149 itkSetMacro(EvaluationKNeighborhood, unsigned int);
150
155 itkGetConstMacro(EvaluationKNeighborhood, unsigned int);
156
161 itkSetMacro(UseAnisotropicCovariances, bool);
162
167 itkGetConstMacro(UseAnisotropicCovariances, bool);
168
173 itkBooleanMacro(UseAnisotropicCovariances);
174
180 itkSetMacro(CovarianceKNeighborhood, unsigned int);
181
187 itkGetConstMacro(CovarianceKNeighborhood, unsigned int);
188
196 itkSetMacro(KernelSigma, RealType);
197
199 itkGetConstMacro(KernelSigma, RealType);
200
202 GetLocalNeighborhoodValue(const PointType & point, const PixelType & pixel = 0) const override;
203
205 void
207 MeasureType &,
209 const PixelType & pixel = 0) const override;
210
213 typename LightObject::Pointer
214 InternalClone() const override;
215
216protected:
219
220 void
222 MeasureType & value,
223 LocalDerivativeType & derivativeReturn,
224 bool calcValue,
225 bool calcDerivative) const;
226
227 void
228 PrintSelf(std::ostream & os, Indent indent) const override;
229
230 bool
232 {
233 return false;
234 }
235
236 bool
238 {
239 return false;
240 }
241
242private:
244
246
251
253
258};
259
260
261} // end namespace itk
262
263#ifndef ITK_MANUAL_INSTANTIATION
264# include "itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4.hxx"
265#endif
266
267#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
void ComputeValueAndDerivative(const PointType &samplePoint, MeasureType &value, LocalDerivativeType &derivativeReturn, bool calcValue, bool calcDerivative) const
LightObject::Pointer InternalClone() const override
void PrintSelf(std::ostream &os, Indent indent) const override
ManifoldParzenWindowsPointSetFunction< PointSetType, RealType > DensityFunctionType
PointSetToPointSetMetricv4< TPointSet, TPointSet, TInternalComputationValueType > Superclass
MeasureType GetLocalNeighborhoodValue(const PointType &point, const PixelType &pixel=0) const override
void GetLocalNeighborhoodValueAndDerivative(const PointType &, MeasureType &, LocalDerivativeType &, const PixelType &pixel=0) const override
SmartPointer< Self > Pointer
Point set function based on n-dimensional parzen windowing.
FixedArray< DerivativeValueType, Self::PointDimension > LocalDerivativeType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
*par Constraints *The filter image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents