Forum

Author Topic: Classify ground points  (Read 9191 times)

MINE

  • Newbie
  • *
  • Posts: 16
    • View Profile
Classify ground points
« on: October 13, 2014, 03:49:09 PM »
Hi,

Does anyone know how to use the Classify ground points functionality from python?

I can't seem to find anything about it in the manual...

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: Classify ground points
« Reply #1 on: October 20, 2014, 07:06:04 PM »
Hello MINE,

Dense cloud classification function has been implemented in Python in PhotoScan v 1.1 build 1982:
Code: [Select]
chunk.dense_cloud.classifyGroundPoints(max_angle=15.0, max_distance=1.0, cell_size=50.0)
Best regards,
Alexey Pasumansky,
Agisoft LLC

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: Classify ground points
« Reply #2 on: November 06, 2014, 12:17:05 AM »
To build model based on certain classes optional [classes] argument in chunk.buildModel() function should be used, where indices of the point classes should be specified.
Best regards,
Alexey Pasumansky,
Agisoft LLC

tforward2

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Classify ground points
« Reply #3 on: January 07, 2015, 06:48:11 PM »
To build model based on certain classes optional [classes] argument in chunk.buildModel() function should be used, where indices of the point classes should be specified.
Can you give an example of what this looks like?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: Classify ground points
« Reply #4 on: January 08, 2015, 12:55:03 PM »
Hello tforward2,

Using classes argument with the list of class indices works in the following way:
Code: [Select]
chunk.buildModel(classes = [3,5])It means that only Low Vegetation and High Vegetation class points will be used for the mesh generation.

Best regards,
Alexey Pasumansky,
Agisoft LLC