mylo0001
-
Gesamte Inhalte
4 -
Benutzer seit
-
Letzter Besuch
Posts erstellt von mylo0001
-
-
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!
-
Hey thank you very much for your reply.
Do you maybe know if there is a certain known algorithm to do this? And how much would the obtained image deviate from reality?
-
Hey,
I am using a Thermal Imaging Bricklet.
I'm currently trying to get the temperature and the contrast image at the same time. It says in the documentation that it's not possible (from what I understood)
I have tried using both (TEMPERATURE IMAGE/ HIGH CONTRAST IMAGE) one after another, each time creating a new BrickletThermalImage but it didn't work.
I also tried to make a variation, as following:
if counter % 2 == 0: //Even Number ==> get temperature image ti_temp = BrickletThermalImaging(UID, ipcon) ti_temp.set_image_transfer_config(ti_temp.IMAGE_TRANSFER_MANUAL_TEMPERATURE_IMAGE) ti_temp.set_spotmeter_config([0, 0, 79, 59]) ti_temp.set_resolution(ti_temp.RESOLUTION_0_TO_655_KELVIN) temp_data = ti_temp.get_temperature_image() else: //Odd number ==> get temperature image ti_temp = BrickletThermalImaging(UID, ipcon) ti_temp.set_image_transfer_config(ti_temp.IMAGE_TRANSFER_MANUAL_HIGH_CONTRAST_IMAGE) image_data = ti_temp.get_high_contrast_image()
This also does not seem to work, I get the following results:
I manage to get the correct results for temperatures the first time, but afterwards it seems I only get the image data (or some values close to it) instead of the temperature data. If I leave the *else* part from the code, I always get the temperature data perfectly.
Since I want to have the image and the corresponding temperatures to it at the same time, is there a way to do that? Or to achieve something closer to that?
Thank you very much!
Thermal Imaging Bricklet - Color Palette
in General Discussion
Geschrieben
Okay, thank you very much for your reply, I will look it up!