I'm still working on my scripts, but here's a rundown of the process.
What you need:
- exiftool
- Imagemagick
- Adobe Photoshop (for best results)
- My custom-made FLIR gradients that are attached (work in progress)
The steps:
- Extract the raw thermal image
exiftool -b -RawThermalImage inputFile | convert - -auto-level outputFile.tif
- Enlarge the above generated photo with waifu2x in photo mode with low to medium noise reduction
- Open the enlarged photo in Photoshop
- Change the image mode to RGB color (image menu -> mode
- Apply a levels adjustment layer
- Apply a gradient map adjustment layer
In the gradient layer, open my FLIR gradient pack and choose one of the options.
Adjust the black and white levels in the level adjustment layer to suit your needs.
Noise reduction for FLIR images is best accomplished by using Photoshop's surface blur. Set the pixel radius to 2-10 and adjust the threshold as desired. Make sure you have the background layer selected in photoshop (not one of the adjustment layers)
More to come
After some digging, I found a magic incantation that will do a very basic conversion of ALL the FLIR JPGs in a directory and produce TIFFs (16-bit, no adjustment so they will appear terribly low contrast - all the info is there, you just need to use an image editor to make it display properly)
exiftool -rawthermalimage -b -w tif -ext jpg
Usage: in a command window, set the current directory to the location of your files, eg
CD "D:\thermal\may\my image files"
(note: the double quotes mean you can include spaces in the Change Directory instruction)
(note II: depending on your file browser, you may be able to copy this location string from an address bar; paste it into the command box by clicking on the top left corner to open the menu, then select Edit ... Paste. There is no keystroke shortcut that I'm aware of)
C:\usefulstuff\exiftool -rawthermalimage -b -w tif -ext jpg
(I assume here that your exiftool program is located in C:\usefulstuff - if it's somewhere included in the PATH then you can omit C:\usefulstuff\ )
I don't claim any originality: I found the answer here (https://exiftool.org/forum/index.php?topic=9060.msg46737#msg46737). The Exiftool forum Newbies section (https://exiftool.org/forum/index.php?board=12.0) is very useful, particularly if you use the keyword search :)