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

5 views (last 30 days)
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

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 6 Jan 2021
Edited: KALYAN ACHARJYA on 6 Jan 2021
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 Comments
Ankita Jindal
Ankita Jindal on 7 Jan 2021
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 on 7 Jan 2021
Edited: KALYAN ACHARJYA on 7 Jan 2021
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!