Is there a way to edit the false colour palettes provided with PfEPMA? It would be nice to tweak rainbow to make backgrounds black, and make the custom FC palette look "nice"......... Its currently too pastel for my tastes. I have tried this in Surfer, but it does not recognise the format. I have opened the file in notepad and had a look and am none the wiser, nor have I made any headway in image J....... What's the trick?
Too pastel for your tastes... eh?
![Wink ;)](https://probesoftware.com/smf/Smileys/default/wink.gif)
Well I was trying to avoid black on both ends of each spectrum because if both the min and max are black... well you know.
But yes they can be edited. Basically the FC format is quite simple as seen here:
False color description for MicroImage/Probe For EPMA/CalcImage
BEGIN Items
Interpolate = 1
Item=0 0 16711808 untitled
Item=255 255 65535 untitled
Item=120 120 8453888 untitled
END Items
Basically one can have either a non interpolated color scale or an interpolated color scale. If non interpolated (Interpolate = 0), then each color index (0 to 255) must be specified specifically. So you need 256 color entries. For the interpolated color scale one only needs to specify at least two color entries (0 and 255). The app will automatically interpolate between the two colors specified.
The first two parameters for the "Item=" keywords are the color index entry numbers (0 through 255) for the start index and end index. Usually the same index is specified for each color in the non interpolated case, though one can define multiple color index numbers to the same color.
The last number is the 24 bit RGB composite color number, produced like this: Red + Green * 255 + Blue * 65535. These are stored in a 32 bit long integer where the 4th byte is the "alpha" parameter which is not used by VB.
To compare to the JEOL .LUT color file, see below where I have attached a JEOL .LUT file and the same file converted to a .FC format. Note that the JEOL .LUT file contains the 3 RGB 8 bit colors *not* composited as they are in the .FC file.
The easiest thing is probably for me to add a button somewhere to allow the user to convert .LUT files to .FC files.
What do you think?