ojph_expand changes image intensity #133
Replies: 3 comments 1 reply
-
Hi Stephen, Did you supply bit-depth? What was it? If your image is ppm, you should have no problem. Cheers, |
Beta Was this translation helpful? Give feedback.
-
@stephenchenKL can you please provide a sample file and the command-line you are using that causes this issue for you? The TIFF input code should just compress all 16bits exactly as provided, unless you provide a -bit_depth N command-line argument, which will cause openjph to only compress the top N bits in the input TIF file instead of using the file-bitdepth (usually 8 or 16). Using 16bit TIFF input file with -bit_depth 10 or -bit_depth 12 is common for use in media industry applications where 10 or 12 bit image data is stored in the top 10 or 12 MSBs of a 16bit TIF file. |
Beta Was this translation helpful? Give feedback.
-
Hi Stephen, Good to hear that you sorted it out.. Thank you for letting us know. Kind regards, |
Beta Was this translation helpful? Give feedback.
-
I use ojph_compress to compress a 16-bit grayscale tif image. The max intensity is 1600. After I expand the image back to tif image, its max intensity is changed to 51200. How to keep the image unchanged after compress-expand?
Beta Was this translation helpful? Give feedback.
All reactions