CODToolbox icon indicating copy to clipboard operation
CODToolbox copied to clipboard

建议保持阈值选择的一致性

Open lartpang opened this issue 3 years ago • 3 comments

https://github.com/DengPingFan/CODToolbox/blob/910358910c7824a4237b0ea689ac9d19d1958d11/Onekey_Evaluation_Code/OnekeyEvaluationCode/main.m#L102

 Bi_sal(sal>threshold)=1;

建议和 https://github.com/DengPingFan/CODToolbox/blob/master/Onekey_Evaluation_Code/OnekeyEvaluationCode/Fmeasure_calu.m#L9 中的代码保持一致。

Label3( sMap>=threshold ) = 1;

这样有利于统一的代码实现。

另外,这样的设定也更加合理,因为对于Thresholds = 1:-1/255:0;这一系列阈值下划分的二值图中,如果使用大于等于,可以保证对于任一阈值都可能存在前景。

lartpang avatar Nov 21 '20 09:11 lartpang