提交 fdb3d4ff 编写于 作者: A Alexander Alekhin

Merge pull request #9379 from berak:imgproc_hanning

...@@ -2726,7 +2726,7 @@ An example is shown below: ...@@ -2726,7 +2726,7 @@ An example is shown below:
createHanningWindow(hann, Size(100, 100), CV_32F); createHanningWindow(hann, Size(100, 100), CV_32F);
@endcode @endcode
@param dst Destination array to place Hann coefficients in @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 @param type Created array type
*/ */
CV_EXPORTS_W void createHanningWindow(OutputArray dst, Size winSize, int type); CV_EXPORTS_W void createHanningWindow(OutputArray dst, Size winSize, int type);
......
...@@ -579,6 +579,7 @@ void cv::createHanningWindow(OutputArray _dst, cv::Size winSize, int type) ...@@ -579,6 +579,7 @@ void cv::createHanningWindow(OutputArray _dst, cv::Size winSize, int type)
CV_INSTRUMENT_REGION() CV_INSTRUMENT_REGION()
CV_Assert( type == CV_32FC1 || type == CV_64FC1 ); CV_Assert( type == CV_32FC1 || type == CV_64FC1 );
CV_Assert( winSize.width > 1 && winSize.height > 1 );
_dst.create(winSize, type); _dst.create(winSize, type);
Mat dst = _dst.getMat(); Mat dst = _dst.getMat();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册