# Forum

### Author Topic: dense cloud validates  (Read 1409 times)

#### MaciekK

• Newbie
• Posts: 23
##### dense cloud validates
« 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

#### Paulo

• Hero Member
• Posts: 813
##### Re: dense cloud validates
« Reply #1 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....

« Last Edit: August 06, 2021, 04:09:31 AM by Paulo »
Best Regards,

Paul Pelletier

#### MaciekK

• Newbie
• Posts: 23
##### Re: dense cloud validates
« Reply #2 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