Hello @David_Tschumperle et al.
I’m trying to view an RGB histogram of a 16-bit RGB image, where the bin is 1px wide.
I found this page which seems to have exactly what I’m after:
http://gmic.eu/tutorial/convert_raw.shtml (skip to the Histograms section).
However, these two section do not work correctly:
gmic image.jpg -o histogram:name-of-file-for-histogram.miff
gmic name-of-file-for-histogram.miff -o histogram.png
The PNG and MIFF look like plain copies of the photo.
This command is supposed to show a RGB histogram, but it just shows the photo:
gmic name-of-file-for-histogram.miff
I’m using G’MIC-2.2.1, ImageMagick-6.9.9.40
Sample files:
https://filebin.net/x87qbq92plc11aue
Full log:
$ gmic _ASC4145-sRGB.tif -o histogram:h1.miff
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input all frames of TIFF file '_ASC4145-sRGB.tif' at position 0 (1 image 3892x2608x1x3).
[gmic]-1./ Output image [0] as histogram file 'h1.miff' (1 image 3892x2608x1x3).
[gmic]-1./ End G'MIC interpreter.
$ gmic h1.miff
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input file 'h1.miff' at position 0 (1 image 3892x2608x1x3).
[gmic]-1./ Display image [0] = 'h1.miff'.
[0] = 'h1.miff':
size = (3892,2608,1,3) [116 Mio of floats].
data = (34781,34223,33261,33712,33734,33858,33886,33838,33917,33838,33873,33602,(...),0,0,0,0,0,0,0,0,0,0,0,0).
min = 0, max = 65535, mean = 24912.6, std = 12583.9, coords_min = (3779,721,0,0), coords_max = (3838,804,0,0).
[gmic]-1./ End G'MIC interpreter.
$ gmic h1.miff -o h1.png
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input file 'h1.miff' at position 0 (1 image 3892x2608x1x3).
[gmic]-1./ Output image [0] as png file 'h1.png' (1 image 3892x2608x1x3).
[gmic]-1./ End G'MIC interpreter.
$ gmic h1.png
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input file 'h1.png' at position 0 (1 image 3892x2608x1x3).
[gmic]-1./ Display image [0] = 'h1.png'.
[0] = 'h1.png':
size = (3892,2608,1,3) [116 Mio of floats].
data = (34781,34223,33261,33712,33734,33858,33886,33838,33917,33838,33873,33602,(...),0,0,0,0,0,0,0,0,0,0,0,0).
min = 0, max = 65535, mean = 24912.6, std = 12583.9, coords_min = (3779,721,0,0), coords_max = (3838,804,0,0).
[gmic]-1./ End G'MIC interpreter.
Is it a bug, or am I doing something wrong?