Forum

Author Topic: How to make image orientations fixed before alignment ?  (Read 6693 times)

cyrilp

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
How to make image orientations fixed before alignment ?
« on: December 06, 2023, 04:14:38 PM »
I'm using a robotic arm to take pictures in row/column. All images are perfectly :
* on the same plane
* have the same orientation

How can i use this information to help alignment ?
So far some time when overlap is to small the images are aligned on a round surface instead of a plane.
I would like to make the orientation fixed and if possible put them all on the same plane.


cyrilp

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: How to make image orientations fixed before alignment ?
« Reply #1 on: December 21, 2023, 07:04:38 PM »
please help

JMR

  • Hero Member
  • *****
  • Posts: 536
    • View Profile
Re: How to make image orientations fixed before alignment ?
« Reply #2 on: December 21, 2023, 10:23:16 PM »
Hy Cyril
If you know camera positions you can import them as reference.
You say you also can have prior rotations with really high accuracy... that sounds good, but I think this is harder to achieve even for a robot, so my suggestion would be to set camera locations accuracy to a very tight value (for exampe 0.00001m) and let rotations accuracy set to say 1degree
that should be enough of a constraint and would provide enough freedom to estimate rotations and interior orientation during alignment and refinement wile your initial camera posioions would be leaft almost untouched.
But if you are 100% positive that your encoder-estimated locations and rotations have negligible error, you can import them and apply "quick layout" script. After that you can build the tie points and if you are right and your orientations are good, Metashape will create a sparse cloud without modifying your reference priors.

Regards,
José Martínez
Geobit & Accupixel CTO

cyrilp

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: How to make image orientations fixed before alignment ?
« Reply #3 on: December 22, 2023, 11:58:44 AM »
Thanks for your reply,

how do i do this:
"If you know camera positions you can import them as reference."

jkova96

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Re: How to make image orientations fixed before alignment ?
« Reply #4 on: December 23, 2023, 12:39:08 AM »
Hi Cyrilic,
I think that JMR wants to say that you should create basic csv file containing images id (or name), coordinates of projection centers and 3D orientations of each image.
Don't know how can someone explain you better. Look at the picture which I post to you in attachments, it's shows you basically how you can create basic csv file which contains image info that you need.
Also, you can create txt file is it easier for you.
Second, after .csv or .txt file is being generated then you should import that file into reference pane. Steps how to done this are described via this link:
https://agisoft.freshdesk.com/support/solutions/articles/31000153696-aerial-data-processing-with-gcps-orthomosaic-dem-generation#Import-camera-position
If you want to force alignment you should use script which is available within this link: https://github.com/agisoft-llc/metashape-scripts/blob/master/src/quick_layout.py
If you don't know how to apply script into Agisoft Metashape, here's tutorial for that: https://agisoft.freshdesk.com/support/solutions/articles/31000168292-how-to-download-script-from-github-
After you import script in Agisoft Metashape then you can apply Build Thin Point Cloud : Tools --> Build point cloud