2.15.6 cvhistogram


Menu Information

Image: Grayscale Histogram

Brief Information

Generate pixel intensity distribution in a new worksheet

Additional Information

Minimum Origin Version Required: 2022b

Command Line Usage

1. cvhistogram skip:="0 255";

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

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

Input

ImageLayer

<active>
Specify the Image layer to convert. Only gray scale image is allowed.
Output Sheet ow

Output

Worksheet

<new>
Specify the output worksheet.
Values to Ignore skip

Input

string

Specify the pixel value(s) to ignore. Values are separated by space. Missing value will be ignore by default.

Description

This X-Function is added for GeoTIF image processing. It is used to generate pixel intensity distribution of a gray-scale image to a new worksheet. You can enter a series of pixel values separated in space to be ignored during the frequency count. Note that missing values will be ignored by default.

Algorithm

The computation uses function from OpenCV Main API. Please refer to the OpenCV Main API Help file, Version 2.4.11.0 and read imgproc. Image Processing topic.


Related X-Functions

cvgraymax,cv2col, cv2Mat