
Contents |
Histogram
Histogram
1. imgHistogram c:=rgb;
2. imgHistogram img:=Mat(1) c:=red plot:=0;
3. imgHistogram img:=[Mbook1]Msheet1!Mat(1);
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Input Matrix | img |
Input Image | |
This variable specifies the source image to be manipulated. The default input is the active image. |
| Channel | c |
Input int | |
This variable specifies the channel for which a histogram is to be calculated.
|
| Output | rd |
Output ReportData | |
This variable specifies the output report. |
| Plot | plot |
Input int | |
This variable specifies whether to plot the histogram curves. |
A histogram for a color channel is a function of levels. For each level, it shows how many pixels in the channel have that level.
The imgHistogram function calculates the histogram for any specified channel in the input image. You can use it to analyze the distribution of colors in the image.
For more examples, please refer to XF Script Dialog (press F11).