CalcCentroid() 공개 메소드

Calculates centroid. Centroid will be returned and stored in the blob structure. (cvCentroid)
public CalcCentroid ( ) : Point2d
리턴 Point2d
예제 #1
0
 /// <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());
 }
예제 #2
0
 /// <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());
 }
예제 #3
0
 /// <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();
 }
예제 #4
0
 /// <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();
 }