SDK Calibration Configs

struct BlinkingFrameGeneratorAlgorithmConfig

Structure to instantiate a Blinking Detector configuration.

Public Functions

inline BlinkingFrameGeneratorAlgorithmConfig(double accumulation_time, int min_num_blinking_pixels = 100, double blinking_pixels_ratios_on = 0.15, double blinking_pixels_ratios_off = 0.15, int median_blur_radius = 1, bool enable_event_count = false)

Constructor.

Parameters
  • accumulation_time – Window of time during which events are considered to detect if a pixel is “blinking”

  • min_num_blinking_pixels – Minimum number of pixels needed to be detected before outputting a frame

  • blinking_pixels_ratios_on – The acceptable ratio of pixels that received only positive events over the number of pixels that received both during the accumulation window

  • blinking_pixels_ratios_off – The acceptable ratio of pixels that received only negative events over the number of pixels that received both during the accumulation window

  • median_blur_radius – Radius of the median blur applied on the mask of positive and negative pixels. a negative value disables the median blur. (diameter = 1 + 2*radius)

  • enable_event_count – Enable counting events instead of generating a binary mask.

Public Members

unsigned int median_blur_diameter_

Diameter of the median blur applied on the mask of positive and negative pixels (diameter = 1 + 2*radius) a zero value disables the median blur.

struct DftHighFreqScorerAlgorithmConfig

Structure to instantiate a DftHighFreqScorerAlgorithm configuration.

Public Functions

inline DftHighFreqScorerAlgorithmConfig(timestamp refresh_period_us = 1e4, bool use_inverted_gray = false, bool speed_up = false, double high_pass_filter_dft_rows_ratio = 1.0 / 8)

Constructor.

Parameters
  • refresh_period_us – Time period between two consecutive process (Skip the blinking frames that are too close in time to the last one processed)

  • use_inverted_gray – Invert the gray levels so that white becomes black (and conversely) If true, map linearly 0 to 255 and 255 to 0; if false, keep the pixel intensity.

  • speed_up – Skip the process if the frame hasn’t changed

  • high_pass_filter_dft_rows_ratio – Ratio of the image’s height determining the radius for the High Pass Filter on the DFT (Ex: if ratio = 1/8 and (width,height) = (640,480), then radius = 480/8 = 60 for the filter)