Forum

Author Topic: Point Align not working.. or I'm doing it wrong!  (Read 10924 times)

RashedAlmet

  • Newbie
  • *
  • Posts: 13
    • View Profile
Point Align not working.. or I'm doing it wrong!
« on: August 10, 2017, 01:50:29 PM »
Hey Agisoft Forums,

I've been trying to point-align all the my individual chunks (Different expression per chunk) which are a part of a FAC project but they aren't coming out well..

So I've reset the transforms of all the chunks, set my alignment and scale for my first chunk then opened 'Align Chunks' under the 'Workflow' tab.
I've double clicked on my first chunk so it's in bold text and so its the reference. Then selected a few additional chunks to be aligned (to the first chunk hopefully).

http://i.imgur.com/UI8cZbZ.png

Now when the process has run, my first chunks alignment has been reset and only 1 or 2 of the chunks have the same (bad) alignment as the first chunk.

Here Chunk 1 and 2 are aligned together (alignment has been reset though) and now Chunk 3 and 4's alignment is completely off
http://i.imgur.com/6HR7Tsr.png
http://i.imgur.com/f4Y7n74.png
http://i.imgur.com/ApDSbvk.png
http://i.imgur.com/i2J43jr.png

Any Ideas?

I've also tried Camera Alignment but the actor still isn't perfectly aligned as they have moved somewhat in between shots; am I right in thinking that point alignment should align all the chunks perfectly?
« Last Edit: August 10, 2017, 02:01:07 PM by RashedAlmet »

RashedAlmet

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Point Align not working.. or I'm doing it wrong!
« Reply #1 on: August 11, 2017, 11:37:34 AM »
Anyone?

JMR

  • Hero Member
  • *****
  • Posts: 567
    • View Profile
Re: Point Align not working.. or I'm doing it wrong!
« Reply #2 on: August 12, 2017, 03:36:07 AM »
As far as I see, the first chunk is scaled (S) but not referenced (R), so its external orientation cannot be considered fixed even if you have set this chunk as anchor. So there is no reason for photoscan to keep chunk's current external matrix for the model.
But apparently the align chunks operation requires the anchor chunk to be referenced (R), and it seems that the temporary orientation that you have set manually is dismissed and the original omega phi kappa of the anchor chunk become fixed as reference. I would agree with you that it would be more desirable that happened what you expect, but maybe someone has a diferent opinion.
Alexey might want to put some light here.
Would't be nice to have the option to turn scaled (S) model into referenced (R) accepting the eventually weird coordinates it yielded to?
« Last Edit: September 06, 2017, 12:35:15 AM by JMR »

RashedAlmet

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Point Align not working.. or I'm doing it wrong!
« Reply #3 on: August 17, 2017, 07:00:18 PM »
Thanks for the reply JMR; not sure why you've crossed out your entire post?

The first chunk has its scale and orientation fixed before I align the chunks together; the problem is that it resets the chunks alignment back to how it was (Check XYZ axis in bottom right corner)

Anyone got any ideas?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15726
    • View Profile
Re: Point Align not working.. or I'm doing it wrong!
« Reply #4 on: August 18, 2017, 01:43:00 AM »
Hello RashedAlmet,

Before you start the alignment of chunks, your Reference chunk is only scaled ( [S] mark is indicating that), so it's orientation in space is not defined, only scale does. It means that during the chunk alignment operation the orientation of the chunk selected as a reference one may change.
« Last Edit: August 22, 2017, 06:59:37 PM by Alexey Pasumansky »
Best regards,
Alexey Pasumansky,
Agisoft LLC

RashedAlmet

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Point Align not working.. or I'm doing it wrong!
« Reply #5 on: August 22, 2017, 05:55:22 PM »
Hello RashedAlmet,

Before you start the alignment of chunks, your Reference chunk is only scaled ( mark is indicating that), so it's orientation in space is not defined, only scale does. It means that during the chunk alignment operation the orientation of the chunk selected as a reference one may change.

Hey Alexey,

Thanks for the reply. How would I set the chunk to a fixed position so it doesn't move?

Also why have you crossed out your reply as well?

Regards,

Rashed

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15726
    • View Profile
Re: Point Align not working.. or I'm doing it wrong!
« Reply #6 on: August 22, 2017, 06:59:26 PM »
Hello Rashed,

To fix the position of the chunk (convert it from Scaled to Referenced) you need to use the coordinates of the cameras or markers in the Reference pane. Alternatively you can apply current orientation in space using the following command in the Console pane:
Code: [Select]
PhotoScan.app.document.chunk.transform.matrix = PhotoScan.app.document.chunk.transform.matrix
P.S. it looks like the forum was using "strikethrough" markup when I've tried to input [S].
Best regards,
Alexey Pasumansky,
Agisoft LLC

RashedAlmet

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Point Align not working.. or I'm doing it wrong!
« Reply #7 on: September 04, 2017, 11:31:52 AM »
Hey Alexey,

I believe markers were set already on a bunch of photos from each set. Either way I'll use the script in the batch process! Thanks for your help :)