Forum

Author Topic: Rotate and align model with distance and altitude  (Read 6663 times)

stefan_fvt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Rotate and align model with distance and altitude
« on: September 03, 2014, 01:51:54 PM »
Hi,
I'm exploring photoscan in order to make decent DEMs and ortophotos. I have photos taken from a camera on a drone with GPS EXIF data from the camera. I don't have access to accurate GCP since we don't have equipment for taking this. However we can measure distance between points and also we know the altitude (Z-value) of certain points throughout the model.

When we input the photos to PS it most often create a bent and tilted result. I found the method of using the scale bar to set length between points but. But it doesn't seem to be possible to only use Z-value for GCP omitting the X and Y value. When I try this and optimize alignment the model disapears. 

I will need to create contour lines in a 3D party program and when the model is tilted in random direction this isn't possible. Does anyone have any idea if this is possible to achieve?

/Stefan

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Rotate and align model with distance and altitude
« Reply #1 on: September 03, 2014, 01:55:25 PM »
Hello Stefan,

After scaling the model using scale bars, you can rotate the model using Rotate Object tool, giving it more or less proper orientation.

In current version of PhotoScan it is not possible to use only one or two coordinates from XYZ triplet. So if any coordinate is missing for marker or camera position, the corresponding instance should be unchecked in the Ground Control pane prior to optimization.
Best regards,
Alexey Pasumansky,
Agisoft LLC

stefan_fvt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Rotate and align model with distance and altitude
« Reply #2 on: September 03, 2014, 03:05:17 PM »
But rotating the model only gives it a rough alignment. Is it possible to confirm the alignment for the model. If for example I know that the two points have the same Z-value?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Rotate and align model with distance and altitude
« Reply #3 on: September 03, 2014, 03:10:08 PM »
Hello Stefan,

By two points you can't define the orientation of three axis, however, using Python scripting you can make Z-axis parallel to the vector connecting two points with the arbitrary orientation of X and Y axis in plane.

Maybe you can provide us the project file (only with aligned cameras) where a pair of markers is set up in space to be used as vertical direction? And we'll try to supply you with the script sample.
Best regards,
Alexey Pasumansky,
Agisoft LLC

stefan_fvt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Rotate and align model with distance and altitude
« Reply #4 on: September 03, 2014, 03:29:40 PM »
I will try to arrange a data set for you. Would it help PS if I fly at a known and fixed altitude and provide this data in the Exif for altitude?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Rotate and align model with distance and altitude
« Reply #5 on: September 03, 2014, 03:31:54 PM »
Hello Stefan,

If there are X, Y and Z coordinates for the camera positions, you can georeference the model in the given coordinate system.
Best regards,
Alexey Pasumansky,
Agisoft LLC

stefan_fvt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Rotate and align model with distance and altitude
« Reply #6 on: September 03, 2014, 04:07:34 PM »
Yes Alexey,
I understand that it gets georeferenced since it uses the cameras X and Y coordinates from the camera. But the camera doesn't provide any information about the flying altitude. I can however add the altitude of each image since I know the height I am flying at.

Question 1:
If I specify the altitude for each image and fly at the same altitude for all images. Will this help PS to align the ground plane more accurate?

Question 2:
If I provide images taken from different altitudes and don't specify a altitude value for the images. Will this make it more probable PS produce a model with a tilted ground plane?

stefan_fvt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Rotate and align model with distance and altitude
« Reply #7 on: September 09, 2014, 07:44:25 AM »
No one that would know?