Menu

#1 Min/Max threshold determination is ignored in setThreshold()

open
nobody
None
5
2009-12-23
2009-12-23
Anonymous
No

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.

Discussion


Log in to post a comment.