Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Writing jpeg 2000 images with 16 bit

$
0
0
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/samples.html 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

Viewing all articles
Browse latest Browse all 19555

Trending Articles