Forum

Author Topic: Visibility-consistent mesh generation  (Read 2434 times)

Twister

  • Newbie
  • *
  • Posts: 24
    • View Profile
Visibility-consistent mesh generation
« on: May 23, 2018, 04:14:33 PM »
Hi,

is it possible to include visibility-consistent mesh generation in a python script?
(I use PhotoScan Professional 1.4.2)

Thanks a lot

twister

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Visibility-consistent mesh generation
« Reply #1 on: May 23, 2018, 08:44:00 PM »
Hello Twister,


You need to build depth maps at first and then use DepthMapsData as a source for the mesh reconstruction function the quality parameter should correspond for both functions and filtering option for the depth maps should be set to Mild:
Code: [Select]
chunk.buildDepthMaps(quality = PhotoScan.HighQuality, filter = PhotoScan.FilterMode.MildFiltering, reuse_depth = True)
chunk.buildModel(surface = PhotoScan.Arbitrary, source = PhotoScan.DepthMapsData, quality = PhotoScan.HighQuality, reuse_depth = True, keep_depth = True)
Best regards,
Alexey Pasumansky,
Agisoft LLC

Twister

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Visibility-consistent mesh generation
« Reply #2 on: May 26, 2018, 08:34:03 PM »
Thank you, Alexey, that works.

Twister

P.S. Visibility-consistent mesh generation is great with insects:
https://zookeys.pensoft.net/article/24584/

SAV

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: Visibility-consistent mesh generation
« Reply #3 on: May 27, 2018, 01:26:59 PM »
Nice work, Twister.

Thanks for sharing the paper.

Regards,
SAV

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Visibility-consistent mesh generation
« Reply #4 on: May 30, 2018, 04:13:01 PM »
Hello Twister,

I think you can also put the link to your article to the thread related to the new meshing method as an example of new method and comparison with the old (default) method for complex and thin surfaces:
http://www.agisoft.com/forum/index.php?topic=8064
Best regards,
Alexey Pasumansky,
Agisoft LLC