Code: Select all
$ identify <file>
TIFF 144x149 144x149+0+0 64-bit Grayscale Gray 173050B 0.000u 0:00.000
Code: Select all
$ magick <file> -depth 8 miff:- | identify -
-=>/var/folders/z_/my_04rd11_j2drwtjs0j88280000gp/T/magick-6527ZiXJaT0vbV12 MIFF 144x149 144x149+0+0 8-bit Grayscale Gray 21886B 0.010u 0:00.009
identify: unexpected end-of-file '/var/folders/z_/my_04rd11_j2drwtjs0j88280000gp/T/magick-6527ZiXJaT0vbV12': No such file or directory @ error/miff.c/ReadMIFFImage/1615.
Code: Select all
$ magick F00_C0_T0058* -depth 16 miff:- | identify -
-=>/var/folders/z_/my_04rd11_j2drwtjs0j88280000gp/T/magick-6534jyo532xQR5DS MIFF 144x149 144x149+0+0 16-bit Grayscale Gray 43358B 0.000u 0:00.000
Code: Select all
$ magick <file> -level 1,20% miff:- | display - # gives good contrast
$ magick <file> -depth 16 -level 1,20% miff:- | display - # image nearly saturated (white)
I would like to convert the 64-bit IEEEFP image to unsigned 8-bit while preserving the image histogram within the precision allowed by depth reduction. Can this be done with ImageMagick?
Code: Select all
$ magick -version
Version: ImageMagick 7.0.7-1 Q16 x86_64 2017-09-15 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib fontconfig freetype jng jpeg ltdl lzma png tiff x xml zlib