SightLine Applications Command, Control, and Script API  v3.5
List of all members
SLASetDetectionRegionOfInterestParameters_t Struct Reference

Description

Sets the parameters for Moving Target Indication (MTI) Region of Interest(ROI).

typedef struct {
u8 flags;
u16 searchRowUl;
u16 searchColUl;
u16 searchHeight;
u16 searchWidth;
u16 detectRowUl;
u16 detectColUl;
u16 detectHeight;
u16 detectWidth;
u8 cameraIndex;

The search ROI is the area that the MTI algorithms will look for motion in the video stream. The detection ROI is the area of the video in which the MTI algorithms will report detected motion. Having a search area larger then the detection area allows the MTI to report motion as soon as it enters the detection area, whereas having the two areas equal in size reduces the overall processing load. The detect region must be fully contained inside of the search region. If it is not the settings will be ignored.
NOTE: Applied to the Command Camera.
NOTE: Values are in capture image coordinates. If you are setting this up with the mouse from Panel+, first set the display resolution to match the capture resolution and zero video rotation, zoom and pan/tilt, and zero out any chop that has been applied.

Message ID 0x7C

Byte Offset Name Description
4flags
Bit Description
0 0 = Disable debug display, 1 = enable debug display
1 0 = Detection region rectangle (default), 1 = detection region above/below line
2 0 = Ignore detections above line (default), 1 = Ignore detections below line. This option only make sense if bit 1 is also set to 1.
3-7 Reserved
5-6searchRowUlUpper left row of the search region. Default = 0
7-8searchColUlUpper left column of the search region. Default = 0
9-10searchHeightHeight of the search region. Default = 0 (use entire height)
11-12searchWidthWidth of the search region. Default = 0 (use entire width)
13-14detectRowUlUpper left row of the detect region. Default = 0
If flags Bit 1 is set this becomes Left Y point.
15-16detectColUlUpper left column of the detect region. Default = 0
If flags Bit 1 is set this becomes Left X point.
17-18detectHeightHeight of the detect region. Default = 0 (use entire height)
If flags Bit 1 is set this becomes Right Y point.
19-20detectWidthWidth of the detect region. Default = 0 (use entire width).
If flags Bit 1 is set this becomes Right X point.
21cameraIndexCamera Index