Forum

Author Topic: Split in Chunks script yielding empty chunks  (Read 4252 times)

Mycobiont

  • Newbie
  • *
  • Posts: 21
    • View Profile
Split in Chunks script yielding empty chunks
« on: August 18, 2015, 08:01:43 PM »
I'm doing some work with the "Split in Chunks" script (http://wiki.agisoft.com/wiki/Python), which generally works fantastically!  However, I have found some cases where the final merged dense point cloud is missing a number of the chunks, or the dense cloud is missing entirely.  If I don't have the script merge the chunks back together, I find some of the individual chunks are missing the point clouds. 

I now have a small demo project of 8 photos that just running Build Dense Cloud in the Workflow menu yields a dense cloud with a little over 1 million points.  Using the script, slightly modified (attached) to provide settings (using medium quality, filtering disabled), splitting to 4 chunks, then merging, results in a merged chunk that has only the photos (no point cloud or tie points at all).  Running the same thing, except without merging, results in 4 chunks, 3 with tie point clouds and dense clouds, and 1 with only tie point clouds.

I'm wondering if something is going wrong with the script?  Or is there some other problem occurring?  What can I do to fix it?

Thanks!!!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Split in Chunks script yielding empty chunks
« Reply #1 on: August 19, 2015, 11:41:34 AM »
Dear Mycobiont,

Probably you do not have the original chunk referenced. If so, then please try putting the following line somewhere in the beginning of the script:
Code: [Select]
PhotoScan.app.document.chunk.transform.matrix = PhotoScan.app.document.chunk.transform.matrix
Best regards,
Alexey Pasumansky,
Agisoft LLC

Mycobiont

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Split in Chunks script yielding empty chunks
« Reply #2 on: August 20, 2015, 02:32:09 AM »
Thanks!  Looks like I'm dealing with two problems, but that solved one:
 - script ending with complete lack of dense point cloud = SOLVED!
 - script ending with dense point cloud with gaps that look like missing chunks = still a problem.

Screenshot attached.  Some of the missing chunks should be pretty minimal for points, so I doubt it is a memory problem.  And splitting into more chunks isn't helping.

Thanks for any further thoughts!