ft1_2d_polynomial

Function ft1_2d_polynomial 

Source
pub fn ft1_2d_polynomial(
    matrix: &impl ToInputArray,
    kernel: &impl ToInputArray,
    c00: &mut impl ToOutputArray,
    c10: &mut impl ToOutputArray,
    c01: &mut impl ToOutputArray,
    components: &mut impl ToOutputArray,
    mask: &impl ToInputArray,
) -> Result<()>
Expand description

Computes elements of inline formula-transform components.

§Parameters

  • matrix: Input array.
  • kernel: Kernel used for processing. Function ft::createKernel can be used.
  • c00: Elements represent average color.
  • c10: Elements represent average vertical gradient.
  • c01: Elements represent average horizontal gradient.
  • components: Output 32-bit float array for the components.
  • mask: Mask can be used for unwanted area marking.

The function computes components and its elements using predefined kernel and mask.

§C++ default parameters

  • mask: noArray()