opencv::ximgproc

Function erode_def

Source
pub fn erode_def(
    rl_src: &impl ToInputArray,
    rl_dest: &mut impl ToOutputArray,
    rl_kernel: &impl ToInputArray,
) -> Result<()>
Expand description

Erodes an run-length encoded binary image by using a specific structuring element.

§Parameters

  • rlSrc: input image
  • rlDest: result
  • rlKernel: kernel
  • bBoundaryOn: indicates whether pixel outside the image boundary are assumed to be on (True: works in the same way as the default of cv::erode, False: is a little faster)
  • anchor: position of the anchor within the element; default value (0, 0) is usually the element center.

§Note

This alternative version of erode function uses the following default values for its arguments:

  • b_boundary_on: true
  • anchor: Point(0,0)