24 Spyder2 User’s Manual
03-032-10091-06 Teledyne DALSA
3.10 Setting a Region of Interest
The roi command sets the pixel range used to collect the end of line statistic and sets the
region of pixels used i n the
cag, cao, gl, gla, ccf, and ccp commands.
To define a region of interest, use the command:
Sy n tax:
roi x1 x2
Sy ntax Elements:
x1
Pi xel star t number in a r ange fr om 1 to sensor pi xel count.
Must be an odd number and less than the pixel end number.
x2
Pixel end number in a r ange from (x1 + 1) to sensor pixel
count. M ust be an even number and gr eater than the pixel
start number.
Rel ated Commands
,
,
,
,
,
Example:
roi 10 50
3.11 Returning Video Information
The camera’s microcontroller has the ability to read video data. This functionality can be
used to verify camera operation and to perform basic testing without having to connect
the camera to a frame grabber. This information is also used for collecting line statistics
for calibrating the camera.
Returning a Single Line of Video
The gl command returns a complete line of video (without digital processing or test
pattern) displaying one pixel value after another. It also displays the minimum,
maximum, and mean value of the line sampled. If a region of interest has been set, t he
statistics are generated for the region of interest only. Use this command, or the following
gla command, to ensure the pr oper v ideo i nput range into the processing chain befor e
executing any pixel calibration commands.
To return a single line of video, use the command:
Sy n t ax :
gl [x1] [x2]
Sy ntax Elements:
[x1]
Optional parameter. This sets the start pixel to display on
screen. Allowable range is 1 to sensor pixel count. This
parameter does not affect the M in, M ax, and M ean statistics
generated at the end of the l i ne output.
[x2]
Optional parameter. This sets the end pixel to display on
screen. Allowable range is (x1 + 1) to sensor pixel count. This
parameter does not affect the M in, M ax, and M ean statistics
generated at the end of the line output.
N otes:
• If you do not specify a pixel range to display, the line
output will display all sensor pixels on screen.
• If a region of inter est has been set using the