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

조회 수: 8 (최근 30일)
Ankita Jindal
Ankita Jindal 2021년 1월 6일
편집: KALYAN ACHARJYA 2021년 1월 7일
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