Min/Max threshold determination is ignored in setThreshold()
Status: Beta
Brought to you by:
ecostanza
For an example, see fiducialrecognition.cpp lines 1184, 1225, etc. The define sets the thresholdHere value to be equal to the pre-calculated Otsu threshold, but there is much needless calculation to find an alternative value. If the code is in its final state, a better approach would be to fill the entire image with the Otsu threshold first (using a memcpy), and then just call setSubClustersMinMax(). It would simplify the function greatly.