Santi-hr / UNI-T-Thermal-Utilities

Small script to extract raw temperature data from UNI-T thermal camera images.
MIT License
57 stars 5 forks source link

Port to Octave #4

Closed NotAProgrammerAtAll closed 1 year ago

NotAProgrammerAtAll commented 1 year ago

`` readthermalBmp.txt

I am not skilled with python - I took your instructions and put something together in octave. It seems to work except for reading the colour map/palette from the original file. I would appreciate help with that.

I have attached a .txt file - it can be converted to .m to run with octave.

It opens a file called 'IMG_0003.bmp' displays the corresponding BMP, and reads the header and a clean BMP. It displays the clean BMP in another figure and allows the user to select from a range of palettes. Thanks.

Santi-hr commented 1 year ago

Hello, I will try to give it a go this week. As soon as I develop something I will post here for you to check.

Santi-hr commented 1 year ago

edit_readthermalBmp.txt

Added a section to read the pallete from the file and display it on a separate figure. Check if this is was you were looking for!

Also while testing with some sample images I discovered a bug when reading negative temperatures. The variables MaxTemp, MinTemp and CentTemp should be read as signed ints.

NotAProgrammerAtAll commented 1 year ago

edit_readthermalBmp.txt

Added a section to read the pallete from the file and display it on a separate figure. Check if this is was you were looking for!

Also while testing with some sample images I discovered a bug when reading negative temperatures. The variables MaxTemp, MinTemp and CentTemp should be read as signed ints.

Thanks, it works now. I am still getting my head around the code you added. I am looking forward to your next update.