Ejemplo n.º 1
0
 /// <summary>
 /// Compute the shape distance between two shapes defined by its contours.
 /// </summary>
 /// <param name="contour1">Contour defining first shape</param>
 /// <param name="contour2">Contour defining second shape</param>
 /// <returns>The shape distance between two shapes defined by its contours.</returns>
 public float ComputeDistance(IInputArray contour1, IInputArray contour2)
 {
     using (InputArray iaContour1 = contour1.GetInputArray())
         using (InputArray iaContour2 = contour2.GetInputArray())
             return(ShapeInvoke.cveShapeDistanceExtractorComputeDistance(_shapeDistanceExtractorPtr, iaContour1, iaContour2));
 }