/// <summary> /// Set the ROI of an image to the bounding box of a blob. /// </summary> /// <param name="img">Image.</param> /// <param name="blob">Blob.</param> public static void SetImageRoItoBlob(IplImage img, CvBlob blob) { if (blob == null) { throw new ArgumentNullException("blob"); } blob.SetImageRoiToBlob(img); }
/// <summary> /// Set the ROI of an image to the bounding box of a blob. /// </summary> /// <param name="img">Image.</param> /// <param name="blob">Blob.</param> public static void SetImageRoItoBlob(IplImage img, CvBlob blob) { if (blob == null) throw new ArgumentNullException("blob"); blob.SetImageRoiToBlob(img); }