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>()
    ..ref.alpha = alpha
    ..ref.beta = beta
    ..ref.eta = eta
    ..ref.minScore = minScore
    ..ref.maxBoxes = maxBoxes
    ..ref.edgeMinMag = edgeMinMag
    ..ref.edgeMergeThr = edgeMergeThr
    ..ref.clusterMinMag = clusterMinMag
    ..ref.maxAspectRatio = maxAspectRatio
    ..ref.minBoxArea = minBoxArea
    ..ref.gamma = gamma
    ..ref.kappa = kappa;

  return EdgeBoxes.fromPointer(p);
}