Opencv Edge extraction

主宰稳场 提交于 2019-11-30 15:39:54
user101375

I found the answer in this paper: Efficient Use of MPEG-7 Edge Histogram Descriptor by Won.

My goal was to find following edges:

Won divide each Image Block into 4 parts, calculate the average gray level in each of them and use the following coefficients:

We use this coefficients as follows and get 5 values:

Using thresholding we estimate each type of the edge:

program SetEdgeType(max, m_nd, m_h, m_v, m_d_45, m_d_135)
{
if (max < TEdge) then EdgeHisto(0)++
else
{
 if (m_nd > T0)    then EdgeHisto(1)++
 if (m_h > T1)     then EdgeHisto(2)++
 if (m_v > T1)     then EdgeHisto(3)++
 if (m_d_45 > T2)  then EdgeHisto(4)++
 if (m_d_135 > T2) then EdgeHisto(5)++
}
endif
return(EdgeHisto)
}

Threshold values were selected by Savvas A. Chatzichristofis to be: TEdge=14, T0=0.68, T1=T2=0.98.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!