impoisson

版本 1.0.1 (1.9 KB) 作者: Dirk-Jan Kroon
Generates Poisson noise from (image) data. It is a raw but fast implementation based on inversion method and Gaussian approximation
5.0 次下载
更新时间 2024/5/17

查看许可证

Function which generates Poisson noise / Poisson distribution from the data. It is a raw implementation and uses the inversion method for counts smaller than 30, and gaussian approximation for larger values. The code is vectorized and faster then default imnoise(I,'poisson') and poissrnd
J = impoisson(I)
If I is integer like uint8 the counts equal the input values
If I is single precision then the counts are assumed 1e6 x the input value
If I is double precision then the counts are assumed 1e12 x the input value
Example
X = uint16(repmat((1:1000),1000,1));
Y = impoisson(X);
figure, plot(Y(:)); hold on; plot(X(:),'r')
figure, imshow([X,Y],[])

引用格式

Dirk-Jan Kroon (2026). impoisson (https://ww2.mathworks.cn/matlabcentral/fileexchange/166076-impoisson), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2022b
兼容任何版本
平台兼容性
Windows macOS Linux
版本 已发布 发行说明
1.0.1

updated example

1.0.0