Writing jpeg 2000 images with 16 bit
Hi all,
I know there has been a post about OpenCV's issue with writing jp2 images with 16 bit depth, but I'm posting this here in case there has been a workaround since the last post. All I did was to read a 16-bit png image and write it back in jp2 format. Here's the code:
Mat readMat = imread("pnggrad16rgb.png", IMREAD_UNCHANGED);
imwrite(string("pnggrad16rgb.jp2"), readMat);
The image pnggrad16rgb.png was downloaded from here:
http://www.fnordware.com/superpng/sam...
The resulting pnggrad16rgb.jp2 image is just a completely black image of the same size as the original image (I viewed it in Gimp 2.8).
Has there been a workaround to this issue?
Thanks, Fijoy