Ask Your Question

changizi's profile - activity

2016-04-26 02:14:59 -0600 received badge  Self-Learner (source)
2016-04-25 13:57:27 -0600 commented answer Floodfill gives different results on different machines

If the original image is png, the result is still different. The problem is basically not with floofill, it is due to the different input image read using jpeg/png libraries. The images were read identically only if they were saved in bmp format.

2016-04-25 13:27:55 -0600 answered a question Floodfill gives different results on different machines

In case anyone else has the same issue I just figured out the issue is caused by different jpeg readers on different machines.

2016-04-22 13:09:12 -0600 received badge  Student (source)
2016-04-22 12:40:56 -0600 received badge  Editor (source)
2016-04-21 23:17:22 -0600 asked a question Floodfill gives different results on different machines
  • OpenCV version: 3.1
  • Host OS: Mac OS X 10.11.4

Issue in imgproc -> Floodfill function

I have a method that uses floodfill function on an image. The issue is that I get different results when running the code on different machines, even with same opencv version. Has anyone else experienced this issue? I can't figure out what is causing this.

original image:

image description

Mac OS X EI Capitan, OpenCV version: 3.1:

image description

Ubuntu 14.04.4 LTS, OpenCV version: 3.1:

image description

floodFill( blurredImage, cv::Mat(), cv::Point(blurredImage.cols/2,y), cv::Vec3b(255,255,255), 0, cv::Scalar::all(1), cv::Scalar::all(1) , 8 | 255<<8 );