Table of Contents

Property NeighborhoodRadius

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

NeighborhoodRadius

Gets or sets the dilation radius used to detect whether a small component is close to a larger text component. Small components within this distance of a text-sized component are preserved (they are likely diacritics, dots, or punctuation).

public int NeighborhoodRadius { get; set; }

Property Value

int

Neighborhood search radius in pixels, or 0 for automatic.

Remarks

When set to 0 (the default), the radius is computed automatically from the image resolution: max(5, DPI / 30). At 300 DPI this gives 10 pixels (~0.85 mm), which comfortably covers the gap between diacritics and their base characters.

Share