Table of Contents

Class PolygonZoneSnapshot

Namespace
VisioForge.Core.Types.VideoProcessing
Assembly
VisioForge.Core.dll

An occupancy snapshot of a single polygon zone after a tracker update.

public sealed class PolygonZoneSnapshot

Inheritance

Inherited Members

Constructors

PolygonZoneSnapshot(string, int[], int[], int[], int[])

Initializes a new instance of the VisioForge.Core.Types.VideoProcessing.PolygonZoneSnapshot class.

public PolygonZoneSnapshot(string zoneId, int[] trackerIds, int[] enteredTrackerIds, int[] exitedTrackerIds, int[] expiredTrackerIds)

Parameters

zoneId string

The zone identifier.

trackerIds int[]

The IDs currently inside the zone.

enteredTrackerIds int[]

The IDs that entered in this update.

exitedTrackerIds int[]

The IDs that exited by movement in this update.

expiredTrackerIds int[]

The IDs that expired while inside in this update.

Properties

CurrentCount

Gets the current number of tracked objects inside the zone. Always equals TrackerIds.Length.

public int CurrentCount { get; }

Property Value

int

EnteredTrackerIds

Gets the tracker IDs that entered the zone in this update. This array is sorted in ascending order and is never null.

public int[] EnteredTrackerIds { get; }

Property Value

int[]

ExitedTrackerIds

Gets the tracker IDs that exited the zone by movement in this update. This array is sorted in ascending order and is never null.

public int[] ExitedTrackerIds { get; }

Property Value

int[]

ExpiredTrackerIds

Gets the tracker IDs that were removed while still inside the zone in this update. This array is sorted in ascending order and is never null.

public int[] ExpiredTrackerIds { get; }

Property Value

int[]

TrackerIds

Gets the tracker IDs currently inside the zone (including retained lost tracks). This array is sorted in ascending order and is never null.

public int[] TrackerIds { get; }

Property Value

int[]

ZoneId

Gets the identifier of the polygon zone.

public string ZoneId { get; }

Property Value

string