OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

imgHistogram

Contents

Menu Information

Histogram

Brief Information

Histogram

Command Line Usage

1. imgHistogram c:=rgb;

2. imgHistogram img:=Mat(1) c:=red plot:=0;

3. imgHistogram img:=[Mbook1]Msheet1!Mat(1);

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Matrix img

Input

Image

<active>

This variable specifies the source image to be manipulated. The default input is the active image.

Channel c

Input

int

rgb

This variable specifies the channel for which a histogram is to be calculated.
Option list

  • M:Master
    Master channel
  • R:Red
    Red channel only
  • G:Green
    Green channel only
  • B:Blue
    Blue channel only
  • R:RGB
  • RGB channels separately
Output rd

Output

ReportData

<new>

This variable specifies the output report.

Plot plot

Input

int

1

This variable specifies whether to plot the histogram curves.

Description

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.


Examples

For more examples, please refer to XF Script Dialog (press F11).

Related X-Functions

imgHistcontrast, imgHisteq