Forum

Author Topic: Processing Pléiades tri-stereo imagery  (Read 5718 times)

Benny

  • Newbie
  • *
  • Posts: 13
    • View Profile
Processing Pléiades tri-stereo imagery
« on: February 21, 2020, 11:55:21 AM »
Hello,

As Metashape Pro 1.6 can also process satellite imagery for 3D reconstruction, I would like to test it with a Pléiades tri-stereo acquisition.

My image files are in JPEG2000 and the RPC files are, like for all Pléiades images, XML files (DIMAP 2.0 metadata format).

As the RPC files are not automatically recognized by Metashape Pro, what do I have to do to allow the software to read the RPC files and recognize the images as satellite ones?

Thank you in advance for your help!

Benoît

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #1 on: February 21, 2020, 12:25:24 PM »
Hello Benoît,

I can suggest to convert the data to GeoTIFF with RPC meta information using GDAL:

Code: [Select]
gdal_translate DIM_<datasetname>.XML output.tif -co TILED=YES
gdaladdo -r average output.tif 2 4 8 16 32

DIMAP XML data is not supported.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Benny

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #2 on: February 21, 2020, 12:40:59 PM »
Thanks for the fast reply!

I'll do the conversion.

All the best,

Benoît

Benny

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #3 on: February 21, 2020, 06:36:30 PM »
FYI,

The conversion of Pléiades images did not work with the first line of code you provided, but did work with this one:

Code: [Select]
gdal_translate -of GTiff -co COMPRESS=NONE -co BIGTIFF=IF_NEEDED DIM_<datasetname>.XML output.tif
Once converted, everything works and the resulting DEM is super nice.

Thanks again for the help!

Benoît


soof

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #4 on: March 06, 2020, 02:57:40 PM »
Dear Benny, I'm having a similar problem with importing pleiades data into agisoft.
 Both the image as the RPC -file are XML-filetype. I tried converting the image to JPEG through Erdas Imagine but it was not possible to read it by Metashape. It just had 1 value and showed everything black.
Would you mind sharing a more detailed version of your solution please? I'm afraid I don't know gdal (besides the QGIS plugin) so I don't grasp what you are getting at.

Greetings!
« Last Edit: March 06, 2020, 02:59:37 PM by soof »

Benny

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #5 on: June 10, 2020, 05:20:00 PM »
Dear Soof,

Sorry. I just discover your message now. If you only use gdal through QGIS, there is a solution.

To apply the command line I provided, you can do this:
1) In the gdal toolbox, select "Translate (Convert Format)".
2) As input layer, add the "DIM_<datasetname>.XML" file related to your Pléiades image.
3) In Advanced parameters, for Profile, select "No compression"
4) For Converted (=output file), specify the path and name of your geotiff image.
5) Check the command line it creates in GDAL/OGR console call
6) Run the conversion.

Repeat for each Pléiades image you would like to process with Metashape.

To build pyramid overviews, as suggested by Alexey, the tool is also available through the GDAL toolbox in QGIS (Build overviews (pyramids)).

All the best,

Benoît

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #6 on: June 11, 2020, 12:30:07 AM »
Latest version of Metashape Pro allows to re-save the images with the TIFF overviews via Convert Images option in the File Menu as a pre-processing step.

The procedure is described in the related tutorial (section To generate optimized TIFF images for faster navigation):
https://agisoft.freshdesk.com/support/solutions/articles/31000153729-satellite-imagery-processing
Best regards,
Alexey Pasumansky,
Agisoft LLC

soof

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #7 on: June 11, 2020, 11:29:46 AM »
Dear Benny and Alexy,

thank you for your replies! I will try it out and let you know if I was succesful!
Thanks a lot and stay safe!

Kind regards,
Soof

Gaurav

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #8 on: June 03, 2022, 12:21:10 PM »
Which satellite imagery we can process in agisoft.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #9 on: June 23, 2022, 03:50:23 PM »
Hello Gaurav,

We have updated the article on satellite images processing:
https://agisoft.freshdesk.com/support/solutions/articles/31000153729-satellite-imagery-processing

The supported satellites, that have been tested: Beijing-3A, Ikonos, Planet Labs, Pleiades, SuperView, Jilin, WorldView. (note that RPC data is required anyway).
Best regards,
Alexey Pasumansky,
Agisoft LLC

Gaurav

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #10 on: July 01, 2022, 10:34:21 AM »
Hi Alexey,

Thanks for the reply.

If we have multiple tile of a single image with one RPC file then how we can process the data.

Thanks
Gaurav

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Processing Pléiades tri-stereo imagery
« Reply #11 on: July 01, 2022, 07:16:13 PM »
Hello Gaurav,


In the tutorial there's an instruction how to pre-process the tiled image data using GDAL (before loading to Metashape):
Quote
DIMAP format support is limited to single tile images only. Tiled DIMAP images need to be combined before adding to Metashape project:
gdal_translate DIM_<datasetname>.XML combined.tif -co TILED=YES
gdaladdo -r average combined.tif 2 4 8 16 32
Does it work with your data?
Best regards,
Alexey Pasumansky,
Agisoft LLC