# How to Find Performance Ratio (PR)?

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?

• Could you please mark an answer? – Royi Feb 6 at 8:56
{"ft_lang_label":"__label__en","ft_lang_prob":0.9041078,"math_prob":0.9443706,"size":397,"snap":"2020-10-2020-16","text_gpt3_token_len":88,"char_repetition_ratio":0.14503817,"word_repetition_ratio":0.0,"special_character_ratio":0.21158691,"punctuation_ratio":0.05479452,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9923677,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-18T13:15:31Z\",\"WARC-Record-ID\":\"<urn:uuid:fe7eba26-0da0-46e4-be26-7b434d67d6f4>\",\"Content-Length\":\"136087\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:903ef240-20f8-4e61-9447-6ec255d5a0ef>\",\"WARC-Concurrent-To\":\"<urn:uuid:c96c4b01-d9d1-4d27-a8f3-1e5d41c7dae5>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://dsp.stackexchange.com/questions/49247/how-to-find-performance-ratio-pr\",\"WARC-Payload-Digest\":\"sha1:GZL2GJSP6UOFIWE4RLVFSPEYW5P6BPJQ\",\"WARC-Block-Digest\":\"sha1:KN5656CAASTYFXWCGWJYSUJ4MJGA7LX6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875143695.67_warc_CC-MAIN-20200218120100-20200218150100-00495.warc.gz\"}"}