[PLUG] Figuring out image transformation given source and target image

Mayuresh mayuresh at acm.org
Thu Dec 30 08:55:19 IST 2021


On Thu, Dec 30, 2021 at 02:29:20AM +0530, Sudhanwa Jogalekar wrote:
> Looks like there are very basic differences in the images.
> vendor jpg image is 1336 × 1336 ppi 8 bit RGB image. And your png image is
> 52.598 × 52.598 pixels/mm 16 bit but grayscale image.
> You might be loosing lot of image information due to selection of grayscale.

It's actually the vendor image that throws away extra bits per pixel.
Device returns 16 bits per pixel and final image has 8 bits.

$ identify byvendor.jpg 
byvendor.jpg JPEG 1168x1562 1168x1562+0+0 8-bit sRGB 77638B 0.000u
0:00.000

$ identify bypyrvg.png 
bypyrvg.png PNG 1168x1562 1168x1562+0+0 16-bit Grayscale Gray 2.78421MiB
0.000u 0:00.000

BTW vendor software provides a way to get its raw version, and my raw
version matches with vendor's raw exactly. So there is no loss of
information problem. It's purely an image post-processing problem.

-- 
Mayuresh


More information about the plug-mail mailing list