Declaration: DichotomizeMatrix (var Data: TDouble2DArray; Thresh, TargetLow, TargetHigh: double): integer;
The function DichotomizeMatrix applies the threshold Thresh to the data in the two-dimensional array Data. If the value of a cell is less than Thresh then the cell value is replaced by the value TargetLow otherwise the cell value is replaced by TargetHigh.

The function returns the number of cells which had values greater than or equal to Thresh.

Last Update: 2017-Mär-15