Functions | |
boolean | GenerateSoftwareTrigger (long TriggerID) |
Generates a software trigger with the given trigger ID. More... | |
boolean | ImageOffset (ImageRectCommand ImageRectCommand, long *OffsetX, long *OffsetY) |
Some image input devices such as some IEEE1394 cameras support read out of an area of interest (AOI). Using this method you can select the offset of the AOI relative to the sensor's coordinate system. Use the ImageSize method to define the size of the AOI. More... | |
void | ImagePropertyChanged (ImagePropertyChangedReason ReasonForCall, ImagePropertyChangedAnswer *Answer, long Reserved1, long Reserved2) |
Generated when a property of the image is about to change or has been changed. More... | |
boolean | ImageSize (ImageRectCommand ImageRectCommand, long *Width, long *Height) |
Some image input devices such as some IEEE1394 cameras support read out of an area of interest (AOI). Using this method you can select the size of the AOI. Use the ImageOffset method to define the offset of the AOI. More... | |
boolean | SendBinaryCommand (long CommandID, long *CommandParameter, long CommandParameterSize, long *CommandAnswer, long *CommandAnswerSize) |
Sends a binary command directly to the Common Vision Blox driver. More... | |
boolean | SendStringCommand (long CommandID, BSTR CommandParameter, BSTR CommandAnswer, long *CommandAnswerSize) |
Sends a string command directly to the Common Vision Blox driver. More... | |
BSTR | SendStringCommandEx (long CommandID, DcOperation CommandOperation, BSTR CommandParameter) |
Sends a string command directly to the Common Vision Blox driver. More... | |
boolean GenerateSoftwareTrigger | ( | long | TriggerID | ) |
Generates a software trigger with the given trigger ID.
To use the software trigger you need to ensure correct trigger settings for this TriggerID in your frame grabber/camera configuration file.
Please refer to the CVB Driver User Guide of the specific image acquisition device or the the driver hardware manual for valid trigger IDs (trigger input lines).
Then start an acquisition for instance using the Grab property of the Common Vision Image Control.
Calling this method will then generate the trigger and force the ImageSnaped event of the Common Vision Image Control to be fired.
[in] | TriggerID | Specicial trigger ID of the used device. |
TRUE
if software trigger was successful, otherwise FALSE
. boolean ImageOffset | ( | ImageRectCommand | ImageRectCommand, |
long * | OffsetX, | ||
long * | OffsetY | ||
) |
Some image input devices such as some IEEE1394 cameras support read out of an area of interest (AOI). Using this method you can select the offset of the AOI relative to the sensor's coordinate system. Use the ImageSize method to define the size of the AOI.
When setting the offset of the AOI the driver will reduce the size to the closest, lower value supported by the sensor. E.g., if you pass a size of 129, 130 the driver might change it automatically to 128, 128.
Changing the image offset will not result in the generation of a new image which gives you the possiblility to have moving acquisition AOI's in real time.
ßn
This function can also be used to inquire the current settings and to validate a given size.
[in] | ImageRectCommand | Command to be executed. For possible commands refer to ImageRectCommand. This method does not support the IMAGERECT_CMD_SET_AUTODELETE command. |
[out] | OffsetX | Current or new offset in X direction. The actual offset is always returned. |
[out] | OffsetY | Current or new offset in Y direction. The actual offset is always returned. |
TRUE
if was successful, otherwise FALSE
. void ImagePropertyChanged | ( | ImagePropertyChangedReason | ReasonForCall, |
ImagePropertyChangedAnswer * | Answer, | ||
long | Reserved1, | ||
long | Reserved2 | ||
) |
Generated when a property of the image is about to change or has been changed.
[in] | ReasonForCall | Reason why this event is fired. For possible reasons refer to ImagePropertyChangedReason. |
[out] | Answer | Answer that is returned to the driver. For possible answers refer to ImagePropertyChangedAnswer. |
[in] | Reserved1 | Reserved for future use. |
[in] | Reserved2 | Reserved for future use. |
boolean ImageSize | ( | ImageRectCommand | ImageRectCommand, |
long * | Width, | ||
long * | Height | ||
) |
Some image input devices such as some IEEE1394 cameras support read out of an area of interest (AOI). Using this method you can select the size of the AOI. Use the ImageOffset method to define the offset of the AOI.
When setting the AOI the driver will reduce the size to the closest, lower value supported by the sensor. E.g., if you pass a size of 129, 130 the driver might change it automatically to 128, 128.
Setting a new size results in the generation of a new image and a new value of the Image property. Therefore, the ImageUpdated event is invoked. Within this event you have to pass the new value of the Image property to all other controls using the image.
All driver related interfaces are moving to the new image, meaning that the original image will loose it's driver interfaces. If you call the function with the IMAGERECT_CMD_SET_AUTODELETE command the orginal image is automatically released whereas the IMAGERECT_CMD_SET will not release the original image meaning that you have to release it manually.
This function can also be used to inquire the current settings and to validate a given size. To inquire the maximum size supported by the sensor call ImageSize with the IMAGERECT_CMD_VALIDATE and pass 0xFFFF as width/height to the function.
[in] | ImageRectCommand | Command to be executed. For possible commands refer to ImageRectCommand. |
[out] | Width | Current or new widht. The actual width is always returned. |
[out] | Height | Current or new height. The actual height is always returned. |
TRUE
if was successful, otherwise FALSE
. boolean SendBinaryCommand | ( | long | CommandID, |
long * | CommandParameter, | ||
long | CommandParameterSize, | ||
long * | CommandAnswer, | ||
long * | CommandAnswerSize | ||
) |
Sends a binary command directly to the Common Vision Blox driver.
Commands are driver dependent. A binary command is defined by its ID, its parameter (a pointer to a binary buffer) and the size of the parameter which are passed to the function.
CommandAnswer and CommandAnswerSize are returned values indicating the answer to the command in binary form and the lenght of this binary data. To determine the size of an answer string for a given command pass a NULL
string in the CommandAnswer argument. The size needed for the command is then given in the CommandAnswerSize argument.
Refer to the CVB Driver User Guide for yur image acquisition device to get a list of commands and possible parameters.
[in] | CommandID | ID of the command to be called. |
[in] | CommandParameter | Pointer to the buffer to the command parameter. |
[in] | CommandParameterSize | Size of the CommandParameter buffer. |
[out] | CommandAnswer | Buffer to the command answer. The driver will fill this buffer with the answer. Pass a NULL pointer to retrieve the size that is needed for the answer. |
[out] | CommandAnswerSize | Size of the CommandAnswer buffer. The driver will return the size that was needed for the answer. |
TRUE
if was successful, otherwise FALSE
. boolean SendStringCommand | ( | long | CommandID, |
BSTR | CommandParameter, | ||
BSTR | CommandAnswer, | ||
long * | CommandAnswerSize | ||
) |
Sends a string command directly to the Common Vision Blox driver.
Commands are driver dependent. A string command is defined by its ID and its parameter string which are passed to the function. To determine the size of an answer string for a given command pass a NULL
string in the CommandAnswer argument.
Refer to the CVB Driver User Guide for yur image acquisition device to get a list of commands and possible parameters.
[in] | CommandID | ID of the command to be called. |
[in] | CommandParameter | Pointer to the string containing the command parameters. |
[out] | CommandAnswer | Pointer to the string containing the command answer. The driver will fill this string with the answer. Pass NULL to retrieve the size that is needed for the answer. |
[out] | CommandAnswerSize | Size of the CommandAnswer string. The driver will return the size that was needed for the answer. |
TRUE
if was successful, otherwise FALSE
. BSTR SendStringCommandEx | ( | long | CommandID, |
DcOperation | CommandOperation, | ||
BSTR | CommandParameter | ||
) |
Sends a string command directly to the Common Vision Blox driver.
Commands are driver dependent. A binary command is defined by its ID, the CommandOperation (get, set) and its parameter string which is passed to the function.
The function retrieves the size of the string and returns the answer string itself.
Refer to the CVB Driver User Guide for yur image acquisition device to get a list of commands and possible parameters. Replaces the SendStringCommand method.
[in] | CommandID | ID of the command to be called. |
[in] | CommandOperation | Command Operation. For possible commands refer to DcOperation. |
[in] | CommandParameter | Pointer to the string containing the command parameters. |