-
Notifications
You must be signed in to change notification settings - Fork 2
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
R crashes using CSF on some clouds #12
Comments
The following works for me. Please provide more details. OS, reproducible example and so on. Ideally try to reproduce without library(lidR)
las = readLAS("~/Téléchargements/plot_1000351_6769761.las")
plot(las, color = "Classification")
mycsf = lidR::csf(sloop_smooth = FALSE, iterations = 1000L, class_threshold = 0.5, cloth_resolution = 0.2)
las = classify_ground(las, mycsf)
plot(las, color = "Classification") |
Thank you for your response. Regarding the OS, I'm on Windows 11, latest version. las <- lidR::readLAS("plot_1000351_6769761.las")
data <- las@data
ground <- RCSF::CSF(data, sloop_smooth = FALSE, iterations = 1000L, class_threshold = 0.5, cloth_resolution = 0.2) Leads me to believe that it comes from lidR and not the RCSF package. |
I confirm it crashes on Windows and I can identify the issue on Linux even if it does not crash. It comes from the code of the CSF. The code is not mine. I'm not sure I can fix it. Maybe I should check if the original CSF has been updated.
We have pretty much the same without lidR las <- rlas::read.las("~/Téléchargements/plot_1000351_6769761.las")
ground <- RCSF::CSF(data, sloop_smooth = FALSE, iterations = 1000L, class_threshold = 0.5, cloth_resolution = 0.2)
|
Running the
classify_ground
function with the CSF algorithm on some point clouds leads to R crashing.The CSF parameters :
lidR::csf(sloop_smooth = FALSE, iterations = 1000L, class_threshold = 0.5, cloth_resolution = 0.2)
Tested on both R v4.3.2 and v4.4.0 running on an AMD Ryzen 9 7850X3D, 64Gb of RAM and a RTX 4080.
Using CloudCompare's implementation of the CSF gives satisfactory results.
I've put on my personnal drive a file that's crashing.
https://drive.google.com/file/d/1s3eehS0lKVO-wFlreCCP6UNWJchPm1cg/view?usp=sharing
Let me know if I can be of further help investigating this issue or if I need to post this on the RCSF github issue tracker.
The text was updated successfully, but these errors were encountered: