UsacParams constructor
UsacParams({
- double confidence = 0,
- bool isParallel = false,
- int loIterations = 0,
- int loMethod = LOCAL_OPTIM_NULL,
- int loSampleSize = 0,
- int maxIterations = 0,
- int neighborsSearch = NEIGH_FLANN_KNN,
- int randomGeneratorState = 0,
- int sampler = SAMPLING_UNIFORM,
- int score = SCORE_METHOD_RANSAC,
- double threshold = 0,
- int finalPolisher = NONE_POLISHER,
- int finalPolisherIterations = 0,
Implementation
factory UsacParams({
double confidence = 0,
bool isParallel = false,
int loIterations = 0,
int loMethod = LOCAL_OPTIM_NULL,
int loSampleSize = 0,
int maxIterations = 0,
int neighborsSearch = NEIGH_FLANN_KNN,
int randomGeneratorState = 0,
int sampler = SAMPLING_UNIFORM,
int score = SCORE_METHOD_RANSAC,
double threshold = 0,
int finalPolisher = NONE_POLISHER,
int finalPolisherIterations = 0,
}) {
final p = calloc<cvg.UsacParams>()
..ref.confidence = confidence
..ref.isParallel = isParallel
..ref.loIterations = loIterations
..ref.loMethod = loMethod
..ref.loSampleSize = loSampleSize
..ref.maxIterations = maxIterations
..ref.neighborsSearch = neighborsSearch
..ref.randomGeneratorState = randomGeneratorState
..ref.sampler = sampler
..ref.score = score
..ref.threshold = threshold
..ref.final_polisher = finalPolisher
..ref.final_polisher_iterations = finalPolisherIterations;
return UsacParams.fromPointer(p);
}