看板Programming
标 题? 2d Gaussian noise in MatLab
发信站KKCITY (Thu Aug 10 01:17:00 2006)
转信站ptt!ctu-reader!Spring!news.nctu!news.ntu!bbs.ee.ntu!news.kkcity.com.tw
MatLab built-in function rand() gives uniform dist random numbers.
x = rand(10); xgauss = exp( -0.5*( ( x-mu )./std ).^2 )/sqrt(2*pi*std);
The above gives 1D Gaussian noise. But now I'd like to add Gaussian
noise to a 2D picture. How do I generate 2D Gaussian noise then?
Thanks,
by Cheng Cosine
Aug/09/2k6 NC
--
┌─────◆KKCITY◆─────┐ ◢╱ 只要你
通过身份认证 ~ ◥█
│ bbs.kkcity.com.tw │ █▉─ 免经验、五人连署即开班系板 ◥
└──《From:152.16.233.74
》──┘ ◥╲ 赶快为班上设个
秘密基地吧!
◢
--