Skip to content

Instantly share code, notes, and snippets.

import os
wget1 = "wget http://kitti.is.tue.mpg.de/kitti/raw_data/2011_09_26_drive_"
unzip1 = "unzip "
del1 = "rm "
dash = "/"
cmd2 = "2011_09_26_drive_"
cmd3 = "_sync.zip"
i
mport numpy as np
# http://ronny.rest/tutorials/module/pointclouds_01/point_cloud_birdseye/
# ==============================================================================
# SCALE_TO_255
# ==============================================================================
def scale_to_255(a, min, max, dtype=np.uint8):
""" Scales an array of values from specified min, max range to 0-255
Optionally specify the data type of the output (default is uint8)