ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkExpectationBasedPointSetToPointSetMetricv4.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 itkExpectationBasedPointSetToPointSetMetricv4_h
19#define itkExpectationBasedPointSetToPointSetMetricv4_h
20
22#include "itkPointSet.h"
23#include "itkImage.h"
24
25namespace itk
26{
39template <typename TFixedPointSet,
40 typename TMovingPointSet = TFixedPointSet,
41 class TInternalComputationValueType = double>
43 : public PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet, TInternalComputationValueType>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(ExpectationBasedPointSetToPointSetMetricv4);
47
53
55 itkSimpleNewMacro(Self);
56
58 itkOverrideGetNameOfClassMacro(ExpectationBasedPointSetToPointSetMetricv4);
59
61 using typename Superclass::MeasureType;
62 using typename Superclass::DerivativeType;
64 using typename Superclass::PointType;
65 using typename Superclass::PixelType;
66 using typename Superclass::CoordinateType;
67 using typename Superclass::PointIdentifier;
69
74 GetLocalNeighborhoodValue(const PointType &, const PixelType & pixel = 0) const override;
75
79 void
83 const PixelType & pixel = 0) const override;
84
90 itkSetMacro(PointSetSigma, CoordinateType);
91
93 itkGetConstMacro(PointSetSigma, CoordinateType);
94
99 itkSetMacro(EvaluationKNeighborhood, unsigned int);
100
105 itkGetConstMacro(EvaluationKNeighborhood, unsigned int);
106
107 void
108 Initialize() override;
109
112 typename LightObject::Pointer
113 InternalClone() const override;
114
115protected:
118
119 bool
121 {
122 return false;
123 }
124
126 void
127 PrintSelf(std::ostream & os, Indent indent) const override;
128
129private:
130 using VectorType = typename PointType::VectorType;
131 using NeighborsIterator = typename NeighborsIdentifierType::const_iterator;
132
136 unsigned int m_EvaluationKNeighborhood{ 50 };
137};
138} // end namespace itk
139
140#ifndef ITK_MANUAL_INSTANTIATION
141# include "itkExpectationBasedPointSetToPointSetMetricv4.hxx"
142#endif
143
144#endif
PointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType > Superclass
MeasureType GetLocalNeighborhoodValue(const PointType &, const PixelType &pixel=0) const override
LightObject::Pointer InternalClone() const override
void PrintSelf(std::ostream &os, Indent indent) const override
~ExpectationBasedPointSetToPointSetMetricv4() override=default
void GetLocalNeighborhoodValueAndDerivative(const PointType &, MeasureType &, LocalDerivativeType &, const PixelType &pixel=0) const override
Control indentation during Print() invocation.
Definition itkIndent.h:50
SmartPointer< Self > Pointer
Array< TInternalComputationValueType > DerivativeType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....