Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: mcstieg on November 16, 2021, 09:38:08 AM

Title: duplicate chunk (chunk.copy) & resetting alignment - bad results after new align
Post by: mcstieg on November 16, 2021, 09:38:08 AM
Hello Alexey,

for a code that
I need your help.

I'm duplicating a chunk to use my photos and masks again in some other chunks to test different parameters. But  I recognized, that the alignment results of my code are worse than using the same parameters in a new chunk (or via GUI), where I load the photos and masks manually.
So what am I doing wrong?

To make it short:   
Code: [Select]
chunk = chunk.copy(keypoints=False)
for camera in chunk.cameras:
                camera.transform = None
chunk.point_cloud.removeKeypoints()
chunk.point_cloud = None
chunk.remove(chunk.markers)
Then I match and align photos (reset matches = True).


Thank you!!!  :)
 
Title: Re: duplicate chunk (chunk.copy) & resetting alignment - bad results after new align
Post by: Alexey Pasumansky on November 16, 2021, 12:46:38 PM
Hello mcstieg,

Can you share the project with two chunks - results in new chunk (good), results in duplicated chunk (not so good)? If it is possible, please send the project (as PSZ of PSX+files folder) to support@agisoft.com.