17.12.2018 Views

Image Acquisitionand Proces

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Image</strong> Analysis 187<br />

7.4.4 HISTOGRAMS AND HISTOGRAPHS<br />

A histogram can be a very useful tool for determining the intensity distribution of<br />

an image. The formal deÞnition of a histogram is<br />

…a bar graph of a frequency distribution in which the widths of the bars are proportional<br />

to the classes into which the variable has been divided and the heights of the bars are<br />

proportional to the class frequencies.<br />

A more practical explanation is to consider a histogram as a bar chart of intensity<br />

against intensity occurrence, with uniform intensity bandwidths (Figure 7.30).<br />

The Vision Toolkit has two VIs that compute the histogram of an image:<br />

IMAQ Histograph and IMAQ Histogram. IMAQ Histograph returns a cluster<br />

containing the calculated histogram suitable for wiring directly into a front panel<br />

graph. It also returns the histogram’s mean value and standard deviation (Figure<br />

7.31).<br />

FIGURE 7.31 Histograph example — wiring diagram.<br />

FIGURE 7.32 Histogram example.<br />

IMAQ Histogram returns a cluster of data that includes the same information<br />

as IMAQ Histograph, but also contains the raw histogram as a one-dimensional<br />

array, the minimum and maximum values, and the histogram’s area (in pixels)<br />

(Figure 7.32 and Figure 7.33).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!