直接依照定義寫了出來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
全站熱搜