Background threshold's value.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: (


public Color BackgroundThreshold { get; set; }


The property sets threshold value for distinguishing between background pixel and objects' pixels. All pixel with values less or equal to this property are treated as background, but pixels with higher values are treated as objects' pixels.

Note:In the case of colour images a pixel is treated as objects' pixel if any of its RGB values are higher than corresponding values of this threshold.

Note:For processing grayscale image, set the property with all RGB components eqaul.

Default value is set to (0, 0, 0) - black colour.

See Also