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:
d2080a1
)
fixed floodfill with mask parameter when no mask is passed
author
Vadim Pisarevsky
<no@email>
Thu, 28 Jul 2011 14:10:17 +0000
(14:10 +0000)
committer
Vadim Pisarevsky
<no@email>
Thu, 28 Jul 2011 14:10:17 +0000
(14:10 +0000)
modules/imgproc/src/floodfill.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/floodfill.cpp
b/modules/imgproc/src/floodfill.cpp
index
6ddf196
..
25b6a01
100644
(file)
--- a/
modules/imgproc/src/floodfill.cpp
+++ b/
modules/imgproc/src/floodfill.cpp
@@
-1132,7
+1132,7
@@
int cv::floodFill( InputOutputArray _image, InputOutputArray _mask,
{
CvConnectedComp ccomp;
CvMat c_image = _image.getMat(), c_mask = _mask.getMat();
- cvFloodFill(&c_image, seedPoint, newVal, loDiff, upDiff, &ccomp, flags,
&c_mask
);
+ cvFloodFill(&c_image, seedPoint, newVal, loDiff, upDiff, &ccomp, flags,
c_mask.data.ptr ? &c_mask : 0
);
if( rect )
*rect = ccomp.rect;
return cvRound(ccomp.area);