How to add poisson's noise to predefined binary array (4 x 4 array)

7 次查看(过去 30 天)
Hello Everyone,
I want to know how to add poisson's noise to predefined binary array.
I have 4 x 4 binary array and I want to add Poisson's noise to it.
---> I already tried poissrnd inbuilt function in matlab but the problem with this function is (this function always generate integer values ranging from 1 to 4 if lambda is 1 or less than 1)
I want to have poisson's noise in the form of floating point numbers between 0 and 1
Please give some suggestions on this.
THank you

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021-1-6
编辑:KALYAN ACHARJYA 2021-1-6
Note: Having 0 and 1 in array data and actually logical data array are two different things.
Please refer the inbuilt function imnoise
J=imnoise(array_data,'poisson');
Here example
I=randi([0,1],[100,100]); % Any random array data, sizes 100x100
% You may consider any size data
J=imnoise(I,'poisson');
imshow(J);
Note: The array size you mentioned is quite small, so visualization of noise distribution can be difficult in such cases.
  9 个评论
Ankita Jindal
Ankita Jindal 2021-1-7
Please check the picture for better understanding.
You can see that I need poisson's noise that can be added to the image directly and we have different pixel values on the image.
Thanks
KALYAN ACHARJYA
KALYAN ACHARJYA 2021-1-7
编辑:KALYAN ACHARJYA 2021-1-7
If you want to add noise to any data, if there is definitely a change in the values of the data elements, this change follow the PDF map of the applied noise.
Note: The array size you mentioned is quite small, so difference visualization of noise distribution can be difficult in such cases.
Does it make sense to add noise to the image, without changing its pixel values? Hope I understood your question correctly, if not, let me know.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by