# HistThresh

Computes an optimum binary threshold by taking the normalized correlation between the ExtractHistogram region and all possible binary re-quantization, to locate the threshold level that maximizes similarity.

Inputs

Parameter | Description
Structure | This argument must reference a spreadsheet cell containing a Histogram or ColorHist data structure.
FirstBin | Specifies the first "bin" (0 to 255; default = 0) used to define the Histogram.
LastBin | Specifies the last "bin" (0 to 255; default = 255) used to define the Histogram.

Outputs

Returns | A value representing the optimum binary threshold, or #ERR if any of the input parameters are invalid.