-
Notifications
You must be signed in to change notification settings - Fork 16
Height Above Ground algorithm #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
You might want to give them the option to use |
|
Added the |
|
Thank you for adding the function! Exactly what I am looking for, since there seem to be no other tool in QGIS to perform a point cloud normalization. Hope it will be adopted in the next release. |
|
This should go into the next version of QGIS, that is the plan 👍 This is part of the crowdfunding described https://www.lutraconsulting.co.uk/crowdfunding/qgis-3d-for-open-source-digital-twins |
wonder-sk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this algorithm will also need to worry about potential artifacts at the edges (just like e.g. density or to_raster) because it needs points from the neighborhood, and that neighborhood may be in some other tile...
src/height_above_ground.cpp
Outdated
| if (!argReplaceZWithHeightAboveGround->set()) | ||
| { | ||
| replaceZWithHeightAboveGround = false; // default | ||
| } | ||
|
|
||
| if (!argNNCount->set()) | ||
| { | ||
| nnCount = 1; // default | ||
| } | ||
|
|
||
| if (!argNNMaxDistance->set()) | ||
| { | ||
| nnMaxDistance = 0; // default | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aren't these defaults already defined in addArgs() ? do we need this code at all?
| dimensions = pipeline.arrays[0].dtype.names | ||
|
|
||
| # check dimensions | ||
| assert "HeightAboveGround" in dimensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my expectation was that this new dimension would not get saved when replace-z == true (unnecessary duplication)
| src/translate.cpp | ||
| src/utils.cpp | ||
| src/vpc.cpp | ||
| src/height_above_ground.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep it here as is, but it would be good to keep the list alphabetically sorted :-)
Adds Height above ground algorithm and tests.