mylo0001 Geschrieben September 25, 2020 at 21:20 Share Geschrieben September 25, 2020 at 21:20 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! Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
rtrbt Geschrieben September 28, 2020 at 11:57 Share Geschrieben September 28, 2020 at 11:57 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 Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
mylo0001 Geschrieben September 29, 2020 at 23:04 Autor Share Geschrieben September 29, 2020 at 23:04 Okay, thank you very much for your reply, I will look it up! Zitieren Link zu diesem Kommentar 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.