EdgeBoxes constructor

EdgeBoxes({
  1. double alpha = 0.65,
  2. double beta = 0.75,
  3. double eta = 1,
  4. double minScore = 0.01,
  5. int maxBoxes = 10000,
  6. double edgeMinMag = 0.1,
  7. double edgeMergeThr = 0.5,
  8. double clusterMinMag = 0.5,
  9. double maxAspectRatio = 3,
  10. double minBoxArea = 1000,
  11. double gamma = 2,
  12. double kappa = 1.5,
})

Implementation

factory EdgeBoxes({
  double alpha = 0.65,
  double beta = 0.75,
  double eta = 1,
  double minScore = 0.01,
  int maxBoxes = 10000,
  double edgeMinMag = 0.1,
  double edgeMergeThr = 0.5,
  double clusterMinMag = 0.5,
  double maxAspectRatio = 3,
  double minBoxArea = 1000,
  double gamma = 2,
  double kappa = 1.5,
}) {
  final p = calloc<cvg.EdgeBoxes>();
  cvRun(
    () => ccontrib.cv_ximgproc_EdgeBoxes_create(
      alpha,
      beta,
      eta,
      minScore,
      maxBoxes,
      edgeMinMag,
      edgeMergeThr,
      clusterMinMag,
      maxAspectRatio,
      minBoxArea,
      gamma,
      kappa,
      p,
    ),
  );
  return EdgeBoxes.fromPointer(p);
}