You are here: Start » AVL.NET » AVS.SegmentImage_Color Method

AVS.SegmentImage_Color Method

Segments an image basing on distance to model colors.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SegmentImage_Color
(
	AvlNet.Image inImage,
	IList<AvlNet.Pixel> inReferenceColors,
	float inMaxDifference,
	float inChromaAmount,
	bool inForceDisjointRegions,
	IList<AvlNet.Region> outRegions
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inReferenceColorsSystem.Collections.Generic.IList<AvlNet.Pixel>Colors to compare pixels to.
inMaxDifferencefloat<0.0f, INF>5.0fMaximal difference between pixel and reference color to be accepted. Default value: 5.0f.
inChromaAmountfloat<0.0f, 1.0f>0.7fProportion of chromatic information in distance computation. Default value: 0.7f.
inForceDisjointRegionsboolForce output regions to be disjoint.
outRegionsSystem.Collections.Generic.IList<AvlNet.Region>Regions of pixels closest to colors.

Function Overrides

See also