Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
e7b9cfa8
Commit
e7b9cfa8
authored
Aug 16, 2017
by
berak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgproc:fix winSize in createHanningWindow()
parent
ef2b7304
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
imgproc.hpp
modules/imgproc/include/opencv2/imgproc.hpp
+1
-1
phasecorr.cpp
modules/imgproc/src/phasecorr.cpp
+1
-0
No files found.
modules/imgproc/include/opencv2/imgproc.hpp
View file @
e7b9cfa8
...
@@ -2723,7 +2723,7 @@ An example is shown below:
...
@@ -2723,7 +2723,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
);
...
...
modules/imgproc/src/phasecorr.cpp
View file @
e7b9cfa8
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment