ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkParametersEstimator.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
19#ifndef itkParametersEstimator_h
20#define itkParametersEstimator_h
21
22#include <vector>
23#include "itkObject.h"
26
27namespace itk
28{
29
48
49template <typename T, typename SType>
50class ITK_TEMPLATE_EXPORT ParametersEstimator : public Object
51{
52public:
57
58 itkOverrideGetNameOfClassMacro(ParametersEstimator);
59
66 virtual void
67 Estimate(std::vector<T *> & data, std::vector<SType> & parameters) = 0;
68 virtual void
69 Estimate(std::vector<T> & data, std::vector<SType> & parameters) = 0;
70
77 virtual void
78 LeastSquaresEstimate(std::vector<T *> & data, std::vector<SType> & parameters) = 0;
79 virtual void
80 LeastSquaresEstimate(std::vector<T> & data, std::vector<SType> & parameters) = 0;
81
86 virtual bool
87 Agree(std::vector<SType> & parameters, T & data) = 0;
88
89 virtual std::vector<double>
90 AgreeMultiple(std::vector<SType> & parameters, std::vector<T> & data, unsigned int currentBest) = 0;
91
92 virtual bool
93 CheckCorresspondenceDistance(std::vector<SType> & parameters, std::vector<T *> & data) = 0;
94
95 virtual bool
96 CheckCorresspondenceEdgeLength(std::vector<SType> & parameters, std::vector<T *> & data, double edgeLength) = 0;
97
104 void
106 unsigned int
108
109protected:
111 ~ParametersEstimator() override = default;
112
113 // minimal number of data objects required for an exact estimate
114 unsigned int minForEstimate;
115
116private:
117 ParametersEstimator(const Self &); // purposely not implemented
118 void
119 operator=(const Self &); // purposely not implemented
120};
121
122} // end namespace itk
123
124#ifndef ITK_MANUAL_INSTANTIATION
125# include "itkParametersEstimator.hxx"
126#endif
127
128#endif //_PARAMETERS_ESTIMATOR_H_
void operator=(const Self &)
ParametersEstimator(const Self &)
virtual bool CheckCorresspondenceDistance(std::vector< SType > &parameters, std::vector< T * > &data)=0
virtual void Estimate(std::vector< T > &data, std::vector< SType > &parameters)=0
virtual std::vector< double > AgreeMultiple(std::vector< SType > &parameters, std::vector< T > &data, unsigned int currentBest)=0
~ParametersEstimator() override=default
virtual void Estimate(std::vector< T * > &data, std::vector< SType > &parameters)=0
virtual void LeastSquaresEstimate(std::vector< T > &data, std::vector< SType > &parameters)=0
unsigned int GetMinimalForEstimate()
virtual bool CheckCorresspondenceEdgeLength(std::vector< SType > &parameters, std::vector< T * > &data, double edgeLength)=0
virtual bool Agree(std::vector< SType > &parameters, T &data)=0
virtual void LeastSquaresEstimate(std::vector< T * > &data, std::vector< SType > &parameters)=0
void SetMinimalForEstimate(unsigned int minForEstimate)
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....