imread and tiled tiff images (Bugfix #3472)
Description
imread() does not load tiled tiff images properly if the image with and height are not exact tile multiples.
In order to reproduce the bug, save the attached image and use ImagMagick's convert program to create a tiled copy, then try to load and save the converted image with OpenCV.
Or just run the script bug.sh (you will need to adjust the path to your local OpenCV build) and view the resulting images.
A diff against the latest git which fixes the probelm is attached, I did not check the float and double cases.
Associated revisions
Merge pull request #3472 from Dmitry-Me:preventDivByZero
History
Updated by Daniil Osokin about 11 years ago
- Target version set to 2.4.9
- Tracker changed from Bug to Patch
Updated by Daniil Osokin about 11 years ago
Matti, thanks for the patch! Could you please send a pull request: http://code.opencv.org/projects/opencv/wiki/How_to_contribute? It will really help!
- Assignee set to Matti Picus
Updated by Matti Picus about 11 years ago
Added pull request from branch issue3472
Updated by Andrew Senin about 11 years ago
Matti,
thanks a lot for the pull request! Unfortunately at the moment the automatic build is failed due to the merge conflict:
http://build.opencv.org/builders/precommit_windows/builds/8658
http://pullrequest.opencv.org/?page=0
Could you please fix and update? Thanks again
- Pull request set to https://github.com/Itseez/opencv/pull/2180
- Status changed from New to Open
Updated by Matti Picus about 11 years ago
Added pull requests against both 2.4 and master branches
Updated by Matti Picus about 11 years ago
is there any news? Should I be doing something to get this closed?
Updated by Dmitry Retinskiy about 11 years ago
Thanks Matti.
Issue is closed.
- Status changed from Open to Done
Updated by Kirill Kornyakov about 11 years ago
- Tracker changed from Patch to Bugfix
- Assignee deleted (
Matti Picus)