projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a41c65
)
fix for down rounded output sizes
author
Marina Kolpakova
<no@email>
Wed, 6 Jun 2012 13:25:36 +0000
(13:25 +0000)
committer
Marina Kolpakova
<no@email>
Wed, 6 Jun 2012 13:25:36 +0000
(13:25 +0000)
modules/imgproc/src/imgwarp.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/imgwarp.cpp
b/modules/imgproc/src/imgwarp.cpp
index
3a5f415
..
910a635
100644
(file)
--- a/
modules/imgproc/src/imgwarp.cpp
+++ b/
modules/imgproc/src/imgwarp.cpp
@@
-1272,11
+1272,14
@@
static void resizeArea_( const Mat& src, Mat& dst, const DecimateAlpha* xofs, in
WT beta1 = 1 - beta;
T* D = (T*)(dst.data + dst.step*cur_dy);
if( fabs(beta) < 1e-3 )
+ {
+ if(cur_dy >= dsize.height) return;
for( dx = 0; dx < dsize.width; dx++ )
{
D[dx] = saturate_cast<T>((sum[dx] + buf[dx]) / min(scale_y, src.cols - cur_dy * scale_y));
sum[dx] = buf[dx] = 0;
}
+ }
else
for( dx = 0; dx < dsize.width; dx++ )
{