Changing functions description to reflect changes

This commit is contained in:
BobLd
2019-12-07 22:49:10 +00:00
parent fd9efb5b5d
commit b69c004548
2 changed files with 3 additions and 12 deletions

View File

@@ -12,8 +12,7 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
internal class ClusteringAlgorithms
{
/// <summary>
/// Algorithm to group elements via transitive closure, using nearest neighbours and maximum distance.
/// https://en.wikipedia.org/wiki/Transitive_closure
/// Algorithm to group elements using nearest neighbours.
/// </summary>
/// <typeparam name="T">Letter, Word, TextLine, etc.</typeparam>
/// <param name="elements">List of elements to group.</param>
@@ -76,8 +75,7 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
}
/// <summary>
/// Algorithm to group elements via transitive closure, using nearest neighbours and maximum distance.
/// https://en.wikipedia.org/wiki/Transitive_closure
/// Algorithm to group elements using nearest neighbours.
/// </summary>
/// <typeparam name="T">Letter, Word, TextLine, etc.</typeparam>
/// <param name="elements">Array of elements to group.</param>
@@ -140,8 +138,7 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
}
/// <summary>
/// Algorithm to group elements via transitive closure, using nearest neighbours and maximum distance.
/// https://en.wikipedia.org/wiki/Transitive_closure
/// Algorithm to group elements using nearest neighbours.
/// </summary>
/// <typeparam name="T">Letter, Word, TextLine, etc.</typeparam>
/// <param name="elements">Array of elements to group.</param>

View File

@@ -207,9 +207,6 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
return finalDistanceMeasure(pointR, wordsWithinAngleBoundDistancePoints[closestWordIndex]);
}
/// <summary>
/// Build lines via transitive closure.
/// </summary>
private static IEnumerable<TextLine> GetLines(List<Word> words, double maxDist, AngleBounds withinLine)
{
TextDirection textDirection = words[0].TextDirection;
@@ -245,9 +242,6 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
}
}
/// <summary>
/// Build blocks via transitive closure.
/// </summary>
private static IEnumerable<TextBlock> GetLinesGroups(TextLine[] lines, double maxDist)
{
/**************************************************************************************************