I have to save 16 bit grayscale data in jpeg2000 format. I tried to use the Jpeg 2000 example. The j2kit.exe only seems to write 8 bit output images - which scrambles my image data. How do I have to modify the example to have it write 16Bit?
I would recommend you to take a look at our new Unified Image Codec interface introduced in IPP 6.0. With UIC sample there is picnic application which you may use to store 16-bit images in any supported format (PNM, lossless JPEG and JPEG2000)