Skip to content

Instantly share code, notes, and snippets.

@joschuck
Last active September 17, 2020 13:10
Show Gist options
  • Save joschuck/19b26aab50e6f302602de6c32488069b to your computer and use it in GitHub Desktop.
Save joschuck/19b26aab50e6f302602de6c32488069b to your computer and use it in GitHub Desktop.
Smooth out a depth image or array from lidar measurements
from scipy import ndimage
from PIL import Image
[...]
lidar_image = np.array(Image.open(filename))
smooth_lidar_image = Image.fromarray(ndimage.filters.maximum_filter(lidar_image, (5,5)), mode='I')
@oyhq0708
Copy link

same problem as keishatsai. Could you help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment