-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added skeleton for disparity video stream filtering
- Loading branch information
Jacob Gloudemans
committed
Jan 11, 2019
1 parent
819a47e
commit 985cd4d
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
vision/scripts/obstacle_detection/disparity_noise_filter.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
|
||
def filter_disparity_images(last_frames): | ||
|
||
# For each pixel in the images, compare the value across each of the images | ||
|
||
|
||
# If the values vary too much, sets the pixel value to 0 | ||
|
||
# Otherwise, keep the value the same | ||
|
||
# return filtered image | ||
|
||
|
||
|
||
# Write a ros node that listens to the topic where disparity images are being published | ||
|
||
# Keep a list of the last 'n' frames | ||
|
||
# Loop continuously | ||
|
||
# Each time through the loop, get the latest frame, add it to the list of frames | ||
|
||
# If list is full, remove the oldest frame | ||
|
||
# Call the filtering function | ||
|
||
# Publish the filtered image |