projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28cb714
)
resolves 11283
author
take1014
<y.takehara1014@gmail.com>
Fri, 12 Oct 2018 14:08:03 +0000
(23:08 +0900)
committer
take1014
<y.takehara1014@gmail.com>
Fri, 12 Oct 2018 14:08:25 +0000
(23:08 +0900)
modules/imgproc/src/resize.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/resize.cpp
b/modules/imgproc/src/resize.cpp
index
5436a78
..
688f4c7
100644
(file)
--- a/
modules/imgproc/src/resize.cpp
+++ b/
modules/imgproc/src/resize.cpp
@@
-3783,7
+3783,7
@@
void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
CV_Assert( !ssize.empty() );
CV_Assert( !dsize.empty() || (inv_scale_x > 0 && inv_scale_y > 0) );
- if( dsize.
area() == 0
)
+ if( dsize.
empty()
)
{
dsize = Size(saturate_cast<int>(ssize.width*inv_scale_x),
saturate_cast<int>(ssize.height*inv_scale_y));