If we have one image from BSD (The Berkeley Segmentation Dataset and Benchmark) and for this images Ground truth, how to calculate PR?

PR is the ratio of true to false edges and can be calculated by the formula:

PR = True Edges (Edge pixels identified as Edges)/False Edges (Non edge pixels identified as edges) + (Edge pixels identified as Non-Edge pixels)

How to find those arguments in formula?

  • $\begingroup$ Could you please mark an answer? $\endgroup$ – Royi Feb 6 at 8:56

When you segment an image you have boundaries between segments.
Those boundary pixels (Just between 2 different segments) are the edge pixels above.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.