/// <summary> /// Calculates centroid. /// Centroid will be returned and stored in the blob structure. (cvCentroid) /// </summary> /// <param name="blob">Blob whose centroid will be calculated.</param> /// <returns>Centroid.</returns> public static Point2d CalcCentroid(CvBlob blob) { if (blob == null) { throw new ArgumentNullException(nameof(blob)); } return(blob.CalcCentroid()); }
/// <summary> /// Calculates centroid. /// Centroid will be returned and stored in the blob structure. (cvCentroid) /// </summary> /// <param name="blob">Blob whose centroid will be calculated.</param> /// <returns>Centroid.</returns> public static CvPoint2D64f CalcCentroid(CvBlob blob) { if (blob == null) { throw new ArgumentNullException("blob"); } return(blob.CalcCentroid()); }
/// <summary> /// Calculates centroid. /// Centroid will be returned and stored in the blob structure. (cvCentroid) /// </summary> /// <param name="blob">Blob whose centroid will be calculated.</param> /// <returns>Centroid.</returns> public static Point2d CalcCentroid(CvBlob blob) { if (blob == null) throw new ArgumentNullException(nameof(blob)); return blob.CalcCentroid(); }
/// <summary> /// Calculates centroid. /// Centroid will be returned and stored in the blob structure. (cvCentroid) /// </summary> /// <param name="blob">Blob whose centroid will be calculated.</param> /// <returns>Centroid.</returns> public static CvPoint2D64f CalcCentroid(CvBlob blob) { if (blob == null) throw new ArgumentNullException("blob"); return blob.CalcCentroid(); }