You are awesome...
Some Frequently Asked Questions
How to I get RGB values from a binary image (GIF, JPG, etc.)?
To get RGB values from scanned images (GIF, PICT, or whatever)
use the Macintosh program GraphicConverter and follow these steps:
- Use the "Save as..."
option and select "ASCII" as the file format.
- Click on "Options..." and check the box marked
"Add Width, Height and Number of Colors".
- Then click "Ok" and save the file.
- Three files will be created if there are more that 256 colors (one for Red, Green and Blue).
- You can then
read the RGB values from these files with Microsoft Word or any other text file
- The first two numbers of each of the ASCII files created will be the number of rows and columns, repectively. Each row of numbers after this corresponds
to the each row of pixels in the original image.
UNIX PPM Method
Another way to do this is to use
NetPBM Software - ppmtogif, giftoppm, etc.
For example if your filename is filename.gif you could type
the following on your UNIX account:
giftoppm filename.gif > temp.ppm
pnmnoraw temp.ppm > filename.ppm
The RGB values would them be in the file filename.ppm
See CIE 1964 and 1931 xyz Spectra Tristimulus Values and
for more information.
Back to Color Science