XimeaCameraGetImage Method (Int32, Boolean) |
Namespace: Accord.Video.Ximea
Exception | Condition |
---|---|
VideoException | An error occurred while communicating with a camera. See error message for additional information. |
NotConnectedException | No camera was opened, so can not access its methods. |
TimeoutException | Time out value reached - no image is available within specified time value. |
If the makeCopy is set to , then the method creates a managed copy of the camera's image, so the managed image stays valid even when the camera is closed. However, setting this parameter to creates a managed image which is just a wrapper around camera's unmanaged image. So if camera is closed and its resources are freed, the managed image becomes no longer valid and accessing it will generate an exception.