mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #22761 from reunanen:fix-floodFill-for-very-large-images
This commit is contained in:
commit
8a90948a1c
@ -283,7 +283,7 @@ floodFillGrad_CnIR( Mat& image, Mat& msk,
|
|||||||
Diff diff, ConnectedComp* region, int flags,
|
Diff diff, ConnectedComp* region, int flags,
|
||||||
std::vector<FFillSegment>* buffer )
|
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();
|
uchar* pImage = image.ptr();
|
||||||
_Tp* img = (_Tp*)(pImage + step*seed.y);
|
_Tp* img = (_Tp*)(pImage + step*seed.y);
|
||||||
uchar* pMask = msk.ptr() + maskStep + sizeof(_MTp);
|
uchar* pMask = msk.ptr() + maskStep + sizeof(_MTp);
|
||||||
|
Loading…
Reference in New Issue
Block a user