I’m learning Fiji Macro programming and trying to do something like pseudo coloring of a TIF grayscale image. I need to color some of the TIF image pixels and not color others. My algorithm determines which pixels to color and which to leave as they are in the original image.
When the algorithm determines that a pixel is to be colored a number, called an Index number is calculated. Index numbers are in the range of 0 - 255. I want to use this Index number to get RGB values for r,g and b stored in a LUT file I create. My LUT file is 3 columns wide X 256 rows high.
I think if I had a way to convert the LUT file to an Array I could then retrieve the RGB values from the Array using the Index/row number (height) in the Array that corresponds to the RGB values I want to use. Maybe there is an easier way to accomplish what I am trying to do?
I’m open to suggestions. Do you need more information to recommend a solution? Let me know what you need to know.