Forum

Author Topic: Project point in camera onto DEM  (Read 3632 times)

mathiask

  • Newbie
  • *
  • Posts: 2
    • View Profile
Project point in camera onto DEM
« on: April 25, 2024, 03:51:37 PM »
Hi,

I am interested in projecting a point from a camera onto a calculated DEM.
Code: [Select]
pickPoint more often than wanted returns points, both from dense cloud and tie points, which are far from the correct spot. It seems to be an issue at the edges of images where matches may be more sparse.
The desired function would be to be able to get a camera rays first intersection with the DEM.
I have not found such a function in the Python API, but would it be possible to achieve this with current functions?

The use case would be aerial photos, however the ground would be rather flat. Only the X and Y coordinate are interesting in the end.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15320
    • View Profile
Re: Project point in camera onto DEM
« Reply #1 on: April 25, 2024, 04:06:57 PM »
Hello mathiask,

pickPoint method is available for chunk.elevation source in Python API 2.1.1, see page 78 of API reference document:
https://www.agisoft.com/pdf/metashape_python_api_2_1_1.pdf
Best regards,
Alexey Pasumansky,
Agisoft LLC

mathiask

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Project point in camera onto DEM
« Reply #2 on: April 25, 2024, 05:16:04 PM »
Amazing!
I was looking at the 2.0 documentation, but upgrading ASAP.
Thank you, Alexey