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

Apply colors to VCD pointcloud #54

Merged
merged 4 commits into from
Mar 13, 2023
Merged

Conversation

j9ac9k
Copy link
Collaborator

@j9ac9k j9ac9k commented Mar 9, 2023

This change adds color to the point cloud VCD output. The color is based on new vs fled for the ground pointcloud only. This uses the maplotlib blues and reds colormaps, although it would be trivial to create different ones.

One colormap is applied to points classified as fled, the other colormap is applied to the points classified as new.

image

@j9ac9k
Copy link
Collaborator Author

j9ac9k commented Mar 9, 2023

To be decided if we want to apply a different colormap, or if we want to apply the colormap to the "not ground" pointcloud.

This change adds color to the point cloud VCD output.  The color is
based on new vs fled for the ground pointcloud only.  This uses
the maplotlib blues and reds colormaps, although it would be trivial
to create different ones.

One colormap is applied to points classified as fled, the other colormap
is applied to the points classified as new.
@j9ac9k
Copy link
Collaborator Author

j9ac9k commented Mar 10, 2023

Realized instead of hard-coding this colormap, I should probably make use of the colorscape property here

Furthermore, I should probably use this same color scheme on the geotiffs too if feasible.

@j9ac9k
Copy link
Collaborator Author

j9ac9k commented Mar 13, 2023

image

Now VCD accepts a --colormap option that accepts a string that maps to a matplotlib colormap, you can find a list here:

https://matplotlib.org/stable/tutorials/colors/colormaps.html

Will leave raster colorization for a separate PR.

@j9ac9k j9ac9k merged commit 5c8f554 into NCALM-UH:main Mar 13, 2023
@j9ac9k j9ac9k deleted the colorize-vcd-pointcloud branch March 13, 2023 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant