The following Matlab project contains the source code and Matlab examples used for compute an optimal image threshold. computes the minimum error threshold as described in . The image 'img' is expected to have integer values from 0 to 255. 'optimalThreshold' holds the found threshold. 'J' holds the values of the criterion function.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.