Skip to content
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

Visualisation of point clouds with different colour palette #325

Closed
spono opened this issue Mar 10, 2020 · 3 comments
Closed

Visualisation of point clouds with different colour palette #325

spono opened this issue Mar 10, 2020 · 3 comments
Assignees
Labels
Feature request Asking for a new feature

Comments

@spono
Copy link

spono commented Mar 10, 2020

Just for visualisation purposes, a potential improvement of #275 could be to have the possibility to plot together two point clouds with different colour palettes.

I think something like:

las1 # classified scene without trees
las2 # only trees
plot(las1, color = "Classification") # mainly to distinguish ground VS man made objects (buildings, power lines, etc)
plot(las2, add=TRUE) # add the trees coloured according to Z
@Jean-Romain Jean-Romain self-assigned this Mar 10, 2020
@Jean-Romain Jean-Romain added the Feature request Asking for a new feature label Mar 10, 2020
@Jean-Romain
Copy link
Collaborator

This is a fair feature request that can probably be done within a very short term.

@Jean-Romain
Copy link
Collaborator

Jean-Romain commented Mar 10, 2020

library(lidR) # >= v3.0.0
las = readLAS("building_WilliamsAZ_Urban_normalized.las")
nonveg = filter_poi(las, Classification != LASHIGHVEGETATION)
veg = filter_poi(las, Classification == LASHIGHVEGETATION)

# Regular plot
plot(las, color = "Classification")

# Two point cloud with different palettes
x = plot(nonveg, color = "Classification")
plot(veg, add = x)

Capture du 2020-03-10 12-54-05

@spono
Copy link
Author

spono commented Mar 10, 2020

amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Asking for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants