直接依照定義寫了出來2-D的hann window




2D Hann Window:

hann2d =0.5*(1-cos(2*pi*[0:width-1]'/(width-1)))*0.5*(1-cos(2*pi*[0:width-1]/(width-1)))


Example:

 

 

 

 

width = 128;

hann2d =0.5*(1-cos(2*pi*[0:width-1]'/(width-1)))*0.5*(1-cos(2*pi*[0:width-1]/(width-1)));                

surf(hann2d)


 

 

result: http://i.imgur.com/89alk.png

arrow
arrow
    全站熱搜

    weselyong 發表在 痞客邦 留言(0) 人氣()