Performing a Histogram
Table of Contents
Description
The histogram of a gray-scale image is the quantitative distribution of pixels as a function of gray-level value. Color images can be represented by three histograms, one for each of the primary (that is, HSL) components.
Common Applications
Histograms are useful for the following applications:
- Image equalization (contrast enhancement)
- Choosing thresholds for use in identifying particles (blobs) in an image
What To Expect

This histogram suggests that there might be two types of dark particles in the image against a light background. Choosing threshold values between the peaks would allow you to separate the particles for further analysis.
Related Links:
IMAQ Vision User Manual
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
