mylo0001 Posted September 25, 2020 at 09:20 PM Share Posted September 25, 2020 at 09:20 PM Hello, I am using a Thermal Imaging Bricklet to create thermal images. My question is general, but I wanted to know on which formula the generated color palette is based and what's the logic behind it? For example in python the color palette creation looks as follows: for x in range(256): x /= 255.0 palette.append(int(round(255*math.sqrt(x)))) # RED palette.append(int(round(255*pow(x, 3)))) # GREEN if math.sin(2 * math.pi * x) >= 0: palette.append(int(round(255*math.sin(2 * math.pi * x)))) # BLUE else: palette.append(0) return palette Source: https://www.tinkerforge.com/en/doc/Software/Bricklets/ThermalImaging_Bricklet_Python.html Does any one know what's the principal behind this color palette? Thank you! Quote Link to comment Share on other sites More sharing options...
rtrbt Posted September 28, 2020 at 11:57 AM Share Posted September 28, 2020 at 11:57 AM Hi, The palette is gnuplot's PM3D palette. It looks similar to the palettes used by FLIR. https://stackoverflow.com/questions/28495390/thermal-imaging-palette has further explainations. 1 Quote Link to comment Share on other sites More sharing options...
mylo0001 Posted September 29, 2020 at 11:04 PM Author Share Posted September 29, 2020 at 11:04 PM Okay, thank you very much for your reply, I will look it up! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.