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

2 次查看(过去 30 天)
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))

回答(1 个)

Image Analyst
Image Analyst 2013-3-16
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 个评论
vipul utsav
vipul utsav 2013-3-17
编辑:vipul utsav 2013-3-17
which is better for noise estimation as your thought?(when i want to add noise in original image manually )
Image Analyst
Image Analyst 2013-3-17
Either one can do it. I tend to not use im2double.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by