25
Spyder2 User’s Manual
03-32-10091-04
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 in the
cag
,
cao
,
gl
,
gla
,
ccf
, and
ccp
commands.
To define a region of interest, use the command:
Syntax:
roi x1 x2
Syntax Elements:
x1
Pixel start number in a range from 1 to sensor pixel count.
Must be an odd number and less than the pixel end number.
x2
Pixel end number in a range from (
x1 + 1)
to sensor pixel
count. Must be an even number and greater than the pixel
start number.
Related Commands
cag
,
cao
,
gl
,
gla
,
ccf
,
ccp
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, the
statistics are generated for the region of interest only. Use this command, or the following
gla
command, to ensure the proper video input range into the processing chain before
executing any pixel calibration commands.
To return a single line of video, use the command:
Syntax:
gl [x1] [x2]
Syntax 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 Min, Max, and Mean statistics
generated at the end of the line 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 Min, Max, and Mean statistics
generated at the end of the line output.
Notes:
•
If you do not specify a pixel range to display, the line
output will display all sensor pixels on screen.
Summary of Contents for Spyder2 S2-1-40 Series
Page 10: ...10 Spyder2 User s Manual 03 32 10091 04 DALSA ...
Page 38: ...38 Spyder2 User s Manual 03 32 10091 04 DALSA ...
Page 44: ...44 Spyder2 User s Manual 03 32 10091 04 DALSA ...
Page 72: ...72 Spyder2 User s Manual 03 32 10091 04 DALSA ...
Page 74: ...74 Spyder2 User s Manual 03 32 10091 04 DALSA ...