evlib.vis.view2d¶
2-D visualization of various quantities.
Functions
|
Visualize depth image. |
|
Visualize events with polarity color. |
|
Visualize image. |
|
Visualize optical flow. |
- evlib.vis.view2d.image(image)¶
Visualize image.
- Parameters:
image (Any) – str, np.ndarray, or PIL Image.
- Returns:
PIL Image object
- Return type:
Image.Image
- evlib.vis.view2d.depth(depth)¶
Visualize depth image.
- Parameters:
depth (np.ndarray) – depth image.
- Returns:
PIL Image object, depth
- Return type:
Image.Image
- evlib.vis.view2d.optical_flow(flow_v, flow_h, visualize_color_wheel=True, ord=0.5)¶
Visualize optical flow.
- Parameters:
flow_v (numpy.ndarray) – [H x W], vertical direction.
flow_h (numpy.ndarray) – [H x W], horizontal direction.
visualize_color_wheel (bool) – If True, it also visualizes the color wheel (legend for OF).
file_prefix (Optional[str], optional) – [description]. Defaults to None. If specified, the save location will be save_dir/{prefix}_{unique}.png.
ord (float)
- Returns:
PIL image.
- Return type:
image (PIL.Image)