AKAZE.create constructor

AKAZE.create({
  1. AKAZEDescriptorType descriptorType = AKAZEDescriptorType.DESCRIPTOR_MLDB,
  2. int descriptorSize = 0,
  3. int descriptorChannels = 3,
  4. double threshold = 0.001,
  5. int nOctaves = 4,
  6. int nOctaveLayers = 4,
  7. KAZEDiffusivityType diffusivity = KAZEDiffusivityType.DIFF_PM_G2,
  8. int maxPoints = -1,
})

Implementation

factory AKAZE.create({
  AKAZEDescriptorType descriptorType = AKAZEDescriptorType.DESCRIPTOR_MLDB,
  int descriptorSize = 0,
  int descriptorChannels = 3,
  double threshold = 0.001,
  int nOctaves = 4,
  int nOctaveLayers = 4,
  KAZEDiffusivityType diffusivity = KAZEDiffusivityType.DIFF_PM_G2,
  int maxPoints = -1,
}) {
  final p = calloc<cvg.AKAZE>();
  cvRun(
    () => cfeatures2d.cv_AKAZE_create_1(
      descriptorType.value,
      descriptorSize,
      descriptorChannels,
      threshold,
      nOctaves,
      nOctaveLayers,
      diffusivity.value,
      maxPoints,
      p,
    ),
  );
  return AKAZE._(p);
}