Get RGB

Get RGB is a computer program written by ITG staff Zach Johnson. It free, open source software for 2D image analysis. Get RGB is designed to get the RGB and alpha values of every pixel in a given image. The data of these values can later be used for color analysis. For example, using Get RGB you can track the change of pixels over a distance in an image, and then graph these changes in a different software package for viewing and presentation (Origin, MATLAB, Microsoft Excel, etc.). The software scans the image from left to right, and from the top to the bottom, reading and writing the alpha value and each RGB value of individual pixels. Once Get RGB is finished running, it will write the values for the alpha channel and each RGB channel to a text file in the location you specified previously.


Download the .exe for Get RGB version 1.0 here.

View and download the code for Get RGB version 1.0 here.

The image below is a screenshot of Get RGB's interface.


The image below shows individual pixels numbered in the order of Get RGB's image processing.



Below is an example of a single line of text in Get RGB's output text file.

A=255, R=17, G=142, B=91

These values correspond to the following:

A=255 is the alpha channel of a pixel that contains a value of 255, (no transparency in this case).
R=17 is the red channel of a pixel that contains a value of 17.
G=142 is the green channel of a pixel that contains a value of 142.
B=91 is the blue channel of a pixel that contains a value of 91.

These values are comma delimited in the resulting text file. When you import this file into a software package for viewing and graphing, you must inform the software that you are importing "comma delimited" data. For example, when using Microsoft Excel to import a Get RGB output text file, choose data > import > from text file. Then you can select "comma delimited" to separate these into the correct columns for further analysis.



Get RGB was written by ITG staff Zach Johnson.
Contact Zach Johnson if you have questions regarding this package.