Skip to content

Commit

Permalink
Added support for both 8 bit and 16 bit datasets in lidar-intensity c…
Browse files Browse the repository at this point in the history
…olor ramp (#96)
  • Loading branch information
kylemann16 authored May 18, 2022
1 parent f23bf0d commit 940b23a
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions pctiler/pctiler/colormaps/lidarusgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
],
}

Expand Down

0 comments on commit 940b23a

Please sign in to comment.