Specifications

sharpVISION™ Camera
sharpVISION VISION SDK
101
7.4.3. IdtSvAcquire
[nResult, image] = sharpML (‘IdtSvAcquire’, nCameraId)
Inputs
nCameraId
Specifies a valid camera ID
Outputs
image
Specifies the array where the acquired image is stored
nResult
Specifies the return error code of the function (0 if the function is successful, otherwise not 0)
Remarks
It grabs an image (or two) from the camera. The image grab is synchronous and the function
exits when the frame has been grabbed or a time out occurs. If the camera mode is set to
double exposure, two frames are acquired and the function outputs two image buffers
(arrays), otherwise only the first is valid. The array dimension depends on the image size and
pixel depth: if the pixel depth is 8, the array is an ‘unsigned char’ array; if the pixel depth is
10, the array is an ‘unsigned short’ array.
See also: