SDK CV Pipeline

struct Metavision::FlowFrameGenerationStage : public Metavision::BaseStage

Public Functions

inline 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

inline 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

inline void set_previous_cd_stage(BaseStage &prev_cd_stage)

Sets the previous cd stage producing CD events.

Parameters

prev_cd_stage – Stage producing CD events to be consumed

inline void set_previous_flow_stage(BaseStage &prev_flow_stage)

Sets the previous flow stage producing flow events.

Parameters

prev_flow_stage – Stage producing flow events to be consumed