Forum

Author Topic: PS does not merge dense point clouds  (Read 6845 times)

Patribus

  • Full Member
  • ***
  • Posts: 169
    • View Profile
PS does not merge dense point clouds
« on: May 06, 2015, 11:54:59 AM »
Hello, I'm having an issue which is new to me.

I have a project with approx. 400 photos aligned and a few markers. The model scale is given by the distances (scale bars) of these markers.

In order to generate the dense point cloud  (DPC) I create around 6 chunks with different regions.
For each region the DPC is correctly produced.

First problem: When I activate the "Show Aligned Chunks" icon/function, nothing happens. Only the active chunks is show. All others aren't!

Second problem:
when I merge the chunks to get the final merges DPC, PS does not merge anything. There is no DPC cloud. The new merged chunk does not even have the tie point cloud, it is in fact empty (it does contain the markers, though).  The merging process happens in less than 1s, which is already not normal.

I though this problems to be related to the last version 1.1.6, but it happens also in 1.1.5.

Any ideas?

Best regards

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13913
    • View Profile
Re: PS does not merge dense point clouds
« Reply #1 on: May 06, 2015, 11:58:20 AM »
Hello Patribus,

Chunks should be aligned with each other for merging operation. When you click Show Aligned button and no other chunks are displayed, it means that chunks are not aligned (also [R] sign next to the chunk label in the Workspace pane is a good indicator of the aligned chunks).
So when you merge unaligned chunks only images will be merged, other information couldn't be properly combined due to lack of relative chunks positioning information.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Patribus

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: PS does not merge dense point clouds
« Reply #2 on: May 06, 2015, 12:14:51 PM »
Hi Alexey and thanks for the very quick answer.

The thing is: I have 1 (!) chunk which I duplicate several times changing only the regions. So the chunks are aligned a priori!

Why should it not be possible to see them aligned and merge them again?

The only thing which is different this time, is that I defined only a model scale using scale bars but no specific coordinates. I.e. the chunks shows a [ S ] , but no [ R ].

Could this be a problem?

Cheers
« Last Edit: May 06, 2015, 12:19:25 PM by Patribus »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13913
    • View Profile
Re: PS does not merge dense point clouds
« Reply #3 on: May 06, 2015, 12:21:48 PM »
Hello Patribus,

If the original chunk was not references, it's copies wouldn't have information about their relative position.

However, you can use the following Python command and it might help for your case:
PhotoScan.app.document.chunk.matrix = PhotoScan.app.document.chunk.matrix
Performing it for every chunk will make them "referenced".

Let me know if it helps.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Patribus

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: PS does not merge dense point clouds
« Reply #4 on: May 06, 2015, 01:18:28 PM »
[ui, just send a reply when your server went down]


OK, I'll try it with phyton, although I must confess that I never work with it. I'll try to get a crash course using your documentation.

Just one question: is your command correct, i.e. that you have the same expression on the left and right side of the '=' sign in

Code: [Select]
PhotoScan.app.document.chunk.matrix = PhotoScan.app.document.chunk.matrix
?

It looks strange to me, but like I said, I'm new to this scripting....

Cheers

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13913
    • View Profile
Re: PS does not merge dense point clouds
« Reply #5 on: May 06, 2015, 01:25:30 PM »
Hello Patribus,

Yes, the expressions are identical, but it will make the chunk to be marked as Referenced.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Patribus

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: PS does not merge dense point clouds
« Reply #6 on: May 06, 2015, 01:49:56 PM »
HI,

I'm probably doing something wrong,
but I get an error.

I select a chunk I want to set as 'referenced'

and carry out your command.

I get an error, as shown in the attachment.


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13913
    • View Profile
Re: PS does not merge dense point clouds
« Reply #7 on: May 06, 2015, 01:55:03 PM »
Oops, my fault, it should be PhotoScan.app.document.chunk.transform.matrix by the both sides.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Patribus

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: PS does not merge dense point clouds
« Reply #8 on: May 06, 2015, 02:23:01 PM »
perfect, it worked!