computing gradient from distances

Feel free to ask any question here
Post Reply
wrenRaming
Posts: 1
Joined: Thu May 28, 2020 5:50 pm

computing gradient from distances

Post by wrenRaming »

Hi,

Sorry if this is a naive question but I am a little confused about the output of gradient from a scalar field. Given the euclidean/distances option (let's say horizontal distance vs elevation), why would the gradient be capped at 1? Maybe I don't fully understand how the gradient is calculated for a point cloud but in the simplest scenario, it's just the ratio of the vertical distance to the horizontal right, so larger values are certainly possible. I have been working an example of sea-cliff on Hawai'i that I am almost certainly should have a higher gradient, but still, the gradient only ranges from 0 to 0.9, this is even true if I click no on the distances option. I attached the example below.


Cheers,
Wren
Image
Attachments
example
example
Screen Shot 2020-05-28 at 11.45.08 AM.png (1.35 MiB) Viewed 1457 times
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: computing gradient from distances

Post by daniel »

This 'euclidean distance' option only works if the scalar field is '3D euclidean distances' (due to the way they are computed on a point cloud, the gradient can't be bigger that one as you divide the difference of 3D distances by... the 3D distance between the points). But if your scalar field is not a 3D distance, then yes the gradient could be bigger than 1.

And anyway it's just a way to cap the scalar field, therefore if you don't say use this option, you'll get the uncapped version.
Daniel, CloudCompare admin
Post Reply