/// <summary> /// Grab a new image, rectifies it and computes the /// disparity map and optionally the depth map. /// The grabbing function is typically called in the main loop. /// </summary> /// <param name="sensingMode">defines the type of disparity map, more info : SENSING_MODE definition</param> /// <returns>the function returns false if no problem was encountered, /// true otherwise.</returns> public sl.ERROR_CODE Grab(SENSING_MODE sensingMode = SENSING_MODE.FILL, bool computeDepth = true, REFERENCE_FRAME referenceFrame = REFERENCE_FRAME.CAMERA) { AssertCameraIsReady(); sl.ERROR_CODE error = sl.ERROR_CODE.FAILURE; error = (sl.ERROR_CODE)dllz_grab((int)sensingMode, Convert.ToInt32(computeDepth), (int)referenceFrame); return error; }
/// <summary> /// The function grabs a new image, rectifies it and computes the ///disparity map and optionally the depth map. ///The grabbing function is typically called in the main loop. /// </summary> /// <param name="sensingMode">defines the type of disparity map, more info : SENSING_MODE definition</param> /// <returns>the function returns false if no problem was encountered, /// true otherwise.</returns> public int Grab(SENSING_MODE sensingMode = SENSING_MODE.STANDARD) { AssertCameraIsReady(); return dllz_grab((int)sensingMode, Convert.ToInt32(true), Convert.ToInt32(true)); }