1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

imgproc:fix winSize in createHanningWindow()

This commit is contained in:
berak
2017-08-16 08:51:34 +02:00
parent ef2b73043d
commit e7b9cfa8f2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -2723,7 +2723,7 @@ An example is shown below:
createHanningWindow(hann, Size(100, 100), CV_32F);
@endcode
@param dst Destination array to place Hann coefficients in
@param winSize The window size specifications
@param winSize The window size specifications (both width and height must be > 1)
@param type Created array type
*/
CV_EXPORTS_W void createHanningWindow(OutputArray dst, Size winSize, int type);
+1
View File
@@ -579,6 +579,7 @@ void cv::createHanningWindow(OutputArray _dst, cv::Size winSize, int type)
CV_INSTRUMENT_REGION()
CV_Assert( type == CV_32FC1 || type == CV_64FC1 );
CV_Assert( winSize.width > 1 && winSize.height > 1 );
_dst.create(winSize, type);
Mat dst = _dst.getMat();