Click or drag to resize

HistogramGetDocumentHistogram Method

Returns a two element array containing the number of black and white pixels in a binary image.

Namespace:  Atalasoft.Imaging.ImageProcessing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public int[] GetDocumentHistogram()

Return Value

Type: Int32

[Missing <returns> documentation for "M:Atalasoft.Imaging.ImageProcessing.Histogram.GetDocumentHistogram"]

Exceptions
ExceptionCondition
Thrown if the image pixelformat is other than Pixel1bppIndexed.
Thrown if the image is null.
Thrown is the current license is not DotImage Document Imaging.
Remarks
In a typical binary image, the first pixel value is white, and second is black (known as MinIsWhite). Occassionally this is swapped. Check the palette index color value to be certain.
See Also