Forum

Author Topic: Question about PhotoScan.DenseCloud.classifyGroundPoints  (Read 3793 times)

ppkong

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Question about PhotoScan.DenseCloud.classifyGroundPoints
« on: June 18, 2015, 05:16:57 AM »
I want to classify ground point use python script
Code: [Select]
PhotoScan.DenseCloud.classifyGroundPoints(max_angle=10.0,max_distance=1.0,cell_size=50.0)
It prompt me 'TypeError:descriptor 'classifyGroundPoints' of  'PhotoScan.DenseCloud' object need an argument',
I want to know what's wrong with my script?
pls help!thanks a lot!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13908
    • View Profile
Re: Question about PhotoScan.DenseCloud.classifyGroundPoints
« Reply #1 on: June 18, 2015, 11:25:51 AM »
Hello ppkong,

You are trying to classify the Dense Cloud class and not the existing dense cloud.
If there's a chunk (for example active chunk: chunk = PhotoScan.app.document.chunk) you should use chunk.classifyGroundPoints() function.
Best regards,
Alexey Pasumansky,
Agisoft LLC

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Question about PhotoScan.DenseCloud.classifyGroundPoints
« Reply #2 on: August 27, 2015, 09:39:50 AM »
Hey

I was having the same problem so I tried what you suggested but had no luck.
I'm getting the following error:

Code: [Select]
AttributeError: 'PhotoScan.Chunk' object has no attribute 'classifyGroundPoints'
Any suggestions?
Thanks

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Question about PhotoScan.DenseCloud.classifyGroundPoints
« Reply #3 on: August 27, 2015, 09:50:58 AM »
Found the answer

Code: [Select]
chunk.dense_cloud.classifyGroundPoints(max_angle=max_angle, max_distance=max_distance, cell_size=cell_size)