xwjabc / hed

A PyTorch reimplementation of Holistically-Nested Edge Detection
170 stars 42 forks source link

Question #13

Open CNHNLP opened 5 years ago

CNHNLP commented 5 years ago

When we evaluate the result,we need to run the EdgeEvalDir.m,but what's the meaning of maxDist. I am confused about it and there isn't code.Can you explian it or give some papers to explain it? Thanks a lot!

xwjabc commented 5 years ago

Hi, the maxDist is a parameter which controls the maximum tolerance for edge match (default value: 0.0075). This parameter is passed through edgesEvalDir() -> edgesEvalImg() -> correspondPixels(). We do not include the source code of correspondPixels() in our repository, but you can find it in correspondPixels.cc from BSDS500 repo, which calls matchEdgeMaps() in match.cc. At line 74 and 121 in match.cc, you can find if the L2 distance between predicted edge point and ground-truth is no more than maxDist, it will be considered as a matched pair.