Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lartpang opened this issue Nov 21, 2020 · 3 comments
Open

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

lartpang opened this issue Nov 21, 2020 · 3 comments

Comments

@lartpang
Copy link

 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;这一系列阈值下划分的二值图中,如果使用大于等于,可以保证对于任一阈值都可能存在前景。

@DengPingFan
Copy link
Owner

 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
Copy link
Author

lartpang commented Nov 22, 2020

@DengPingFan 另外推荐我的一个python的实现:smile: https://github.com/lartpang/PySODMetrics

@DengPingFan
Copy link
Owner

非常感谢你的python实现。后面可以采纳一下。另外你可以email发一下微信,我给你拉到群里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants