[][src]Function opencv::text::compute_nm_channels

pub fn compute_nm_channels(
    _src: &dyn ToInputArray,
    _channels: &mut dyn ToOutputArray,
    _mode: i32
) -> Result<()>

Compute the different channels to be processed independently in the N&M algorithm Neumann12.

Parameters

  • _src: Source image. Must be RGB CV_8UC3.

  • _channels: Output vector<Mat> where computed channels are stored.

  • _mode: Mode of operation. Currently the only available options are: ERFILTER_NM_RGBLGrad (used by default) and ERFILTER_NM_IHSGrad.

In N&M algorithm, the combination of intensity (I), hue (H), saturation (S), and gradient magnitude channels (Grad) are used in order to obtain high localization recall. This implementation also provides an alternative combination of red (R), green (G), blue (B), lightness (L), and gradient magnitude (Grad).

C++ default parameters

  • _mode: ERFILTER_NM_RGBLGrad