![]() |
SK91USB3-LX
1.2.0
|
This page details the function of windows (like an ROI) for the cameras. More...
Functions | |
int | SK_SETWINDOW (int CamID, int xStart, int width) |
Defines a Region of Interest (ROI) More... | |
int | SK_ADJWIN (int CamID, unsigned char *pDest, unsigned char *pSrc, bool compress) |
Shifts the ROI to correct pixel address. More... | |
int | SK_GETWINSTART (int CamID) |
Returns the start pixel of the window. More... | |
int | SK_GETWINSTARTFROMCAMERA (int CamID) |
Returns the start pixel of the window direct from camera. More... | |
int | SK_GETWINSIZE (int CamID) |
Returns the size of the window (roi) in pixel. More... | |
int | SK_GETWINSIZEFROMCAMERA (int CamID) |
Returns the size of the window (roi) in pixel direct from camera. More... | |
This page details the function of windows (like an ROI) for the cameras.
int SK_ADJWIN | ( | int | CamID, |
unsigned char * | pDest, | ||
unsigned char * | pSrc, | ||
bool | compress | ||
) |
Shifts the ROI to correct pixel address.
This function shifts a ROI to the pixel address of xStart
(from function SK_SETWINDOW) in a line. The left and right ranges outside the ROI will be filled by 0.
Example for adjusting the window:
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
pDest | destination buffer for the shifted ROI |
pSrc | source buffer of the windowed line scan signal |
compress | true = left bounding false = synchronous to pixel |
int SK_GETWINSIZE | ( | int | CamID | ) |
Returns the size of the window (roi) in pixel.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
int SK_GETWINSIZEFROMCAMERA | ( | int | CamID | ) |
Returns the size of the window (roi) in pixel direct from camera.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
int SK_GETWINSTART | ( | int | CamID | ) |
Returns the start pixel of the window.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
int SK_GETWINSTARTFROMCAMERA | ( | int | CamID | ) |
Returns the start pixel of the window direct from camera.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
int SK_SETWINDOW | ( | int | CamID, |
int | xStart, | ||
int | width | ||
) |
Defines a Region of Interest (ROI)
How to set windows (using SK2048U3PD):
How to set windows (using SK6288U3KOC):
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
xStart | start address of the ROI (divisible by 8) |
width | width of ROI (divisible by 8) |