Commit 0a37e09d authored by Larkin Heintzman's avatar Larkin Heintzman

Upload New File

parent e28a1997
Pipeline #32 canceled with stages
function im = perlin_noise(im)
[n, m] = size(im);
i = 0;
w = sqrt(n*m);
while w > 3
i = i + 1;
d = interp2(randn(n, m), i-1, 'spline');
im = im + i * d(1:n, 1:m);
w = w - ceil(w/2 - 1);
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment