SDK CV Pipeline

struct Metavision::FlowFrameGenerationStage : public Metavision::BaseStage

Public Functions

FlowFrameGenerationStage(int width, int height, int fps)

Constructor.

This constructor expects the user to eventually call set_consuming_callback with the stages producing CD and flow events.

Parameters
  • width: Width of the generated frame (in pixels)

  • height: Height of the generated frame (in pixels)

  • fps: The frame rate of the generated sequence of frames

FlowFrameGenerationStage(BaseStage &prev_cd_stage, BaseStage &prev_flow_stage, int width, int height, int fps)

Constructor.

Convenience overload that directly sets the consuming callback

Parameters
  • width: Width of the generated frame

  • height: Height of the generated frame

  • fps: The frame rate of the generated sequence of frames

  • prev_cd_stage: the stage producing CD events to be consumed

  • prev_flow_stage: the stage producing flow events to be consumed

void set_previous_cd_stage(BaseStage &prev_cd_stage)

Sets the previous cd stage producing CD events.

Parameters
  • prev_cd_stage: the stage producing CD events to be consumed

void set_previous_flow_stage(BaseStage &prev_flow_stage)

Sets the previous flow stage producing flow events.

Parameters
  • prev_flow_stage: the stage producing flow events to be consumed