addcountingnoise.m
来自「cell migration resource imaging icsmatla」· M 代码 · 共 12 行
M
12 行
function noiseMatrix=addCountingNoise(matrix, coefficient)
% adds random numbers normally distributed with variance coefficeint*mean(image)
% to an image matrix
noiseMatrix=randn(size(matrix));
%noisyMatrix=matrix+coefficient*max(nonzeros(matrix))*noiseMatrix.*sqrt(matrix);
noiseMatrix=matrix+coefficient*noiseMatrix.*sqrt(matrix);
% puts to 0 the negative elements
noiseMatrix(find(noiseMatrix<0)) = 0;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?