32#include "nanoflann.hpp"
76template <
typename T,
typename SType,
typename TTransform>
80 ITK_DISALLOW_COPY_AND_MOVE(
RANSAC);
89 itkOverrideGetNameOfClassMacro(
RANSAC);
149 Compute(std::vector<SType> & parameters,
double desiredProbabilityForNoOutliers);
195 for (
int i = 0; i < this->length; i++)
197 if (arr1[i] < arr2[i])
199 else if (arr1[i] > arr2[i])
223 double bestRMSE{ std::numeric_limits<double>::max() };
244#ifndef ITK_MANUAL_INSTANTIATION
245# include "itkRANSAC.hxx"
SmartPointer< Self > Pointer
bool operator()(const int *arr1, const int *arr2) const
SubSetIndexComparator(int arrayLength)
SmartPointer< const Self > ConstPointer
std::set< int *, SubSetIndexComparator > * chosenSubSets
std::vector< double > Compute(std::vector< SType > ¶meters, double desiredProbabilityForNoOutliers)
void SetCheckCorrespondenceEdgeLength(double inputLength)
typename itk::ParametersEstimator< T, SType > ParametersEstimatorType
unsigned int numberOfThreads
bool GetCheckCorresspondenceDistance()
unsigned int maxIteration
void SetCheckCorresspondenceDistance(bool inputFlag)
unsigned int GetNumberOfThreads()
ParametersEstimator< T, SType >::Pointer paramEstimator
void SetMaxIteration(unsigned int maxIteration)
std::mutex hypothesisMutex
SmartPointer< Self > Pointer
double checkCorrespondenceEdgeLengthTest
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION RANSACThreadCallback(void *arg)
void SetParametersEstimator(ParametersEstimatorType *paramEstimator)
void SetData(std::vector< T > &data)
void SetNumberOfThreads(unsigned int numberOfThreads)
unsigned int Choose(unsigned int n, unsigned int m)
bool checkCorresspondenceDistanceFlag
double GetCheckCorrespondenceEdgeLength()
void SetAgreeData(std::vector< T > &data)
std::vector< double > parametersRansac
unsigned int numVotesForBest
typename itk::ParametersEstimator< T, SType >::Pointer ParametersEstimatorPointer
std::vector< T > agreeData
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ITK_THREAD_RETURN_TYPE ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION