Agisoft Metashape

Agisoft Metashape => Bug Reports => Topic started by: srivatsa_s on August 04, 2021, 03:55:18 PM

Title: Using Created (never classified) in Classify Ground Points
Post by: srivatsa_s on August 04, 2021, 03:55:18 PM
Context: I'm trying to reclassify ground points without doing Reset Classification.

My assumption: Using "Created (never classified)" as source ("From") in "Classify Ground Points" should do the same job as "Reset Classification" and selecting source as "Any Class"

Output: This setting tries to classify ground points on top of previously classified points instead of doing a fresh new classification.

Please clarify if my assumption is correct or if this is a bug.
My requirement is to do "Reset Classification" in Python API but I don't see a function to perform this action. So, I used "Created (never classified)" as source points. But output is not what I expected it to be.
Title: Re: Using Created (never classified) in Classify Ground Points
Post by: Alexey Pasumansky on August 09, 2021, 01:37:21 PM
Hello srivatsa_s,

If you would like to start the classification with the new parameters from scratch, you should reset previously acquired classification results. Via Python it can be done using the following command, which assigns "Created (Never classified)" class to all the points in the active dense cloud:
Code: [Select]
chunk.dense_cloud.assignClass(0)
Title: Re: Using Created (never classified) in Classify Ground Points
Post by: srivatsa_s on September 03, 2021, 08:29:32 AM
Thanks for the solution.