Creating 2D sinusoid image with spatial frequency

21 ビュー (過去 30 日間)
Rinita
Rinita 2020 年 1 月 30 日
回答済み: KSSV 2020 年 1 月 30 日
Hello, I am confused as to how I should create the following type of image in MATLAB.
"Consider ? x ? grey level images that are raised 2D sinusoids of some spatial frequency ? cycles per ? pixels where ?=256.
?(?,?)= 1/2(1+sin (2?/? ? ?))."
We have to convolve the above image using gaussian filtering.

採用された回答

KSSV
KSSV 2020 年 1 月 30 日
k = 3. ;
N = 256 ;
x = 1:N ;
y = 1:N ;
[X,Y] = meshgrid(x,y) ;
I = 1/2*(1+sin(2*pi/N*k*X)) ;

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by