From 940b23a9bbe61a61b4f4ba2eb90f2e2a4ad26d5f Mon Sep 17 00:00:00 2001 From: Kyle Mann <39525199+kylemann16@users.noreply.github.com> Date: Wed, 18 May 2022 16:02:16 -0500 Subject: [PATCH] Added support for both 8 bit and 16 bit datasets in lidar-intensity color ramp (#96) --- pctiler/pctiler/colormaps/lidarusgs.py | 48 +++++++++++++++++--------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/pctiler/pctiler/colormaps/lidarusgs.py b/pctiler/pctiler/colormaps/lidarusgs.py index c6587e3e..f13a718b 100644 --- a/pctiler/pctiler/colormaps/lidarusgs.py +++ b/pctiler/pctiler/colormaps/lidarusgs.py @@ -68,22 +68,38 @@ ((30, 100), (194, 82, 60, 255)), ], "lidar-intensity": [ - ((-900, 1), (0, 0, 0, 0)), - ((1, 2), (16, 16, 16, 255)), - ((2, 3), (33, 33, 33, 255)), - ((3, 4), (50, 50, 50, 255)), - ((4, 5), (68, 68, 68, 255)), - ((5, 6), (85, 85, 85, 255)), - ((6, 7), (102, 102, 102, 255)), - ((7, 8), (119, 119, 119, 255)), - ((8, 9), (136, 136, 136, 255)), - ((9, 10), (153, 153, 153, 255)), - ((10, 11), (170, 170, 170, 255)), - ((11, 12), (187, 187, 187, 255)), - ((12, 13), (204, 204, 204, 255)), - ((13, 14), (221, 221, 221, 255)), - ((14, 15), (238, 238, 238, 255)), - ((15, 16), (255, 255, 255, 255)), + ((0, 16), (0, 0, 0, 255)), + ((16, 32), (17, 17, 17, 255)), + ((32, 48), (34, 34, 34, 255)), + ((48, 64), (51, 51, 51, 255)), + ((64, 80), (68, 68, 68, 255)), + ((80, 96), (85, 85, 85, 255)), + ((96, 112), (102, 102, 102, 255)), + ((112, 128), (119, 119, 119, 255)), + ((128, 144), (137, 137, 137, 255)), + ((144, 160), (154, 154, 154, 255)), + ((160, 176), (171, 171, 171, 255)), + ((176, 192), (188, 188, 188, 255)), + ((192, 208), (205, 205, 205, 255)), + ((208, 224), (222, 222, 222, 255)), + ((224, 240), (239, 239, 239, 255)), + ((240, 256), (255, 255, 255, 255)), + ((256, 4096), (0, 0, 0, 255)), + ((4096, 8192), (17, 17, 17, 255)), + ((8192, 12288), (34, 34, 34, 255)), + ((12288, 16384), (51, 51, 51, 255)), + ((16384, 20480), (68, 68, 68, 255)), + ((20480, 24576), (85, 85, 85, 255)), + ((24576, 28672), (102, 102, 102, 255)), + ((28672, 32768), (119, 119, 119, 255)), + ((32768, 36864), (137, 137, 137, 255)), + ((36864, 40960), (154, 154, 154, 255)), + ((40960, 45056), (171, 171, 171, 255)), + ((45056, 49152), (188, 188, 188, 255)), + ((49152, 53248), (205, 205, 205, 255)), + ((53248, 57344), (222, 222, 222, 255)), + ((57344, 61440), (239, 239, 239, 255)), + ((61440, 65536), (255, 255, 255, 255)), ], }