Its a rainy season in India, and standing by my balcony, I saw the beautiful patterns made by falling droplets on the pond..
10 minutes on matlab landed me to this image!!
Now the waves are sinusoidal so I started with sine wave multiplied with log so that the amplitude decreases with distance!!
a=imread('lena.jpg');
for i=1:1028
for j=1:1028
d=1000*sqrt((i-125)^2+(j-355)^2);
a(i,j)=(log10(d)-6)*sin(d/5000)*21+128;
end
end
imshow(a);
The centre taken is (125,355)
I am reading lena.jpg. You can read any image file you want..
The only use of reading this is to make an array in jpg format.
You can change the parameters and scaling factors to see very interesting results!!
It looks like Newton's Rings', Isn't it??
10 minutes on matlab landed me to this image!!
Now the waves are sinusoidal so I started with sine wave multiplied with log so that the amplitude decreases with distance!!
a=imread('lena.jpg');
for i=1:1028
for j=1:1028
d=1000*sqrt((i-125)^2+(j-355)^2);
a(i,j)=(log10(d)-6)*sin(d/5000)*21+128;
end
end
imshow(a);
The centre taken is (125,355)
I am reading lena.jpg. You can read any image file you want..
The only use of reading this is to make an array in jpg format.
You can change the parameters and scaling factors to see very interesting results!!
It looks like Newton's Rings', Isn't it??