You are here: Start » AVL.NET » 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 | |
|---|---|---|---|---|---|
![]()  | inImage | Avl.Image | Input image. | ||
![]()  | inRoi | Atl.Optional<Avl.Region> | Range of pixels to be processed. Default value: atl::NIL. | ||
![]()  | inReferenceColors | System.Collections.Generic.List<Avl.Pixel> | Colors to compare pixels to. | ||
![]()  | inMaxDifference | float | <0.0f, INF> | 5.0f | Maximal difference between pixel and reference color to be accepted. Default value: 5.0f. | 
![]()  | inDifferenceMultipliers | Atl.Optional<System.Collections.Generic.List<float>> | Scales for maximum differences for each color. Default value: atl::NIL. | ||
![]()  | inChromaAmount | float | <0.0f, 1.0f> | 0.7f | Proportion of chromatic information in distance computation. Default value: 0.7f. | 
![]()  | inForceDisjointRegions | bool | Force output regions to be disjoint. | ||
![]()  | outRegions | System.Collections.Generic.List<Avl.Region> | Regions of pixels closest to colors. | 


