Function mindspore::dataset::Sobel

Function Documentation

bool mindspore::dataset::Sobel(const LiteMat &src, LiteMat &dst, int flag_x, int flag_y, int ksize = 3, double scale = 1.0, PaddBorderType pad_type = PaddBorderType::PADD_BORDER_DEFAULT)

Filter the image by a Sobel kernel.

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

  • dst[in] LiteMat image after processing.

  • flag_x[in] Order of the derivative x. It should be a nonnegative value and can not be equal to 0 at the same time with flag_y.

  • flag_y[in] Order of the derivative y. It should be a nonnegative value and can not be equal to 0 at the same time with flag_x.

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

  • scale[in] The scale factor for the computed derivative values (default=1.0).

  • pad_type[in] The padding type used while filtering (default=PaddBorderType::PADD_BORDER_DEFAULT).