impoisson

バージョン 1.0.1 (1.89 KB) 作成者: Dirk-Jan Kroon
Generates Poisson noise from (image) data. It is a raw but fast implementation based on inversion method and Gaussian approximation
ダウンロード: 2
更新 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 (2024). impoisson (https://www.mathworks.com/matlabcentral/fileexchange/166076-impoisson), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2022b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.1

updated example

1.0.0