Function mindspore::dataset::Canny

Function Documentation

bool mindspore::dataset::Canny(const LiteMat &src, LiteMat &dst, double low_thresh, double high_thresh, int ksize = 3, bool L2gradient = false)

Detect edges in an image.

Parameters
  • src[in] LiteMat image to be processed. Only single channel LiteMat of type UINT8 is supported now.

  • dst[in] LiteMat image after processing.

  • low_thresh[in] The lower bound of the edge. Pixel with value below it will not be considered as a boundary. It should be a nonnegative value.

  • high_thresh[in] The higher bound of the edge. Pixel with value over it will be absolutely considered as a boundary. It should be a nonnegative value and no less than low_thresh.

  • ksize[in] The size of Sobel kernel (default=3). It can only be 3, 5 or 7.

  • L2gradient[in] Whether to use L2 distance while calculating gradient (default=false).