Shape Context Algorithm

wiki鏈接:https://en.wikipedia.org/wiki/Shape_context
論文link:https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/shape/belongie-pami02.pdf
代碼實現(xiàn):https://github.com/tongxyh/shape-context

Shape Context顧名思義,是一種根據(jù)圖形形狀進(jìn)行檢測識別的算法
它的核心思想是:
選取圖形形狀輪廓中一定數(shù)量的點(diǎn),通過計算每個點(diǎn)的周圍點(diǎn)到該點(diǎn)的角度和距離來構(gòu)建這個點(diǎn)對應(yīng)的周圍環(huán)境(context)矩陣,通過對不同圖像之間的矩陣匹配度,來判斷兩幅圖像是否擁有同樣的形狀

具體實現(xiàn)分為以下幾個步驟:

Step 1: Finding a list of points on shape edges

The approach assumes that the shape of an object is essentially captured by a finite subset of the points on the internal or external contours on the object.
These can be simply obtained using the Canny edge detector and picking a random set of points from the edges. Note that these points need not and in general do not correspond to key-points such as maxima of curvature or inflection points. It is preferable to sample the shape with roughly uniform spacing(it helps get better matching accuracy), though it is not critical.

step 2: Computing the shape context

This step is described in detail in the Theory section

step 3: Computing the cost matrix
step 4: Finding the matching that minimizes total cost

(未完待續(xù))

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • 在xib里,拖一個UIView到UITableView中作為tableHeaderView:用 xib 創(chuàng)建一個 ...
    黃小夢閱讀 4,024評論 5 5
  • 偶遇《點(diǎn)滴心靈》,剛開始只是想過度些時間,沒想到的是除了“驚艷”再無其他。一下子愛死了這個搞怪又溫暖的大叔,陽...
    刺猬貓閱讀 246評論 0 0
  • 這張照片是專業(yè)從事攝影的侄兒所拍,為了哥們的婚禮他不遠(yuǎn)千里背回了全套器材,路過我的中轉(zhuǎn)站特意提供了至...
    妙計菩提閱讀 322評論 0 2
  • 0,收入210元
    鄭大膽31閱讀 170評論 0 0
  • 現(xiàn)在,很多公司的業(yè)務(wù)都是以項目的形式來開展的。雖然,公司仍然存在很多職能部門,但是公司通過職能部門來聯(lián)合完成項目工...
    職場有什么好說閱讀 7,858評論 0 0