Histogram.GetDocumentHistogram 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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntaxpublic int[] GetDocumentHistogram()
Public Function GetDocumentHistogram As Integer()
Return Value
Type:
Int32[] An array containing the number of black and white pixels in a binary image.
ExceptionsException | Condition |
---|
| 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