Input Box for Commands: " Test Image " y = hammiw(64,64) // generate test image y255 = y.scale255 // scale data to 255 view y255 // display image "mean of y is:" :: float2str(y.mean) " 3d plot of Test Image " plot3d(y) // generated 3d plot // Introduce multiplicative noise into y. // Use gaussian noise with unit mean and stdv=0.1 noise = randg(y.nrows,y.ncols)*0.1+1 ynoisy = y*.noise ynoisy255 = ynoisy.scale255 view ynoisy255 plot3d(ynoisy)
You can modify the above code. Press 'Execute Command' to see results.