Saving a 16-bit image in PNG produces 8-bit :(

Ask questions on using Emgu CV with C++
Post Reply
lordserega
Posts: 2
Joined: Tue Jul 27, 2010 2:39 pm

Saving a 16-bit image in PNG produces 8-bit :(

Post by lordserega » Tue Jul 27, 2010 2:55 pm

when I create an image using Emgu style:

Code: Select all

Emgu::CV::Image<Gray,UInt16>^imageGrab=gcnew Emgu::CV::Image<Gray,UInt16>(320,240);

//get the image

imageGrab->Save("image.png");
I get a 8-bit depth file on the disk, although if I do it using regular OpenCV procedure I am able to get 16-bit image. Is that a bug or I missed something?

Post Reply