mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Fix floodFill for very large images
This commit is contained in:
parent
21133a2091
commit
63bff33e85
@ -283,7 +283,7 @@ floodFillGrad_CnIR( Mat& image, Mat& msk,
|
||||
Diff diff, ConnectedComp* region, int flags,
|
||||
std::vector<FFillSegment>* buffer )
|
||||
{
|
||||
int step = (int)image.step, maskStep = (int)msk.step;
|
||||
size_t step = image.step, maskStep = msk.step;
|
||||
uchar* pImage = image.ptr();
|
||||
_Tp* img = (_Tp*)(pImage + step*seed.y);
|
||||
uchar* pMask = msk.ptr() + maskStep + sizeof(_MTp);
|
||||
|
Loading…
Reference in New Issue
Block a user