Forum

Author Topic: Export orthophotos - bottom projection  (Read 4480 times)

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Export orthophotos - bottom projection
« on: February 26, 2019, 06:52:20 PM »
Sometimes i scan/reconstruct a whole room, then duplicate the chunk and crop each one to walls, floor and ceiling before generating orthomosaics in the respective projection for each chunk (top/bottom/front/back/left/right). Ceiling chunks get a bottom projection.

it may be the case in left/right/front/back projections too, but i've only had this problem using the bottom projection, as follows:

it seems quite temperamental about exporting orthophotos if you generated the orthomosaic using bottom projection. In some previous version it just didn't export anything, and in the latest [1.5.1 metashape pro build 7618 (64 bit) on win 10] it seemed to export just a random subset (although it was the same subset each time i tried).

flipping the chunk over and rebuilding the orthomosaic in top projection seems to solve it and they all export successfully, but it would be good if the projection didn't make this weird difference!

« Last Edit: February 26, 2019, 07:46:50 PM by James »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Export orthophotos - bottom projection
« Reply #1 on: February 26, 2019, 08:57:05 PM »
Hello James,

Can you post here any examples of incorrect and valid orthomosaic for the same area?
Best regards,
Alexey Pasumansky,
Agisoft LLC

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Export orthophotos - bottom projection
« Reply #2 on: November 27, 2019, 01:48:39 PM »
Sorry i missed your reply. There is no problem with the orthomosaic, they generate/export beautifully every time.

The problem is if i try to export the individual orthophotos for any orthomosaic generated for a planar projection other than 'top'.

So for example:

I could reconstruct a building and generate a lovely orthomosaic of the 'left' facade using 'Left YZ' planar projection, but if i right click the orthomosaic in the workspace, and select 'Export Orthophotos...' then choose a folder for the images - nothing is exported.

I suspect perhaps this is because the resolution is specified as X and Y but the images are all in the YZ plane?

Some sample console output of generating an orthomosaic with planar Left YZ projection (although the specific projection is not indicated in the console output?), and then attempting to export the orthophotos, with the offending few lines right at the bottom:

*using Metashape Pro 1.6.0 build 9617

Code: [Select]
2019-11-27 10:40:20 BuildOrthomosaic: projection = Planar, surface = Mesh, blending mode = Mosaic, refine seamlines = 0, pixel size = 0.00226753 x 0.00226753
2019-11-27 10:40:20 Generating orthomosaic...
2019-11-27 10:40:20 initializing...
2019-11-27 10:40:20 Analyzing mesh...
2019-11-27 10:40:20 tessellating mesh... done (13957 -> 14365 faces)
2019-11-27 10:40:20 generating 3955x2015 orthomosaic (6 levels, 0 resolution)
2019-11-27 10:40:20 selected 29 cameras
2019-11-27 10:40:20 saved orthomosaic data in 0.009 sec
2019-11-27 10:40:20 saved camera partition in 0.035 sec
2019-11-27 10:40:20 scheduled 2 orthophoto groups
2019-11-27 10:40:20 loaded camera partition in 0.002 sec
2019-11-27 10:40:20 tessellating mesh... done (13957 -> 14365 faces)
2019-11-27 10:40:20 loaded orthomosaic data in 0.028 sec
2019-11-27 10:40:20 Orthorectifying images...
2019-11-27 10:40:20 Orthorectifying 15 images
2019-11-27 10:40:29 DSC_5203: 3955x2014 -> 3954x1990
2019-11-27 10:40:29 DSC_5222: 3170x1007 -> 2813x793
2019-11-27 10:40:29 DSC_5221: 3532x1221 -> 3388x1160
2019-11-27 10:40:29 DSC_5220: 3955x1392 -> 3839x1322
2019-11-27 10:40:30 DSC_5223: 3955x2014 -> 3954x1924
2019-11-27 10:40:30 DSC_5366: 3955x2014 -> 3954x1617
2019-11-27 10:40:30 DSC_5226: 3955x2014 -> 3954x1779
2019-11-27 10:40:30 DSC_5205: 3955x2014 -> 3954x1990
2019-11-27 10:40:30 DSC_5206: 3955x2014 -> 3954x1990
2019-11-27 10:40:30 DSC_5218: 3955x2009 -> 3954x1993
2019-11-27 10:40:30 DSC_5367: 3955x2014 -> 3954x2014
2019-11-27 10:40:30 DSC_5204: 3955x2014 -> 3954x1990
2019-11-27 10:40:30 DSC_5219: 3955x1748 -> 3954x1520
2019-11-27 10:40:30 DSC_5225: 3955x2014 -> 3881x2014
2019-11-27 10:40:30 DSC_5224: 3955x2014 -> 3873x2014
2019-11-27 10:40:31 Finished orthorectification in 10.305 sec
2019-11-27 10:40:31 loaded camera partition in 0 sec
2019-11-27 10:40:31 tessellating mesh... done (13957 -> 14365 faces)
2019-11-27 10:40:31 loaded orthomosaic data in 0.021 sec
2019-11-27 10:40:31 Orthorectifying images...
2019-11-27 10:40:31 Orthorectifying 14 images
2019-11-27 10:40:41 DSC_5354: 2927x1231 -> 2759x1163
2019-11-27 10:40:42 DSC_5355: 2927x1231 -> 2750x1163
2019-11-27 10:40:42 DSC_5368: 3955x2014 -> 3954x2014
2019-11-27 10:40:42 DSC_5357: 2992x1095 -> 2434x956
2019-11-27 10:40:42 DSC_5356: 2927x1231 -> 2749x1163
2019-11-27 10:40:43 DSC_5364: 2504x696 -> 2114x547
2019-11-27 10:40:43 DSC_5365: 2262x428 -> 1888x315
2019-11-27 10:40:43 DSC_5358: 2799x1444 -> 2580x1322
2019-11-27 10:40:43 DSC_5383: 3932x1897 -> 3901x1825
2019-11-27 10:40:43 DSC_5360: 3343x2009 -> 3236x2008
2019-11-27 10:40:43 DSC_5359: 3175x2010 -> 3046x1986
2019-11-27 10:40:43 DSC_5363: 3103x1460 -> 3008x1125
2019-11-27 10:40:43 DSC_5361: 3153x2009 -> 3015x1993
2019-11-27 10:40:43 DSC_5362: 3098x1814 -> 2969x1589
2019-11-27 10:40:43 Finished orthorectification in 12.787 sec
2019-11-27 10:40:43 loaded camera partition in 0 sec
2019-11-27 10:40:43 tessellating mesh... done (13957 -> 14365 faces)
2019-11-27 10:40:43 loaded orthomosaic data in 0.021 sec
2019-11-27 10:40:43 selected 1 tiles
2019-11-27 10:40:44 scheduled 1 tile groups
2019-11-27 10:40:44 selected 1 tiles
2019-11-27 10:40:44 Updating partition...
2019-11-27 10:40:47 29 of 29 processed in 2.893 sec
2019-11-27 10:40:47 partition updated in 3.329 sec
2019-11-27 10:40:47 Updating orthomosaic...
2019-11-27 10:40:47 loaded partition in 0.327 sec
2019-11-27 10:40:47 boundaries extracted in 0.009 sec
2019-11-27 10:40:50 18 images blended in 3.156 sec
2019-11-27 10:40:51 orthomosaic updated in 3.73 sec
2019-11-27 10:40:51 Updating orthomosaic...
2019-11-27 10:40:51 orthomosaic updated in 0.054 sec
2019-11-27 10:40:51 Finished processing in 31.159 sec (exit code 1)
2019-11-27 10:41:08 ExportOrthophotos: path = C:/Users/James/Desktop/{filename}_ortho.png, resolution_x = 0.00226753, resolution_y = 0.00226753
2019-11-27 10:41:08 Exporting orthophotos...
2019-11-27 10:41:08 exporting 0 images
2019-11-27 10:41:08 Finished processing in 0.023 sec (exit code 1)
« Last Edit: November 27, 2019, 01:51:02 PM by James »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Export orthophotos - bottom projection
« Reply #3 on: November 27, 2019, 07:44:11 PM »
Hello James,

Thank you for additional information. There seems to be an issue with the internal ortho projection definition. The fix will be implemented in the next update of 1.6.0 pre-release.
Best regards,
Alexey Pasumansky,
Agisoft LLC

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Export orthophotos - bottom projection
« Reply #4 on: November 28, 2019, 01:06:01 PM »
That's great to hear, thank you!

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Export orthophotos - bottom projection
« Reply #5 on: January 08, 2020, 12:46:58 PM »
It works! Thank you!