1 | initial version |
Hi gaurav_kl,
I am not sure if you have solved the problem or raised a ticket for it. I believe I have just asked a related question here.
I looks to be caused by 2012's commit to libjasper's jas_stream.c line 389 which has caused encoding to JPEG2000 to fail in Windows.
A few lines before that, tmpname() and open() opens up a temporary file but calling unlink() in windows when the file is opened will fail. I have resorted to reverting commit on 29/8/2012 to OpenCV's source master and build my own opencv_highguiXXX.dll which then allows me to call imencode or imwrite to JPEG2000 without failure.
If a ticket hasn't been raised, I hope this can help the dev people fix the issue in the new branch of OpenCV.