Forum

Author Topic: libtiff error when importing DJI DNG format files  (Read 3659 times)

space111

  • Newbie
  • *
  • Posts: 7
    • View Profile
libtiff error when importing DJI DNG format files
« on: April 09, 2018, 09:18:15 AM »
Hi All,

I am using DNG format file shot from DJI Phantom 4 pro for 3D construction,  expecting DNG file may bring better results than jpg files.   
however, error appear in "console" when I try to import DNG file.

"libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)"

also I noticed that DNG image quality shown in photoscan is significantly lower than JPG files.

Anyone facing similar issue?


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: libtiff error when importing DJI DNG format files
« Reply #1 on: April 09, 2018, 12:39:26 PM »
Hello space111,

Can you please provide an example of such file to support@agisoft.com and also specify PhotoScan version that you are using?

Also do you experience any processing issues of such datasets or the warning message in the Console doesn't affect any processing stages?

As for the lower quality - can you post a screenshot of the comparison, for example, loading both DNG and JPG side by side in the Photo tabs?
Best regards,
Alexey Pasumansky,
Agisoft LLC

jhollingsworth

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: libtiff error when importing DJI DNG format files
« Reply #2 on: July 21, 2018, 09:45:33 AM »
i just sent a message to support

same error

here is part of the log


2018-07-20 22:16:34 Agisoft PhotoScan Professional Version: 1.4.2 build 6205 (64 bit)
2018-07-20 22:16:34 Platform: Windows
2018-07-20 22:16:34 CPU: Intel(R) Core(TM) i7-4930MX CPU @ 3.00GHz (laptop)
2018-07-20 22:16:34 CPU family: 6 model: 60 signature: 306C3h
2018-07-20 22:16:34 RAM: 31.9 GB
2018-07-20 22:16:35 OpenGL Vendor: NVIDIA Corporation
2018-07-20 22:16:35 OpenGL Renderer: Quadro K3100M/PCIe/SSE2
2018-07-20 22:16:35 OpenGL Version: 4.4.0
2018-07-20 22:16:35 Maximum Texture Size: 16384
2018-07-20 22:16:35 Quad Buffered Stereo: not enabled
2018-07-20 22:16:35 ARB_vertex_buffer_object: supported
2018-07-20 22:16:35 ARB_texture_non_power_of_two: supported
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 Loading photos...
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:17:37 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)

2018-07-20 22:18:17 AlignPhotos: accuracy = Medium, preselection = reference, keypoint limit = 400000, tiepoint limit = 40000, apply masks = 0, filter tie points = 0, adaptive fitting = 1
2018-07-20 22:18:17 Matching photos...
2018-07-20 22:18:17 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:17 Detecting points...
2018-07-20 22:18:18 Using device: Intel(R) HD Graphics 4600, 20 compute units, 1297 MB global memory, OpenCL 1.2
2018-07-20 22:18:18   driver version: 10.18.14.4432, platform version: OpenCL 1.2
2018-07-20 22:18:18   max work group size 512
2018-07-20 22:18:18   max work item sizes [512, 512, 512]
2018-07-20 22:18:18   max mem alloc size 324 MB
2018-07-20 22:18:18 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:18 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:18 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:20 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:21 Building kernels for Intel(R) HD Graphics 4600...
2018-07-20 22:18:23 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:25 Kernels compilation done in 4.918 seconds
2018-07-20 22:18:26 [CPU] photo 1: 37738 points
2018-07-20 22:18:26 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:26 Building kernels for Intel(R) HD Graphics 4600...
2018-07-20 22:18:26 Kernels compilation done in 0.626 seconds
2018-07-20 22:18:27 [GPU] photo 0: 33867 points
2018-07-20 22:18:27 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:29 [GPU] photo 3: 37317 points
2018-07-20 22:18:29 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:30 [CPU] photo 2: 37954 points
2018-07-20 22:18:30 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:31 [GPU] photo 4: 34207 points
2018-07-20 22:18:31 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:33 [GPU] photo 6: 35809 points
2018-07-20 22:18:33 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:34 [CPU] photo 5: 38682 points
2018-07-20 22:18:34 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:36 [GPU] photo 7: 34899 points
2018-07-20 22:18:36 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:39 [GPU] photo 9: 34912 points
2018-07-20 22:18:39 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:39 [CPU] photo 8: 38376 points
2018-07-20 22:18:39 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:18:41 [GPU] photo 10: 35233 points
2018-07-20 22:18:41 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)

2018-07-20 22:19:12 [GPU] photo 29: 35795 points
2018-07-20 22:19:12 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2018-07-20 22:19:13 [CPU] photo 28: 40824 points
2018-07-20 22:19:14 [GPU] photo 30: 34278 points
2018-07-20 22:19:14 points detected in 57.436 sec
2018-07-20 22:19:14 Matching points...
2018-07-20 22:19:14 Using device: Intel(R) HD Graphics 4600, 20 compute units, 1297 MB global memory, OpenCL 1.2
2018-07-20 22:19:14   driver version: 10.18.14.4432, platform version: OpenCL 1.2
2018-07-20 22:19:14   max work group size 512
2018-07-20 22:19:14   max work item sizes [512, 512, 512]
2018-07-20 22:19:14   max mem alloc size 324 MB
2018-07-20 22:23:29 66247 matches found in 254.667 sec
2018-07-20 22:23:29 matches combined in 0.019 sec
2018-07-20 22:23:29 matches filtered in 0.479 sec
2018-07-20 22:23:29 finished matching in 312.683 sec
2018-07-20 22:23:29 setting point indices... 28711 done in 0.007 sec
2018-07-20 22:23:29 generated 28711 tie points, 2.00091 average projections
2018-07-20 22:23:29 removed 34 multiple indices
2018-07-20 22:23:29 removed 15 tracks
2018-07-20 22:23:29 selected 28696 tracks out of 28696 in 0.005 sec
2018-07-20 22:23:29 Estimating camera locations...
2018-07-20 22:23:29 Estimating camera locations...
2018-07-20 22:23:29 processing matches... done in 0.006 sec
2018-07-20 22:23:29 selecting camera groups... done in 0.003 sec
2018-07-20 22:23:29 processing block: 6 photos
2018-07-20 22:23:30 pair 0 and 1: 6603 robust from 6612
2018-07-20 22:23:30 adding photos 0 and 1 (6603 robust)
2018-07-20 22:23:30 adding 6612 points, 0 far (9.104 threshold), 0 inaccurate, 0 invisible, 0 weak
2018-07-20 22:23:30 adjusting: xxxx 0.216161 -> 0.21536
2018-07-20 22:23:32 adding 0 points, 0 far (9.104 threshold), 0 inaccurate, 0 invisible, 0 weak
2018-07-20 22:23:32 optimized in 1.868 seconds
2018-07-20 22:23:32 3 sigma filtering...
2018-07-20 22:23:32 adjusting: x 0.21536 -> 0.21536
2018.......

adalta

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: libtiff error when importing DJI DNG format files
« Reply #3 on: April 10, 2019, 07:14:11 PM »
 I just recently got this error as well after updating firmware on a phantom 4 pro. These errors came up when trying to import the DNG cameras. Was there any resolution to this. Have a class on friday to teach and was trying to collect a little sample data in between the rain. It is only 25 photos, I see when I look at properties of the photos they say they are 24 bit can metashape handle 24 bit images? Photos can be downloaded from here https://drive.google.com/open?id=1_B5i2sFE48ERkkjbFMMGHRF0-GJCcdYR

Edit: I have also updated to 1.5.2 current build and error persists. I used total image converter and converted them to TIFF which got rid of the error but is not ideal as agisoft use to allow direct import. Also note that my coworker used original DNG and was able to build a sparse cloud but the console threw a lot of the same errors posted below. We didn't continue the process and just used the TIFF instead.


2019-04-10 10:10:46 Agisoft Metashape Professional Version: 1.5.1 build 7618 (64 bit)
2019-04-10 10:10:46 Platform: Windows
2019-04-10 10:10:46 CPU: Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz (server)
2019-04-10 10:10:46 CPU family: 6 model: 79 signature: 406F1h
2019-04-10 10:10:46 RAM: 31.9 GB
2019-04-10 10:10:47 OpenGL Vendor: NVIDIA Corporation
2019-04-10 10:10:47 OpenGL Renderer: Quadro K2200/PCIe/SSE2
2019-04-10 10:10:47 OpenGL Version: 4.6.0 NVIDIA 391.25
2019-04-10 10:10:47 Maximum Texture Size: 16384
2019-04-10 10:10:47 Quad Buffered Stereo: not enabled
2019-04-10 10:10:47 ARB_vertex_buffer_object: supported
2019-04-10 10:10:47 ARB_texture_non_power_of_two: supported
2019-04-10 10:10:56 Loading photos...
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:56 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:57 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:57 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:57 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:57 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:57 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:57 Finished processing in 0.303 sec (exit code 1)
2019-04-10 10:10:57 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:58 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:58 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:10:59 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:00 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:01 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:02 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:02 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:03 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:04 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:05 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:06 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:07 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:07 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:08 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:09 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:10 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:11 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:11 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:12 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:13 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:14 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:15 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:16 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
2019-04-10 10:11:16 libtiff error: input: Null count for "Tag 51008" (type 7, writecount -3, passcount 1)
« Last Edit: April 11, 2019, 12:58:07 AM by adalta »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: libtiff error when importing DJI DNG format files
« Reply #4 on: April 11, 2019, 03:36:15 PM »
Hello adalta,

The warning message means that field OpcodeList1 (51008) in the image header has zero length.

This shouldn't, however, affect the processing, but you'll see these messages every time the image is opened and analyzed during the processing.
Best regards,
Alexey Pasumansky,
Agisoft LLC