bug in cvFloodfill implementation (Bug #1941)


Added by Aashish Kumar almost 13 years ago. Updated about 12 years ago.


Status:Done Start date:2012-05-16
Priority:Low Due date:
Assignee:Evgeny Talanin % Done:

0%

Category:imgproc, video
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

While checking the implementaiton of cvFloodfill i noticed a bug in the buffer size allocation for the queue used for floodfill.
currently its = 2* MAX (image->width,image->height)
which is not sufficient for lot of test cases.
i tried a case to highlight this bug (attached)..
the floodfill didn't work properly on that image because of the bug..
i am still working on finding the max buffer size for a line based floodfill implementation


input.bmp - Input Image to floodfill algorithm (41.1 kB) Aashish Kumar, 2012-05-16 11:28 am

output.bmp - Output Image after floodfilling the while pixels by black. as you can see there are still some left over white pixels which should have been filled with black (41.1 kB) Aashish Kumar, 2012-05-16 11:28 am


Associated revisions

Revision d368bf52
Added by Roman Donchenko over 11 years ago

Merge pull request #1941 from vhdirk:gst1x_default

History

Updated by Aashish Kumar almost 13 years ago

The seed point to the algorithm is (100,100)

Updated by Andrey Kamaev almost 13 years ago

  • Priority changed from High to Low
  • Target version set to 2.4.3
  • Category set to imgproc, video

Updated by Vadim Pisarevsky over 12 years ago

  • Target version deleted (2.4.3)

Updated by Evgeny Talanin over 12 years ago

  • Assignee set to Evgeny Talanin

Updated by Evgeny Talanin over 12 years ago

  • Status changed from Open to Done

Updated by Andrey Kamaev about 12 years ago

  • Target version set to 2.4.3

Also available in: Atom PDF