Add Poisson Noise in an image

조회 수: 8 (최근 30일)
Abhijit Das
Abhijit Das 2011년 12월 26일
댓글: Devi Anu 2020년 3월 11일
I have an image in JPEG format. I want to add Poisson noise in the image.
>> a=imread('pattern2.jpg');
>> J =imnoise(a,'poisson');
>> figure(4); imshow(J)
But in output there is no image. showing error
?? Error using ==> imnoise Unknown noise type.
==> J =imnoise(a,'poisson');
someone help
With Regards
-Abhijit Das

답변 (2개)

Wayne King
Wayne King 2011년 12월 26일
Hi Abhijit, Are you sure that you are using the MathWorks' imnoise function? Perhaps you have another imnoise.m function that precedes the MathWorks' version on your path.
Enter:
>>which imnoise
Do you get a path returned like (ending in):
matlab\toolbox\images\images\imnoise.m
If not, then either remove the path to the non-MathWorks' imnoise with rmpath, or move the non-MathWorks' imnoise out of the MATLAB search path.
  댓글 수: 2
Abhijit Das
Abhijit Das 2011년 12월 26일
I have tested the other noises such as Gaussian, salt & pepper etc. These types of noises are being added to the image. If you can explain with example that will be better.
-Thanking You
Abhijit Das
Wayne King
Wayne King 2011년 12월 26일
If you can tell us what
>>which imnoise
returns and what version of MATLAB you are using, that would be helpful.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2011년 12월 26일
if you need to.
poisson noise was new as of MATLAB R12+, Image Processing Toolbox version 3.0. That version of MATLAB appears to be a second release of MATLAB 6.0 but that predates MATLAB 6.1. If you have Image Processing Toolbox 2.2 with MATLAB 6.0, you are perhaps eligible for a free upgrade to toolbox version 3.0; see <http://www.mathworks.com/support/solutions/en/data/1-18WGT/index.html?product=IP&solution=1-18WGT>
  댓글 수: 1
Devi Anu
Devi Anu 2020년 3월 11일
can anyone tell me how to add mixed noise in HSI data??THANKS IN ADVANCE....

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by