SDK Calibration Pipeline

class Metavision::BlinkingFrameGeneratorStage : public Metavision::BaseStage

Stage that accumulates events and keeps pixels which were activated with both polarities during the accumulating period, if enough of them are found.

Produces a binary (or grayscale if enable_event_count is set to True) frame representing blinking pixels (0 or 255). If enable_event_count is True, the value is the number of events during the accumulation period.

  • Input : buffer of events : EventBufferPtr

  • Output: timestamped frame (Blinking Chessboard) : FrameData

BaseStage

Public Functions

inline BlinkingFrameGeneratorStage(int width, int height, const Metavision::BlinkingFrameGeneratorAlgorithmConfig &blinking_config, const std::string &output_images_dir_path = "")

Constructor.

Parameters
  • width – Image width

  • height – Image height

  • blinking_config – Blinking frame generator algorithm configuration

  • output_images_dir_path – Output image directory. If equal to “”, images will not be saved.

class Metavision::PatternBlinkerStage : public Metavision::BaseStage

Stage that produces a blinking pattern at a fixed frequency.

  • Input : None

  • Output: timestamped frame (Blinking Pattern) : FrameData

Public Functions

inline PatternBlinkerStage(const std::string &pattern_image_path, int display_height, Metavision::timestamp refresh_period_us)

Construct a new Pattern Blinker Stage object.

Parameters
  • pattern_image_path – Image to blink

  • display_height – Height of blinking window

  • refresh_period_us – Period between showing a blank image and the input image in microseconds