mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
Changing functions description to reflect changes
This commit is contained in:
@@ -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>
|
||||
|
@@ -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)
|
||||
{
|
||||
/**************************************************************************************************
|
||||
|
Reference in New Issue
Block a user