[][src]Function opencv::ximgproc::threshold

pub fn threshold(
    src: &dyn ToInputArray,
    rl_dest: &mut dyn ToOutputArray,
    thresh: f64,
    typ: i32
) -> Result<()>

Applies a fixed-level threshold to each array element.

Parameters

  • src: input array (single-channel).
  • rlDest: resulting run length encoded image.
  • thresh: threshold value.
  • type: thresholding type (only cv::THRESH_BINARY and cv::THRESH_BINARY_INV are supported)