edgesNms method

Mat edgesNms(
  1. InputArray edgeImage,
  2. InputArray orientationImage, {
  3. int r = 2,
  4. int s = 0,
  5. double m = 1,
  6. bool isParallel = true,
})

The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.

https://docs.opencv.org/4.x/d8/d54/classcv_1_1ximgproc_1_1StructuredEdgeDetection.html#acbf4fc0ffd8237e53bfc83804c854148

Implementation

Mat edgesNms(
  InputArray edgeImage,
  InputArray orientationImage, {
  int r = 2,
  int s = 0,
  double m = 1,
  bool isParallel = true,
}) {
  final p = calloc<cvg.Mat>();
  cvRun(
    () => cffi.ximgproc_StructuredEdgeDetection_edgesNms(
      ref,
      edgeImage.ref,
      orientationImage.ref,
      p,
      r,
      s,
      m,
      isParallel,
    ),
  );
  return Mat.fromPointer(p);
}