logo
Loading...

IOU範例程式碼中,為什麼在計算 inter_area 和 bbox 的交集時需要 + 1 - Cupoy

請問為什麼在計算 inter_area 和 bbox 的交集時需要 + 1 呢

cvdl-1,cvdl-1-d25

IOU範例程式碼中,為什麼在計算 inter_area 和 bbox 的交集時需要 + 1

2020/01/09 下午 05:08
電腦視覺深度學習討論版
北科專題
觀看數:9
回答數:2
收藏數:0
cvdl-1
cvdl-1-d25

請問為什麼在計算 inter_area 和 bbox 的交集時需要 + 1 呢

回答列表

  • 2020/01/09 下午 05:32
    周乃森
    贊同數:1
    不贊同數:0
    留言數:0

    之前查過是要當作像素來看而非距離

    The actual reason of adding 1 is because xB, xA both represent pixel  coordinates. Suppose you have 6 pixels, the coordinates are from 0 to 5.  When you try to calculate the span of these 6 pixels, it should be  (5-0+1) = 6, there you have the extra 1.

  • 2020/01/09 下午 10:17
    楊哲寧
    贊同數:0
    不贊同數:0
    留言數:0

    是的!感謝周同學幫忙回覆