Skip to content

SaigeRoiInfo

  • #include <SaigeVisionAPI.h>

Structure containing ROI information. Composed of the ROI mode and corresponding parameters, along with common blind mask information.

See also: SaigeModelInfo

Public Attributes

Type Name
char[ ] roiMode
This indicates whether the ROI is in simple mode or advanced mode.
double left
(simple) Ratio of the left coordinate of the ROI relative to the image width.
double top
(simple) Ratio of the top coordinate of the ROI relative to the image height.
double right
(simple) Ratio of the right coordinate of the ROI relative to the image width.
double bottom
(simple) Ratio of the bottom coordinate of the ROI relative to the image height.
int intensityMin
(advanced) intensityMin
int intensityMax
(advanced) intensityMax
int expansion
(advanced) expansion
bool inversion
(advanced) inversion
double offsetLeft
(advanced) offsetLeft
double offsetRight
(advanced) offsetRight
double offsetTop
(advanced) offsetTop
double offsetBottom
(advanced) offsetBottom
unsigned char * blindMask
Blind mask indicating pixels where a blind is applied (1) or not applied (0).
int blindMaskWidth
Width of the blind mask.
int blindMaskHeight
Height of the blind mask.

Public Attributes Documentation

roiMode

This indicates whether the ROI is in simple mode or advanced mode.

char[] roiMode;

  • simple mode
  • advanced mode

left

(simple) Ratio of the left coordinate of the ROI relative to the image width.

double left;

top

(simple) Ratio of the top coordinate of the ROI relative to the image height.

double top;

(simple) Ratio of the right coordinate of the ROI relative to the image width.

double right;

bottom

(simple) Ratio of the bottom coordinate of the ROI relative to the image height.

double bottom;

intensityMin

(advanced) intensityMin

int intensityMin;

intensityMax

(advanced) intensityMax

int intensityMax;

expansion

(advanced) expansion

int expansion;

inversion

(advanced) inversion

bool inversion;

offsetLeft

(advanced) offsetLeft

double offsetLeft;

offsetRight

(advanced) offsetRight

double offsetRight;

offsetTop

(advanced) offsetTop

double offsetTop;

offsetBottom

(advanced) offsetBottom

double offsetBottom;

blindMask

Blind mask indicating pixels where a blind is applied (1) or not applied (0).

unsigned char * blindMask;

This information is only available for models with ROI applied. If ROI is not applied, a null pointer is provided.

blindMaskWidth

Width of the blind mask.

int blindMaskWidth;

blindMaskHeight

Height of the blind mask.

int blindMaskHeight;