detectEdges method

Mat detectEdges(
  1. InputArray src
)

The function detects edges in src and draw them to dst.

The algorithm underlies this function is much more robust to texture presence, than common approaches, e.g. Sobel

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

Implementation

Mat detectEdges(InputArray src) {
  cvAssert(src.type.depth == MatType.CV_32F);
  final dst = Mat.empty();
  cvRun(() => ccontrib.cv_ximgproc_StructuredEdgeDetection_detectEdges(ref, src.ref, dst.ref, ffi.nullptr));
  return dst;
}