How to add poisson's noise to predefined binary array (4 x 4 array)
5 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
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
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!