evutils.vis.reconstructor.metavision#

Classes#

Metavision_Reconstructor

Reconstructor using the Metavision model

Module Contents#

class evutils.vis.reconstructor.metavision.Metavision_Reconstructor(device, height, width, args)#

Bases: evutils.vis.reconstructor._base.Reconstructor

digraph inheritance6998ef9643 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "Metavision_Reconstructor" [URL="#evutils.vis.reconstructor.metavision.Metavision_Reconstructor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Reconstructor using the Metavision model"]; "Reconstructor" -> "Metavision_Reconstructor" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Reconstructor" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Base class for reconstructing frames from events"]; }

Reconstructor using the Metavision model

Parameters:
  • height (int) – Height of the frame

  • width (int) – Width of the frame

  • args (dict, optional) – Additional arguments for the Metavision reconstructor, by default {}

model#
gen_frame(e)#

Reconstruct a frame from events

Parameters:

events (np.ndarray) – Array of events in the Events format

Returns:

A numpy array with the frame (height, width, channels)

Return type:

np.ndarray