Last active
September 17, 2020 13:10
-
-
Save joschuck/19b26aab50e6f302602de6c32488069b to your computer and use it in GitHub Desktop.
Smooth out a depth image or array from lidar measurements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
same problem as keishatsai. Could you help?