Author Topic: 3d recostrucrion of thermal data  (Read 18421 times)

0 Members and 1 Guest are viewing this topic.

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
3d recostrucrion of thermal data
« on: June 12, 2016, 05:42:13 pm »
Dear friends,
I need help for analyze some thermal image dataset. My sensor is an OPTRIS PI400
I have some thousand of .CSV matrix that are a 382x288 array, where every cells are a temperature in celsius with one or two decimal data.
I need to make a photogrammetric process to my data, so i need to convert my CSV data into TIFF image (16bit - the sensor works at 12bit). So:
1 - Looking for a minimum and maximum values of temperature of all dataset of array
2 - Create a LUT where the min temp is black (0) and max temp is white (65,536)
3 - Whit this palette create a TIFF image of every CSV.
After photogrammetric recostruction I need to resample final orthoimage with the same LUT and create a 32 bit TIFF possible with radiometric information for every pixel.
Anyone know some script that can help me!?
Thank you so much..
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4068
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: 3d recostrucrion of thermal data
« Reply #1 on: June 12, 2016, 07:35:05 pm »
Search for OpenCV and Python. Maybe even matlab or the free alternative scilab.
I'm sure they can perform the basic image transformations.
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #2 on: June 15, 2016, 10:56:29 pm »
Imagemagick also works fine with txt files as input of array.
(use fx operator for mathematics).

convert your *.csv file to integer values like [100xKelvin - Offset] and use *.pgm format for saving the 16 bit grayscale images
http://www.imagemagick.org/Usage/formats/#pbmplus
Code: [Select]
P2
382 288
65535
....

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #3 on: June 16, 2016, 02:23:54 pm »
Thank you,

but before use ImageMagik....I need to looking for a v min and v max off all of dataset right? I need to make a palette for all of dataset (one image every second for one or two houar) and not a single file...

Sorry for all of my question but OPTRIS software is a very close system and i need an alternative to make my research...
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #4 on: June 17, 2016, 03:49:51 am »
Hello,
could you upload some sample files?

than i can see how implant it here:
https://www.eevblog.com/forum/thermal-imaging/freeware-software-for-thermal-analysis-thermovision_joec/

there is no 3d reconstruction yet, but maybe it helps for interpreting the images.
joe-c
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline LaserSteve

  • Super Contributor
  • ***
  • Posts: 1270
  • Country: us
Re: 3d recostrucrion of thermal data
« Reply #5 on: June 17, 2016, 09:39:44 am »
Take a look at NIH'S freeware ImageJ, while made for biological microscopy, it works wonders with scripts. I used it for batch combining alternate lines of two grabbed  images for field sequential stereo imaging, and that.took only ten lines of script.
"What the devil kind of Engineer are thou, that canst not slay a hedgehog with your naked arse?"
 

Offline gio123

  • Newbie
  • Posts: 6
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #6 on: June 17, 2016, 12:37:09 pm »
Hi All,
I've been following this forum regarding IR related topics, and this is my first post.
I'm basically in the same situation as Tuffi: I have an Optris PI400 imager, and I need to radimetrically (temperature data) process several hundreds of images taken at roughly 1 s inerval, however I'm facing some stumbling blocks: the Optris imager can generate either radiometric tiff's (8-bit, two-page; unrecognized MakerNotes as per exiftool) or text files (.csv - either temperature data or temperature profile): I'm attaching 3 samples of the same scene, with the 3 different Optris saving options (the original Test1.tiff was reanmed to Test1.jpg since this forum doas not allow to upload tiff's - the jpg has retained thw 2-page layout; I do not know if anything else has changed from the native tiff; the 2 .csv files were renamed as .txt for the same fiel extension limitations ofthis forum).
I would like to be able to generate radiometric-thermal gray-scale images (tiff or jpeg) in order to process them with CV/SfM software to obtain one single mosaiced orthophoto and a 3D model retainng individual pixel thermal data; one of the things (among the many others) that's creating problems, I guess, is the tiff 2-page structure - I saved the tiff as 2 separate files, but then the thermal information is lost...
Just for information purposes: before writing this post I've read pretty much all the posts and outstanding information form Tomas123 on a similar topic relating to Filr (both within this forum and also from exiftool - great appreciation goes to Phil Harvey - as well and ImageMagik); I also downloaded and tried with no luck Thermovision from Joe-c (impressive work as well): unfortunately I do not have a programming background so I'm not really able to 'port' FIlir related scripts into Optris.
Any feedback/tips/help would be gratlyappreciated.
Thanks in advance
Regards
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #7 on: June 17, 2016, 05:01:16 pm »
I'm not sure, how to interpret your radiometric images.

As you said, the *.tiff image contains two 8 Bit images of 382x288 pixels:
Code: [Select]
$ identify Test1.tif
Test1.tif[0] TIFF 382x288 382x288+0+0 8-bit sRGB 397KB 0.000u 0:00.000
Test1.tif[1] TIFF 382x288 382x288+0+0 8-bit sRGB 397KB 0.010u 0:00.009

simple expand this two 8 Bit images with Imagemagick
Code: [Select]
$ convert Test1.tif image.png
convert: Unknown field with tag 37500 (0x927c) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/891.
convert: Unknown field with tag 59933 (0xea1d) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/891.

$ identify image*.png
image-0.png PNG 382x288 382x288+0+0 8-bit sRGB 202KB 0.000u 0:00.000
image-1.png PNG 382x288 382x288+0+0 8-bit sRGB 114KB 0.000u 0:00.000

The *.csv is only the temperature of the center cross hair (full line 288/2 and column 382/2 less a border of 12 pixels)
Code: [Select]
Temperature profile 1;;;;Temperature profile 2;;;;
 x; y; Temperature;; x; y; Temperature;;
12.0; 144.0; 20.0; ;191.0; 12.0; 17.7;
13.0; 144.0; 20.0; ;191.0; 13.0; 17.7;
...

Is there a known temperature range for your 8 Bit images?
My next idea is a splittet upper and lower byte for a real 16 Bit radiometric image...
Code: [Select]
$ convert image-0.png -separate -depth 8 image-0-RGB%d.png
$ convert image-1.png -separate -depth 8 image-1-RGB%d.png

... and I see a typical switched upper/lower byte image like this 16 bit image:


compare with your 8 Bit image-1-RGB2.png

Offline gio123

  • Newbie
  • Posts: 6
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #8 on: June 17, 2016, 05:19:52 pm »
Hi Tomas123, and thanks a ot for replying in such a prompt and detailed manner: much appreciated.
The temperature range of the image is 17.9 C - 32.9 C.
Actually what you were able to dig out is outstanding on one side, on the other it adds more 'clouds' to my little brain...;)
I'm not sure at this point that fully radiometric images god for orthorectification and 3d modelling can be obtained...
Thanks
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #9 on: June 17, 2016, 08:35:49 pm »
Unfortunately there is no free download for the software "Optris Pi Connect".
Therefore I can't check your radiometric 8-Bit tiff with the original software.

Offline gio123

  • Newbie
  • Posts: 6
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #10 on: June 17, 2016, 08:55:16 pm »
Can you send me an email address: I'll send you a link to download some additional info.
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #11 on: June 17, 2016, 11:53:18 pm »
I would like to be able to generate radiometric-thermal gray-scale images (tiff or jpeg) in order to process them with CV/SfM software to obtain one single mosaiced orthophoto and a 3D model retainng individual pixel thermal data
The solution is simple ;)

As presumed above, the second image inside the tiff is the 16 bit radiometric image splitted in the two 8 bit channels green and blue:

Code: [Select]
$ identify Test1.tiff
Test1.tiff[0] TIFF 382x288 382x288+0+0 8-bit sRGB 397KB 0.000u 0:00.000
Test1.tiff[1] TIFF 382x288 382x288+0+0 8-bit sRGB 397KB 0.000u 0:00.009

// get only scene 1, remove alpha channel
$ convert Test1.tiff[1] -alpha off scene1.png

$ identify -verbose scene1.png  | grep -A3 "Channel depth"
  Channel depth:
    red: 1-bit
    green: 8-bit
    blue: 8-bit

// stitch the 8 bit green and blue channels to one 16 bit radiometric grayscale image
// force 16 bit channel with PNG48:
$ convert scene1.png -separate -fx "(u[1]+u[2]/256)" PNG48:image-3.png

// check min/max value
$ identify -verbose image-3.png  | grep -A 6 "Channel depth"
  Channel depth:
    gray: 16-bit
  Channel statistics:
    Pixels: 110016
    Gray:
      min: 64868 (0.989822)
      max: 65250 (0.995651)

That's all. The image-3.png is your 16 bit radiometric grayscale image with a temperature range from min 64868 to max 65250.
It's obscure, why your upper byte (green channel) has such high values from min=252 to max=253 by an image range from 13°C to 27°C.
Maybe we need an sample image with higher temperature to check, whether we have an overflow to the red channel. 
The data sheet of PI 400 give us a range from –20 °C ... 100 °C.

All steps in one line with expanding the level for visual examination:
Code: [Select]
$ convert Test1.tiff[1] -separate -fx "(u[1]+u[2]/256)" -auto-level PNG48:gray.png

PS: use the 16 bit version of IM ;D

Offline gio123

  • Newbie
  • Posts: 6
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #12 on: June 18, 2016, 07:47:26 am »
Tomas123, you're a Guru of image analysis and manipulation...  :-+ to me this is all 'black magic'...  ;)
Is it feasible to batch process an enitre sequence of native tiff images and obtain either greyscale radiometric tiff or jpg (instead of .png's)?
Would something like this work:

$ convert *.tiff[1] -separate -fx "(u[1]+u[2]/256)" -auto-level TIFF48:gray*.tiff

I'm also attaching an image of an iron (both the png and jpg are renamed from the original tiff) showing higher temperatures.

To have the pixel data in Celsius degress I assume one has to go about a similar process as you did for Flir with equations and constants etc. (assuming Optris publishes their raw sensor data conversion into temperatures).

As a final thought: can you recommend some readings/links on digital image analysis/processing/structures, where even a donkey like me can get at least the gist of all this?

Thanks a lot
Best Regards
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #13 on: June 18, 2016, 11:39:11 am »
Hi gio123,

you can write a for loop over all images in Windows (cmd.exe) or Linux (bash).

some notes:
(1) Use auto-level only after stitching all images to a mosaic
(2) You can calculate the real temperature from RAW values (after stitching) by interpolation over known values.
Use your *.csv files (with cross hair temperature profile) as reference points.
See my post for getting RAW values of single pixels:
https://www.eevblog.com/forum/thermal-imaging/flir-e4-thermal-imaging-camera-teardown/msg350250/#msg350250

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #14 on: June 18, 2016, 03:49:25 pm »
The iron image shows, that the green channel is a 8 bit signed value  :-\
(the increasing values goes from ... 254,255, 0, 1 ... etc.)

therefore I used the dirty hack:
Code: [Select]
$ convert Sample2.tiff[1] -separate -fx "(u[1]>=0.75)?(u[1]-0.25+u[2]/256):(.75+1/256+u[1]+u[2]/256)" PNG48:gray2.png
use -auto-level only for for visual examination:
Code: [Select]
$ convert Sample2.tiff[1] -separate -fx "(u[1]>=0.75)?(u[1]-0.25+u[2]/256):(.75+1/256+u[1]+u[2]/256)" -auto-level PNG48:gray2.png
(added 1/256 for shifting 0 to 1, to avoid that 255=0)

Offline gio123

  • Newbie
  • Posts: 6
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #15 on: June 20, 2016, 10:42:28 am »
Tomas123,
That's just awsome; thanks a lot.
I'm taking some time to (try) to understand the process you've applied; as I said this area (as well as many others..) is a little bit over my head.
I'll get back to you shortly.
Thanks much
 

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #16 on: June 22, 2016, 03:17:16 pm »
Hi guys,

I have another type of data from OPTRIS.

A csv matrix file.

Every pixels are rapresented by a one decimal temp data. It's useful for our objective?

I attach same CSV.
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #17 on: June 24, 2016, 08:34:20 am »
csv: 288 lines with 382 temperature values

This are temperature values of your sensor array 382x288.

A disadvantage is the bad thermal resolution of 0.1 °C.

You can convert this csv files with sed and Imagemagick  ;)
Code: [Select]
sed "1iP2 382 288 255 " Record_2016-02-18_12-01-09.csv | sed "s/\.//g" | convert PGM:- -auto-level Record_2016-02-18_12-01-09.jpg(edit this line for your purpose, I used 25,5°C=255 as high level, because you take a shot with closed shutter/cover)

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #18 on: June 24, 2016, 11:14:42 am »
Hello,
i have a new Version of my Thermovision including some Optris Pi400 stuff.
http://joe-c.de/pages/posts/programm_thermovision_joe-c_184.php#V1_0_2_0

if you change the Filedrop mode to "Drop-> Optris PI400 Mode" (in "Datei" or "File" if you set Language to EN).
after that you can easy Drag & Drop your *.tif, *.tiff,*.csv Files.
the temperature of the tif files have to setup manually by choose "fixed". for a dynamic calculation there are Level and Span values. You have to setup them following:
take a image with a big temperature range... for example -10 to 90°C. calculate the Range (max-min) and change the span value until your image has the same range in the Thermovision (the range is noted in the Scale bottom). After that you change the offset until you reach the real temperature values of your image (while changing the offset maybe the Span needs tiny changes because the Range moves).
its the same Setup as the Seek thermal Camera needs.
if the setup is finished, your other images should be show values near the real.
Not that accurate, but I don't now how Optris store the Temperature.

Well... the csv has a poor Sensitivity with the 0.1°C but the Values are truth.
you can import csv files by drop. additional there is a folder Processing. you can hit the button and choose a folder, or just drop the folder in workspace of the Thermovision.
The folder processing does:
- read all *.csv files
- create a subfolder called "ThermoViewer_JPG"
- convert each csv to a jpg file
- writes at end the Overview.txt with some extra info's, like the number of files, the highest and lowest temperature for each and for all files...

I hope it's useful for you.

and last but not least, a big thanks for tomas123, who make a great example for reading the Files (peculiar the tif).

joe-c
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 
The following users thanked this post: gio123

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: 3d recostrucrion of thermal data
« Reply #19 on: June 24, 2016, 01:30:37 pm »
We are playing together since years Curling.
I'm the sweeper and you make the shots  :)

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #20 on: June 26, 2016, 02:13:19 pm »
tomas and joe..thank you so mcuh...

realtive to the sensiblity of data saved in csv format I think that for my use (enviromental mapping and slope stability) will be ok work witha 0.1°C of Sensibility...anyway the PI400 have a raw sensibility of 0.08°C, so there is a little loss of information..

Maybe is possible integrate TIFF raw data and CSV information to obtain a radiometric image with a real temp data obtained from CSV?

As soon as possible I try an acquisition with OPTRIS for testing the conversion and the 3d recostruction.
 

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #21 on: June 28, 2016, 11:36:35 am »
Hi,

i make some test and the software works fine, but for 3d recostruction there is two small problems:

1. the first one is the black bands up and down the images.
2. the second is that the strach of the Palette (from CSV) is dynamic for every array. There is a way for use the same strech for every CSV in the folder. I think that all CSV must be processed for looking for a min and max temperature before restart the process and create the jpg. So after mosaic all of image i can create a color legend.

I attach two file. The NAS disk in the two image have the same temperature but are processed with two differet color (I think because in one image, the temp max is relative to the ac-dc converter).

In yours opinion, why CSV data are less sensitive of TIFF?
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #22 on: June 29, 2016, 04:17:56 pm »
Hello,
to 1.
the generated images are a preview image with embedded Thermal Frame.
to 2.
i could make a second function, what first get the min and max for all and process then in single images with the same scale.
Or with a previous set min and max raw value.
but first i have a focus on this:
https://www.eevblog.com/forum/thermal-imaging/diy-thermocam-an-open-source-do-it-yourself-thermal-imager/

And yes, the tiny difference between the gray level is a result of different min/max values and scales.
I made the same scale for both images and put them in one image. there seems to be a tiny difference,
maybe because the dynamic values are not set and so the result temperature has a shift (0.9°C diff, between both box averrages).

The CSV data is maybe just cropped to 1 digit because the manufacture will provide no information you maybe don't need.
And if you go to 2 digits, you have 1Byte for each extra char (pixel) -> 388x288 -> 111744 extra chars in file.
I think they just do this to hold the file size small.

Joe-c
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline edgar_eacg

  • Newbie
  • Posts: 2
  • Country: mx
(Temperature values <-> Thermal Color) Mapping
« Reply #23 on: June 30, 2016, 07:37:15 pm »
Hello.
I hope you can help me. I'm interested in the mapping process from one pixel temperatures value to color using a specific color palette. I read here  http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4898.msg24230.html#msg24230  about a flir.php file which does what i want. But when I checked the source code I realized that the algorithm is wrapped in the use of convert.exe through the command line exec.

Which is the algorithm or LookUpTable procedure to map from one pixel's temperature value to color (using a color palette)?
I've been able to get the color's palette raw data (through exiftool by Phil Harvey). I also have the pixel's temperatures .csv file from my jpg (through Flir QuickReport)

I found here https://www.eevblog.com/forum/thermal-imaging/flir-e4-thermal-imaging-camera-teardown/msg350250/#msg350250 an alternative but again, but it relies on the use of convert.exe which for now it's like a black box to me.

I need to study the mapping algorithm from temperatures to color (using the color Palette) so that I could conceive an inverse algorithm for mapping from color to pixel temperature since, my real problem is to 'estimate' one pixel's temperature from just the pixel's color. This is the scenario:
- I have a Flir P640 which can only take radiometric jpg photos, at most, sequences of 180 radiometric photos (.seq files).
- I have 2-3 hours non-radiometric video recordings (.avi videos).
- I need to pause the video and 'estimate' one pixel temperature, for this I take a snapshot from the specific frame and read the RGB channels of that pixel. That's all I have! :-//

Beforehand, thanks.
And congratulations for your work.

« Last Edit: July 01, 2016, 02:21:00 pm by edgar_eacg »
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: (Temperature values <-> Thermal Color) Mapping
« Reply #24 on: July 02, 2016, 11:42:07 am »
I'm interested in the mapping process from one pixel temperatures value to color using a specific color palette.
Follow the links in my footer.
There are some simple step-by-step samples for this process.
I don't know, how can I explain it better.

But when I checked the source code I realized that the algorithm is wrapped in the use of convert.exe through the command line exec.
see http://www.imagemagick.org/Usage/color_mods/#color_lut

I need to study the mapping algorithm from temperatures to color (using the color Palette) so that I could conceive an inverse algorithm for mapping from color to pixel temperature since, my real problem is to 'estimate' one pixel's temperature from just the pixel's color.

You need a video with a (linear) grayscale palette for the reverse lookup process (one channel, 256 color steps).
Better is using of the Flir RAW video format (*.seq).
see:


1. Bill Kraus has developed a SDK app that does continuous raw image saving. PM him on Flickr for a beta copy. My Therm-App -> FLIR intensity conversion is also now built into his app.

2. Convert your continuous "video" stream of PNGs into .fffs, as before. To do this in batch, you can use "forfiles" on windows.
...

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #25 on: July 03, 2016, 10:07:34 pm »
...There is a way for use the same strech for every CSV in the folder. I think that all CSV must be processed for looking for a min and max temperature before restart the process and create the jpg. So after mosaic all of image i can create a color legend...
Done in the new V1.0.3.0
It still processes the images like before. but now a second run for the folder generates Images (without Scale and with the same "stretch", just the Image in the Color scale you have chosen).
They all in the new folder "Scaled_JPG".

I hope it helps. :-+
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #26 on: July 18, 2016, 02:16:49 pm »
Hi Joe...I make some test and...yes it works (in the next week i will make a test with a drone for thermal mapping).

But I have a couple questions for you.
Using a 8 bit jpeg i have only 256 different gray value, if the delta T is very large the resolution decrease until 0.5°C. Do you think that is possible export data in 16 bit TIFF?

And: with some dataset the scaled output is ok, but in the streached preview folder all of the exported image is the last image of the CSV folder and during conversion Thermovision give me an error in the bottom bar...but the scaled outpud is ok!! It's strange? Do you think that is a my mistake?

Thank you
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #27 on: July 18, 2016, 09:52:27 pm »
Using a 8 bit jpeg i have only 256 different gray value, if the delta T is very large the resolution decrease until 0.5°C. Do you think that is possible export data in 16 bit TIFF?
yes, 16bit tiff sounds better, i will deeper look on that next time.
And: with some dataset the scaled output is ok, but in the streached preview folder all of the exported image is the last image of the CSV folder and during conversion Thermovision give me an error in the bottom bar...but the scaled outpud is ok!! It's strange? Do you think that is a my mistake?
hmm... sounds like my mistake. sadly the images you have provided has very little differences, so i can't see a problem like that.
whats the error message in the bottom bar?
(you can make screenshots with doubble mouse click on "Screen" in the bottom left corner)
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #28 on: July 19, 2016, 04:08:09 pm »
In attach the screenshot (the image is the lastest of dataset) and the log file....the strange is I have error but I have also right scaled jpeg  :-//
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #29 on: July 31, 2016, 08:19:38 pm »
Try the new 1.0.5.0 Version, it supports 16bit tif export and should now work correctly.
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline tuffiTopic starter

  • Newbie
  • Posts: 8
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #30 on: August 05, 2016, 09:00:03 am »
Thank you so much!
Now i'am in Saudi Arabia for work.
As i came back in Italy i try the new version and give you me feedbeck..


Thanks
 

Offline Trancept

  • Newbie
  • Posts: 3
  • Country: fr
Re: 3d recostrucrion of thermal data
« Reply #31 on: October 04, 2016, 08:00:55 pm »
Hello,
Thanks for all your informations, it's great !
I'm also using an Optris.

@tuffi : which software do you use for photogrammetry ?
AgiSoft Photoscan does not handle 16bit and Pix4D know only Flir file. I'm looking to Micmac but it's quite hard to use...

Well, I'm thinking a good option will be to convert file from Optris to Flir format to be able to use Pix4D, is that possible ?
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #32 on: October 08, 2016, 06:29:47 am »
...Pix4D know only Flir file...
Pix4D knows *.jpg and *.tiff so the "flir format" with embedded radiometric info will not be supported i think.

if you have too a folder of CSV images, you can use the Thermovision Software (http://joe-c.de/pages/posts/programm_thermovision_joe-c_184.php), then select File->Autoselect and change to "Drop -> Optris Pi400 Mode".
then just drop the Folder with your CSV images. in Devices->Optris the "16bit .tif" is autoselected.

I think the main problem is to get the right geographical coordinates for the images... are they stored somewhere?  :-//
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline Trancept

  • Newbie
  • Posts: 3
  • Country: fr
Re: 3d recostrucrion of thermal data
« Reply #33 on: October 08, 2016, 01:08:14 pm »
Thanks Joe-C,

Pix4D support radiometric information for Flir and Tau2, more information here : https://support.pix4d.com/hc/en-us/articles/210140783-Which-Thermal-Cameras-are-supported-by-Pix4Dmapper-#gsc.tab=0 and there : https://support.pix4d.com/hc/en-us/articles/208592186#label2

Geographical coordinates is not mandatory but it speed up the calculation. You could georeference the resulting map later.
If you have a dataset and want to try there is a step by step guide : https://support.pix4d.com/hc/en-us/articles/210140893-How-to-process-Thermal-Datasets-in-Pix4Dmapper#gsc.tab=0
EDIT : I saw you upload only 3 pictures, you need many more to make it work. Because picture have to overlap at more than 70% and cover every face of the object.

I will also give a try.

Tuffi tells me he is using Photoscan but I didn't know his workflow.
I've tested with Photoscan, who now support 16bit, and Optris images (in Tiff thanks to Tomas123 command), setting 25 ?m pixels size give some results but it does not seems to have an option to keep radiometric information.
I have to look to different pixels values to see if I can make reliable matching with temperature.
« Last Edit: October 08, 2016, 01:11:39 pm by Trancept »
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #34 on: October 08, 2016, 07:00:41 pm »
Pix4D support radiometric information for Flir and Tau2, more information here...
sorry, i missed this info. but i don't tried much.

whats your goal?
a Panorama with usable thermal information, maybe a big measurement?
or just a thermal mapping of a field, ground, city or some other geographical?
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline Trancept

  • Newbie
  • Posts: 3
  • Country: fr
Re: 3d recostrucrion of thermal data
« Reply #35 on: October 10, 2016, 08:35:35 am »
My goal is to map a field with UAV.

In fact, Pix4D need geographical coordinates to process thermal image. Maybe because it is too hard without them as the picture is small with few detail.
 

Offline gio123

  • Newbie
  • Posts: 6
  • Country: it
Re: 3d recostrucrion of thermal data
« Reply #36 on: December 30, 2017, 05:01:10 pm »
Hi; I know this thread is old, and there might not be replies to my question..but I'll try anyways  :)
@ Joe-c: how do you convert the 16 bit tiff generated by ThermoVision back to actual temperaures in degree C?
Thanks a lot: your software is excellent.
 

Offline Vipitis

  • Frequent Contributor
  • **
  • Posts: 867
  • Country: de
  • aspiring thermal photography enthusiast
Re: 3d recostrucrion of thermal data
« Reply #37 on: December 30, 2017, 07:26:25 pm »
this thread is old - but I am attempting the same.

My issue is that I have a 80x60 sensor with an effective resolution of 160x120 using the Superresolution feature in the Thermal Camera+ app. With the most recent update the app supprots the option to save an image without the palette and the min/max number imprinted. But even when I use greyscale and lock the palette to a min and max temperature(if you set min and max to enable you get a blue/red overflow, that can be avoided by enabling the limits and then locking the palette and disabling the limits, and using gamma of .50 for best coverage) - VisualSFM can't find enough matches for a recontruction.

I might need to look for an really really easy example - with no reflection and no background - wait for a green for each capture and just hope for no noise. I can't take captures automatically yet(technically I can take a rubberband and force the burst shutter - but it is a bug right now - and auto tuning becomes an issue) but I would attempt aerial by just taping my phone under a drone and do a easy zigzag route.
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: 3d recostrucrion of thermal data
« Reply #38 on: January 01, 2018, 11:03:05 pm »
how do you convert the 16 bit tiff generated by ThermoVision back to actual temperaures in degree C?
i only know something about the way how FLIR dit it. I use this "Planck" calibration:
http://joe-c.de/pages/posts/planck_calibration_209.php

i guess it can be used for all types of thermal cameras, if they work between 7-14 µm, but i am not really sure.

@Vipitis
if you use a flir one to capture with a phone, you can use the "fone Ultimate" App in combination with Wifi-Direct to get a live image to a notebook. here you can capture images or make a fixed setup.
See here:
http://joe-c.de/pages/posts/waermebildkamera_flir_one_gen2_211.php

and if not, you can extract the raw 16bit png from stored *.jpg files. they can be used for panorama stitching... i don't  try it, but some other guys here did  8)
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline Vipitis

  • Frequent Contributor
  • **
  • Posts: 867
  • Country: de
  • aspiring thermal photography enthusiast
Re: 3d recostrucrion of thermal data
« Reply #39 on: January 02, 2018, 02:03:47 am »
@joe-c

I use CAT S60 and Fone Ultimate does not support CAT S60... as I wrote in the answer to your pm - which somehow got lost on my end. I still haven't learned the .php and all the tricks you can do with radiometric jpgs. My best option right now is Thermal Camera+ with the most recent update - I can capture images with superresolution on medium and nearest Neighbor zooming to get 160x120 pixels of data presented in a 680x907 23bit .png which I convert into .jpg with imagemagick and then use them in VisualSFM for photogrammetry reconstruction. I am emailing George to output .pngs in 160x120 when I disable data burning and use no blurred upscaling.
 

Offline Vipitis

  • Frequent Contributor
  • **
  • Posts: 867
  • Country: de
  • aspiring thermal photography enthusiast
Re: 3d recostrucrion of thermal data
« Reply #40 on: February 17, 2018, 12:03:16 pm »
So i am digging this thread up again. I don't want to start more threads and the information within here is still useful.

I want to attempt thermal photogrammetry reconstruction.

What I got is a tripod setup and turntable. The idea is to set minimum and maximum temperature in the Thermal Camera+ app and then lock the palette. Disable the min and max range afterwards do you end up with black and white instead of blue and red, which looks horrible with superresolution.

But I now need ideas for targets. Simply geometry, and high thermal dynamic range. Should be warmer then room temperature becuase my backdrop is just paper. Non reflective. Rather small, like max 150mmx150mmx150mm.

A cup of tee is an option, but is loses its temperature over time, so I need to be fast with my capture. As I plan to have 3 passes and turn the table by about 30° each step.

Soldering iron is too hot I think; It will just be blown out on my camera, and it's reflective.
I got a stage lamp that heats up, it's painted black so it's less reflective, maybe with some emissivity tweaks it can look good.

Please give me some suggestions. I mainly plan to take images with the custom render and a greyscale palette, but will also save radiometric jpegs and use Palette generator to set top and bottom ends and scale the histogram linear to export .pngs.

For software I will use VisualSFM and Autodesk ReCap Photo, cloud based. 
 

Offline MK_cruiser

  • Newbie
  • Posts: 1
  • Country: sy
Re: 3d recostrucrion of thermal data
« Reply #41 on: May 09, 2019, 09:19:28 am »
Hello every body..
thank you for expensive information.
I need a dataset of thermal Images to reconstruct a 3d image.
can any one suggest any thing.
best regards.
thank you.
 
 

Offline Vipitis

  • Frequent Contributor
  • **
  • Posts: 867
  • Country: de
  • aspiring thermal photography enthusiast
Re: 3d recostrucrion of thermal data
« Reply #42 on: May 09, 2019, 11:24:09 am »
Hey,

Are you looking for something specific? Like arial shots from a drone. Buildings or close up pcb.
The most difficult part is to have the data normalized, even for a static target.
 

Offline Hyper_Spectral

  • Regular Contributor
  • *
  • Posts: 86
  • Country: us
Re: 3d recostrucrion of thermal data
« Reply #43 on: May 09, 2019, 02:39:50 pm »
FWIW I've been looking into this for the past few years as I extensively work with UAS and various payloads.

I have, for the most part, given up on the production of thermal orthomosaics with current thermal cores and Pix4D's current algorithms. You can make it work with a metric ton of overlap 90/90 or 90/80, an entirely flat elevation with unique features, and a ton of manual tie points. The result is still meh and needs touch-up but it sort of works. The efficiency and effectiveness of the whole process essentially nulls the point of it, for all use cases I've experienced anyways.

Once we get above 1 megapixel resolution cores I expect to see more viable use cases. There's a reason why you don't see beautiful thermal orthomosaics plastered all over the place, cost is only one factor.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf