evlib.vis.view2d

2-D visualization of various quantities.

Functions

depth(depth)

Visualize depth image.

events(events, image_shape)

Visualize events with polarity color.

image(image)

Visualize image.

optical_flow(flow_v, flow_h[, ...])

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)

evlib.vis.view2d.events(events, image_shape)

Visualize events with polarity color.

Parameters:
  • events (np.ndarray) – _description_

  • image_shape (tuple) – _description_

Returns:

_description_

Return type:

_type_