| Customize Help

Automatic camera detection

To automatically detect whether a camera is connected to your Matrox Orion HD, you must allocate the digitizer for your camera using MdigAlloc() with the AutoDetect.dcf file. Once allocated, connecting a camera to the specified digitizer will automatically change the value of the following MdigInquire() inquire types: M_CAMERA_PRESENT, M_SIZE_X, M_SIZE_Y, M_SIZE_BAND, M_INPUT_MODE, M_SCAN_MODE, and M_GRAB_PERIOD. Disconnecting a camera will change only M_CAMERA_PRESENT; it is only on the reconnection of a camera that the above MdigInquire() inquire types are reset.

An example

The following example demonstrates how to use automatic camera detection with Matrox Orion HD: