Skip to content
Snippets Groups Projects
Commit 598329a3 authored by Vincent POLLET's avatar Vincent POLLET
Browse files

Update README to remove stereo related stuff

parent b6e90c65
Branches
Tags
No related merge requests found
Pipeline #51773 passed
......@@ -51,23 +51,15 @@ Here is an example of how to use the package to load data recorded with 3 differ
f = StreamFile(input_example.h5", face_streams.json", face_calibration.json)
# Define processing pipeline by chaining streams:
# First define the streams to load the data from the file (color, left and right), and align them using adjust
# First define the streams to load the data from the file (color, left and right), and add some processing
color = Stream("color", f)
nir_left = Stream("nir_left_stereo", f).adjust(color)
nir_right = Stream("nir_right_stereo", f).adjust(color)
# Define the reprojection operation through the stereo and reproject filters
map_3d = nir_left.stereo(nir_right)
# get the depth map, map it to a color image for visualization
depth = map_3d.select(channel=2).colormap(colormap="jet")
# Define the reprojection stream
rep_color = color.reproject(nir_left, nir_right, map_3d)
nir_left = Stream("nir_left_stereo", f).adjust(color).normalize()
nir_right = Stream("nir_right_stereo", f).adjust(color).normalize()
all_swir = nir_left.stack(nir_right)
# Now that the pipeline is defined, the processed data can be accessed as if indexing in a numpy array:
rep_color[0] # Loads data and apply processing to provide the first frame of the reprojected stream.
rep_color[2:10] # Loads several frames, etc...
all_streams[0] # Loads data and apply processing to provide the first frame of the reprojected stream.
all_streams[2:10] # Loads several frames, etc...
Contact
......
import numpy as np
import cv2 as cv
def rotate_data(data, angle):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment