HistTail

Identifies the largest greyscale value from a specified range of values. For more information, see Hist.

HistTail Inputs

Syntax: HistTail(Structure,[FirstBin],[LastBin],[Color])

Parameter Description

Structure

This argument must reference a spreadsheet cell containing a Hist or ColorHist data structure.

FirstBin

Specifies the first "bin" (0 to 255; default = 0) used to define the histogram. For more information, see What is a Histogram?.

LastBin

Specifies the last "bin" (0 to 255; default = 255) used to define the histogram. For more information, see What is a Histogram?.

Color

Specifies the index of the color component's histogram from a ColorHist data structure (default = 0).

Note: The Color parameter is optional and only available when connected to a color In-Sight vision system, and will be ignored if a Hist structure is referenced in the Structure parameter. When connected to a color vision system, if the Structure parameter references a ColorHist structure (output by an ExtractColorHistogram function), the Color parameter can be used to select the color component. For more information, see ExtractColorHistogram or Color Components of a Pixel.

0 = Red

Specifies the red component from the ColorHist data structure.

1 = Green

Specifies the green component from the ColorHist data structure.

2 = Blue

Specifies the blue component from the ColorHist data structure.

3 = Hue

Specifies the hue component from the ColorHist data structure.

4 = Saturation

Specifies the saturation component from the ColorHist data structure.

5 = Intensity

Specifies the intensity component from the ColorHist data structure.

HistTail Outputs

Returns

A value representing the largest greyscale value, or #ERR if any of the input parameters are invalid.