Possible bug in CV_YUV420sp2BGR cvCvtColor()/cvtColor() with TBB? (Bug #1870)
Description
I've been chasing down a very elusive bug.
Using OpenCV 2.3.1 TBB build (from SourceForge) on Windows XP, with VS2008 (vc9) on x86.
I was trying to use cvCvtColor()/cvtColor() with CV_YUV420sp2BGR.
I pass the function 2 properly sized YUV and RGB images (YUV.height = 1.5*RGB.height).
I performed all required checks myself before calling the function.
The function sporadically (undeterministically) throws an error: "Assertion failed: y == 0 || (data && dims >= 1 && (unsigned)y < (unsigned)size.p0) " ... opencv2\core\mat.hpp line 443.
However, the image is properly converted.
Since I used pre-built binaries I could not step into the code to see what happens.
However, the only likely place this may come from is from ...modules\imgproc\src\color.cpp either line 2730 or 2731.
Before posting here, I decided to do a full build so I can properly debug.
I did a non-TBB build and the code now runs as expected. No problems.
I also could not reproduce the problem with my own TBB build.
Associated revisions
Merge pull request #1870 from es0m:es0m-2.4-imgproc-samplers
History
Updated by Andrey Kamaev almost 13 years ago
Could you try the recent OpenCV 2.4.0?
I think this bug was fixed some time ago.
- Category set to imgproc, video
- Assignee set to Andrey Kamaev
Updated by Andrey Kamaev almost 13 years ago
Closing because of inactivity.
- Status changed from Open to Cancelled
- Target version set to 2.4.1