Tag Archives: imagemagick

grayscale #pylepton images to fake colors | #infrafred #thermography #imagemagick – #FLIR #Lepton

update:
images come from the Flir Dev Kit bought from Coolcomponents.

First, in order to map the grayscale to colors, we need to generate a gradient.
This is how I did it, using ImageMagick.

convert xc:black xc:red xc:yellow xc:green1 xc:cyan xc:blue xc:white +append -filter Cubic -rotate 90 -resize 20x80\! gradient_IR_rainbow.jpg

update:
this new gradient works like a charm

convert xc:white xc:yellow xc:red xc:green xc:cyan xc:blue xc:violet xc:black +append -filter Cubic -rotate 90 -resize 20x80\! gradient_IR_4-rainbow.jpg

Once you have the canvas gradient, you can use apply it to each image.


convert -verbose bike.png \( gradient_IR_rainbow.jpg -flip \) -clut -resize 500% fc_bike.png

Here are some of the images:

bikes1   fc_bikes1

 

 

bikes2  fc_bikes2

 

 

laptop-back1  fc_laptop-back1

 

 

laptop-front1  fc_laptop-front1

 

 

neighbor-house  fc_neighbor-house