[][src]Function opencv::img_hash::marr_hildreth_hash

pub fn marr_hildreth_hash(
    input_arr: &dyn ToInputArray,
    output_arr: &mut dyn ToOutputArray,
    alpha: f32,
    scale: f32
) -> Result<()>

Computes average hash value of the input image

Parameters

  • inputArr: input image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
  • outputArr: Hash value of input, it will contain 16 hex decimal number, return type is CV_8U
  • alpha: int scale factor for marr wavelet (default=2).
  • scale: int level of scale factor (default = 1)

C++ default parameters

  • alpha: 2.0f
  • scale: 1.0f