UsacParams constructor

UsacParams({
  1. double confidence = 0,
  2. bool isParallel = false,
  3. int loIterations = 0,
  4. int loMethod = LOCAL_OPTIM_NULL,
  5. int loSampleSize = 0,
  6. int maxIterations = 0,
  7. int neighborsSearch = NEIGH_FLANN_KNN,
  8. int randomGeneratorState = 0,
  9. int sampler = SAMPLING_UNIFORM,
  10. int score = SCORE_METHOD_RANSAC,
  11. double threshold = 0,
  12. int finalPolisher = NONE_POLISHER,
  13. 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);
}