opencv::intensity_transform

Function bimef_def

Source
pub fn bimef_def(
    input: &impl ToInputArray,
    output: &mut impl ToOutputArray,
) -> Result<()>
Expand description

Given an input color image, enhance low-light images using the BIMEF method (ying2017bio ying2017new).

§Parameters

  • input: input color image.
  • output: resulting image.
  • mu: enhancement ratio.
  • a: a-parameter in the Camera Response Function (CRF).
  • b: b-parameter in the Camera Response Function (CRF).

@warning This is a C++ implementation of the original MATLAB algorithm. Compared to the original code, this implementation is a little bit slower and does not provide the same results. In particular, quality of the image enhancement is degraded for the bright areas in certain conditions.

§Note

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

  • mu: 0.5f
  • a: -0.3293f
  • b: 1.1258f