now my question is that which 'a' i should take?

1 view (last 30 days)
I is 20*20 image of class uint8;
a=im2double(I) and a=double(I) gives different result.
now generate noisy image using noisy=a+n;
where,n=0+10*randn(size(I))
now my question is that which 'a' i should take?(either a=im2double(I) ora=double(I))

Answers (1)

Image Analyst
Image Analyst on 16 Mar 2013
im2double() scales images to the 0-1 range whereas double() leaves their values alone. It just depends on what range you want the image to be in before you add noise to it.
  2 Comments
vipul utsav
vipul utsav on 17 Mar 2013
Edited: vipul utsav on 17 Mar 2013
which is better for noise estimation as your thought?(when i want to add noise in original image manually )
Image Analyst
Image Analyst on 17 Mar 2013
Either one can do it. I tend to not use im2double.

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!