Re: possible bug reporting LAB colors as pixel: values
Posted: 2014-07-06T21:01:49-07:00
Thank you Snibgo. I did try using your suggestion, but the -depth script would not convert the jpeg file from 8 to 16 bit. I did however convert the jpeg file to a tiff file and was able to utilize the -depth script to convert the 8 bit file to a 16 bit file. The tiff 16 bit file could then be converted to Cielab colorspace utilizing the -colorspace script and written to a txt file for importing into Excel.
As you are aware, the output of the "-colorspace lab" script provides not only the pixel x,y coordinate and respective L*, a* and b* percentage values, but also comprises other information including characters, numbers, and symbols on each line corresponding to that pixel. Rather than importing the txt file into Excel to parse and delete the excess information reported for each pixel, and subsequently utilizing Excel to convert the three color values in the IM txt file from percentage values to their respective "true" values (e.g., a L* range of 0 to 100 and an a* and b* range of -100 to +100), can you make a suggestion as to how to have ImageMagick output a text having only the pixel xy coordinates and their respective "true" L*, a* and b* values, preferably in a table format where the results can be plotted (e.g., in a histogram form to look at the variability in the three colorspace values. My goal is to utilize digital pictures camera rather than a colorimeter, which measures a small percent of total area, to monitor the consistency colored parts. Likewise, if IM cannot do the last couple steps (i.e., generate a tabulated format that can be viewed in a statistical graphics form) or you are aware of another program better suited for what I am trying to achieve, and/or you are aware of a reference that can aid me in achieving my objective, I would greatly appreciate you thoughts.
Jack
As you are aware, the output of the "-colorspace lab" script provides not only the pixel x,y coordinate and respective L*, a* and b* percentage values, but also comprises other information including characters, numbers, and symbols on each line corresponding to that pixel. Rather than importing the txt file into Excel to parse and delete the excess information reported for each pixel, and subsequently utilizing Excel to convert the three color values in the IM txt file from percentage values to their respective "true" values (e.g., a L* range of 0 to 100 and an a* and b* range of -100 to +100), can you make a suggestion as to how to have ImageMagick output a text having only the pixel xy coordinates and their respective "true" L*, a* and b* values, preferably in a table format where the results can be plotted (e.g., in a histogram form to look at the variability in the three colorspace values. My goal is to utilize digital pictures camera rather than a colorimeter, which measures a small percent of total area, to monitor the consistency colored parts. Likewise, if IM cannot do the last couple steps (i.e., generate a tabulated format that can be viewed in a statistical graphics form) or you are aware of another program better suited for what I am trying to achieve, and/or you are aware of a reference that can aid me in achieving my objective, I would greatly appreciate you thoughts.
Jack