Function opencv::imgproc::create_hanning_window
source · pub fn create_hanning_window(
dst: &mut impl ToOutputArray,
win_size: Size,
typ: i32
) -> Result<()>
Expand description
This function computes a Hanning window coefficients in two dimensions.
See (http://en.wikipedia.org/wiki/Hann_function) and (http://en.wikipedia.org/wiki/Window_function) for more information.
An example is shown below:
// create hanning window of size 100x100 and type CV_32F
Mat hann;
createHanningWindow(hann, Size(100, 100), CV_32F);
§Parameters
- dst: Destination array to place Hann coefficients in
- winSize: The window size specifications (both width and height must be > 1)
- type: Created array type