Smooth data with correlation
Ältere Kommentare anzeigen
Hello all,
I need to create a file containing random numbers (let's say on a 64x64 grid) and then smooth the data to create a correlated function with an arbitrary correlation distance L. I basically need to create something like this :

The random grid is easily created using
random_grid = (b-a).*rand(64,64) + a;
[a,b] being the interval in which the random numbers are generated.
- I have trouble finding a way to smooth the data that creates bumps on the surface that have the desired size;
- If i also could control the maximum local slope that'd be top tier.
Does anyone know a way to do this ? Thanks !
Akzeptierte Antwort
Weitere Antworten (1)
Gregoose
am 30 Sep. 2019
0 Stimmen
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
