///<summary> Create a capture using the specific camera</summary>
///<param name="camIndex"> The index of the camera to create capture from, starting from 0</param>
public Capture(int camIndex)
{
#if TEST_CAPTURE
#else
_ptr = CvInvoke.cvCreateCameraCapture(camIndex);
if (_ptr == IntPtr.Zero)
{
throw new NullReferenceException(String.Format("Error: Unable to create capture from camera{0}", camIndex));
}
#endif
}