You are here: Start » AVL.NET » Invoke.SegmentImage_Color

Invoke.SegmentImage_Color

Segments an image basing on distance to model colors.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void SegmentImage_Color
(
	Avl.Image inImage,
	Optional<Avl.Region> inRoi,
	List<Avl.Pixel> inReferenceColors,
	float inMaxDifference,
	Optional<List<float>> inDifferenceMultipliers,
	float inChromaAmount,
	bool inForceDisjointRegions,
	List<Avl.Region> outRegions
)

Parameters

Name Type Range Default Description
inImageAvl.ImageInput image.
inRoiAtl.Optional<Avl.Region>Range of pixels to be processed. Default value: atl::NIL.
inReferenceColorsSystem.Collections.Generic.List<Avl.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.
inDifferenceMultipliersAtl.Optional<System.Collections.Generic.List<float>>Scales for maximum differences for each color. Default value: atl::NIL.
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.List<Avl.Region>Regions of pixels closest to colors.

See also