Forum

Author Topic: Merging chunks  (Read 7974 times)

julian

  • Newbie
  • *
  • Posts: 1
    • View Profile
Merging chunks
« on: July 25, 2012, 02:47:16 AM »
Hei,
I'm doing a script to process a lot of pictures, I was wondering, on Photoscan when you click on merging Chunks, it creates a new Chunks where the result is stored.
Why the PhotoScan.mergeChunks does'nt do the same things.
It's the last step and I'm blocked here.
How can I display the merged results?
Thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Merging chunks
« Reply #1 on: July 25, 2012, 11:55:37 AM »
Hello Julian,

I think you should use something similar to the following:

Code: [Select]
doc = PhotoScan.app.document

merged_chunk = PhotoScan.Chunk()

merged_chunk = PhotoScan.mergeChunks(doc.chunks, False, False)

doc.chunks.add(merged_chunk)
Best regards,
Alexey Pasumansky,
Agisoft LLC