You are here: Start » AVL.NET » AVL.SplitRegionIntoExactlyNCharacters

AVL.SplitRegionIntoExactlyNCharacters

Splits the input region into a fixed-size array of regions corresponding to individual characters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SplitRegionIntoExactlyNCharacters
(
	AvlNet.Region inRegion,
	int inCharacterCount,
	int inCharacterSpacing,
	float inProjectionSmooth,
	out AvlNet.Region[] outRegions,
	out AvlNet.Region[] diagClasses,
	out AvlNet.Profile diagProjection
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionRegion which contains characters.
inCharacterCountint<1, INF>Character count in provided region.
inCharacterSpacingint<0, INF>Spacing size between characters.
inProjectionSmoothfloat<0.0f, INF>1.0fProjection smoothing value used to remove noises from character region. Default value: 1.0f.
outRegionsAvlNet.Region[]Output array of regions containing separated characters.
diagClassesAvlNet.Region[]Regions that contain location of split characters.
diagProjectionAvlNet.ProfileProfile of region projection used to distinguish characters.

Errors

Error type Description
DomainError Value of inCharacterCount is greater than inRegion frame width.
DomainError Value of inCharactersSpacing is greater than single character width.

See also