# Pix4D fails to convert RAW JPEG thermal images to greyscale thermal images

**URL:** <https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026>\
**Category:** PIX4Dmapper\
**Created:** [August 6, 2020, 12:22pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026 "2020-08-06T12:22:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [August 6, 2020, 12:22pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/1 "2020-08-06T12:22:24Z")

</div>

Hello,  
I have dataset of thermal images captured using the DJI XT2 thermal camera. Pix4D fails to convert raw RGB images to greyscale thermal corresponding ones which leads to processing failures. Is there any solution for this problem ? (PS: also tried FLIR tools and obtained the same problem)

Thank you in advance.!  
PS: a sample image is attached

[30m\_auto\_Th (2)|625x500](https://community.pix4d.com/uploads/short-url/5Nhhen6AJ5LjtJPFHGVU13ASbfK.jpeg)

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [August 6, 2020, 11:48pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/2 "2020-08-06T23:48:32Z")

</div>

Hi @y.zefri Does it give any error? Can you give a screenshot? Are you using rjpg image format? We would need at least 5-6 images to test in Pix4Dmapper.

---

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [August 8, 2020, 10:42pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/3 "2020-08-08T22:42:41Z")

</div>

Hello,  
Please find below a screenshot of the obtained error + sample images  
[sample images b2.zip](https://community.pix4d.com/uploads/short-url/bFrOfKLiKrpUdqKzqXZX0Fv86MV.zip) (3.1 MB)

 ![Annotation 2020-08-08 233914](https://global.discourse-cdn.com/pix4d/original/2X/7/75c3e8724aac2b65e21c39f5a4a85606a4a26a5d.jpeg)

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [August 11, 2020, 12:26am UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/4 "2020-08-11T00:26:51Z")

</div>

Hi, Pix4DMapper is correctly converting the rjprg to tif images here. The error is due to uncalibrated images which happens if the software is not able to extract keypoints and match them. Generally it is due to insufficient overlap or incorrect camera parameters. Can you send me a screenhsot of the mapview in Pix4D? What was the frontal and side overlap? I will need the logfile for troubleshooting. One more thing, the pixel size is incorrect, you will need to edit it and change the value to 17. Process step 1 again, let me know how it goes.

 ![image](https://global.discourse-cdn.com/pix4d/original/2X/0/01d6dddd34fe02ad8393d9bfea17f5c0726d3758.png)

---

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [September 12, 2020, 8:21pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/6 "2020-09-12T20:21:09Z")

</div>

Hello,  
The overlaps were 90% for the end-lap and the same for the side-lap.  
For the camera parameters, I have an image bloc having been acquired with the Zenmuse XT2 and that has been processed correctly with the same shown parameters. Changing the value to 17 changes nothing unfortunately, the problem persists.[Logfile.txt](https://community.pix4d.com/uploads/short-url/6VAlXsp2YRIyGMSl9BIQj5j4Y0y.txt) (1.5 MB)  
I have attached the logfile. Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [September 15, 2020, 1:14am UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/7 "2020-09-15T01:14:34Z")

</div>

It might be an issue where due to some missing exif tags, Pix4D is unable to extract any keypoints from the tif image (as the rjpeg to tif extraction generates images with no variability in such a case). Can I have 5-10 of your images? I could then confirm and you would need to reach out to the hardware manufacturer. You could also check the converted tif images in QGIS.

---

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [September 15, 2020, 1:09pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/8 "2020-09-15T13:09:54Z")

</div>

Hello,  
Please find below a sample of 9 images. Raw images aren’t uniform, they have a variabality and keypoints can be extracted from them, but the ones obtained after the Pix4D conversion have unique pixels values which make it impossible for keypoints extraction. Not all acquired images have this conversion problem. We have obtained from the same UAV/Cemera thermal images, in another flight bloc, who have been succesfully converted for keypoints extraction.

Thank you very much for your help.

[ThermalImages.zip](https://community.pix4d.com/uploads/short-url/fVAW9y9Pdrrc6fa90Yf4MQMqZM4.zip) (3.0 MB)

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [September 17, 2020, 1:14am UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/9 "2020-09-17T01:14:32Z")

</div>

Hi,

That means due to some reason some EXIF tags are missing. You will need to contact the hardware manufacturer so this doesn’t happen in the future. For teh conversion, Pix4D uses a FLIR SDK and if some tags are missing, the conversion will be incorrect.

---

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [September 17, 2020, 8:18pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/10 "2020-09-17T20:18:16Z")

</div>

Thank you for the clarification but it seems that i don’t quite understand the situation.  
What are the missing tags ? How come that we’ve got by the same camera images that have successed the conversion ? And is there any way to fix those images cause we cannot do again this flight, not anymore.  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [September 26, 2020, 3:28am UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/11 "2020-09-26T03:28:26Z")

</div>

Hi, Can you send me 5 images from a project that works and 5 images from one that doesn’t? I could try to understand which tags are missing.

---

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [September 26, 2020, 8:05am UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/12 "2020-09-26T08:05:08Z")

</div>

Hello,

Here are samples from the images that pass the processing.  
[images.zip](https://community.pix4d.com/uploads/short-url/ze6SaUVkbnkYwfCVpKsquj66Tkj.zip) (3.9 MB)  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [September 29, 2020, 7:16pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/13 "2020-09-29T19:16:47Z")

</div>

Hi, I downloaded the images and all of them were converted correctly. I would need images that do not work as well to compare.

---

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [September 30, 2020, 9:28pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/14 "2020-09-30T21:28:49Z")

</div>

Hi,  
I’ve already sent you images that did not pass the processing. They are in the conversation

---

<div class="post-metadata">

**Author:** ![y.zefri](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@y.zefri](https://community.pix4d.com/u/y.zefri)\
**Post date:** [September 30, 2020, 9:29pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/15 "2020-09-30T21:29:59Z")

</div>

Here they are

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [November 16, 2020, 11:30pm UTC](https://community.pix4d.com/t/pix4d-fails-to-convert-raw-jpeg-thermal-images-to-greyscale-thermal-images/14026/16 "2020-11-16T23:30:12Z")

</div>

Hi, sorry for the delay. We think this has something to do with the hardware as I mentioned. I checked in FLIR tools and the images in the folder thermalimages do not show up whereas the images that convert correctly do

 ![image](https://global.discourse-cdn.com/pix4d/original/2X/a/acae58ca70ad7ccb4b8eadef91d4049aa07e04dd.jpeg)

 ![image](https://global.discourse-cdn.com/pix4d/original/2X/2/20eef71147072880adf2f6d33b906623c57b7e66.png)
