Skip to main content

LineGroupToIntervalsParameters

LineGroupToIntervalsParameters

Parameters for converting line group presence to digital intervals. More…

#include <line_group_to_intervals.hpp>

Inherits from TransformParametersBase

Public Attributes

Name
EntityGroupManager * group_manager
Pointer to the EntityGroupManager for group lookups.
GroupId target_group_id
The GroupId to track across frames.
bool track_presence
If true, create intervals where group is PRESENT; if false, where ABSENT.
int min_interval_length
Minimum number of consecutive frames to form an interval.
int merge_gap_threshold
If true, merge intervals separated by gaps smaller than this value.

Additional inherited members

Public Functions inherited from TransformParametersBase

Name
virtual ~TransformParametersBase() =default

Detailed Description

struct LineGroupToIntervalsParameters;

Parameters for converting line group presence to digital intervals.

This transformation analyzes LineData to determine which TimeFrameIndex values contain lines that are members of a specified group. It then creates a DigitalIntervalSeries representing continuous sequences of frames where the group is either present or absent.

Use cases:

  • Track when specific whiskers (groups) are detected across frames
  • Identify gaps in tracking for quality control
  • Create binary signals for correlation analysis with other time series data

Public Attributes Documentation

variable group_manager

EntityGroupManager * group_manager = nullptr;

Pointer to the EntityGroupManager for group lookups.

This is required to query which entities belong to the target group. Must be set before execution.

variable target_group_id

GroupId target_group_id = 0;

The GroupId to track across frames.

The transformation will check each TimeFrameIndex for lines that are members of this group.

variable track_presence

bool track_presence = true;

If true, create intervals where group is PRESENT; if false, where ABSENT.

  • true (default): Output intervals represent frames containing group members
  • false: Output intervals represent frames WITHOUT group members (gaps)

variable min_interval_length

int min_interval_length = 1;

Minimum number of consecutive frames to form an interval.

Intervals shorter than this will be filtered out. Useful for removing noise or brief detection artifacts. Default: 1 (no filtering)

variable merge_gap_threshold

int merge_gap_threshold = 1;

If true, merge intervals separated by gaps smaller than this value.

Set to > 1 to bridge small gaps in detection. For example, if set to 3, intervals separated by 1-2 frames will be merged into a single interval. Default: 1 (no merging)


Updated on 2026-11-13 at 20:25:39 +0000