Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: MaciekK on August 05, 2021, 09:00:10 AM

Title: dense cloud validates
Post by: MaciekK on August 05, 2021, 09:00:10 AM
Hi everyone,
do you have any idea for a script that validates the height of a dense cloud on known points? Of course you have to calculate the standard deviation, RMS etc. I mean the idea - what methods to use?

Maciek
Title: Re: dense cloud validates
Post by: Paulo on August 05, 2021, 05:01:17 PM
Maciek,

one way to approach the dense cloud height validation would be to use dense_cloud.pickPoint method. Given a check point p1 , you would create a point p0 = (p1.x, p1.y, 0) (same x,y as p1 with altitude 0)
and then use dense_cloud.pickPoint(p0,p1) to find intersection of vertical at p1 with cloud.  Compare the intersection.z with  p1.z and populate your error statistics with np....

This could be a starting point...

In example shown, code reads the validation points coordinates from a file (PuntosFinales.txt), compares the Z with dense cloud using pickPoint and prints out the AVGZ error, STDZ and RMSZ....

Second example shows result using 7 validation check points ... the green lines represent the dense_cloud.pickPoint vertical rays....

Title: Re: dense cloud validates
Post by: MaciekK on August 05, 2021, 09:04:20 PM
Paul,

Thanks. I'll try to write a similar script. As always, you are very helpful

best regards