PGD Home

Project 136: Thermal Imager Project Update 14: RAWtoBMP Converter

by on Oct.04, 2015, under Inventions, Tutorials

I have created a small program to automatically convert all of the raw data from the Arduino Lepton project into a small, 80×60 .BMP file. I used the easyBMP library for the actual bitmap file handling, and a handy HSVtoRGB function that I found online to do to the HSVtoRGB conversion.

I have created a file format “.lrf”, for “Lepton Raw File”. This basically just a text file of the raw data (4800 ints between 0 and 255) from the Arduino. When I get my SD Card, I will write .lrf files onto the Card (at the moment I am using the serial port to send data to my pc).

I can then copy these files off of the SD card and put them into the same folder as my converter program, run the converter program, and it will automatically convert all .lrf files into .bmp files, which can be opened with any image editor. I have included some sample images below.

Even though 80×60 is obviously tiny, due to the low resolution and false colour, these images can actually  be scaled without much loss in quality. I think having an automated program like this to convert to an easily readable format is extremely useful. My processing sketch performs some more advanced features and post-processing effects, like interpolation, but for simple viewing of the image, that is not really necessary.

This program took just a few hours to create, my skills must be getting even better!

It is available in the P136 Repo on my github HERE.

 

output8 output7  output5 output4 output3 output2 output1 output0

Facebooktwitterredditpinterestlinkedinmail

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!