<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120</link>
    <title>MATLAB Central Newsreader - SNR and imnosie</title>
    <description>Feed for thread: SNR and imnosie</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 01 Jul 2009 19:49:02 -0400</pubDate>
      <title>SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#661986</link>
      <author>Rami AbouSleiman</author>
      <description>when i use the imnoise function as for example:&lt;br&gt;
&lt;br&gt;
I=imnoise(input, 'gaussian', 0 , 0.1)&lt;br&gt;
mean is always zero but all i vary is the variance.&lt;br&gt;
What does that mean as SNR of I?&lt;br&gt;
&lt;br&gt;
Any help is greatly appreciated.&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Wed, 01 Jul 2009 22:41:42 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662052</link>
      <author>ImageAnalyst</author>
      <description>On Jul 1, 3:49&#160;pm, &quot;Rami AbouSleiman&quot; &amp;lt;rdabo...@oakland.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; when i use the imnoise function as for example:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I=imnoise(input, 'gaussian', 0 , 0.1)&lt;br&gt;
&amp;gt; mean is always zero but all i vary is the variance.&lt;br&gt;
&amp;gt; What does that mean as SNR of I?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Any help is greatly appreciated.&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------------------&lt;br&gt;
Well let's see.  Signal = input, and average noise = std dev = sqrt&lt;br&gt;
(variance), so isn't the SNR (on average) at (x,y) just input(y, x)/&lt;br&gt;
sqrt(0.1) ?     Or you can say that the actual noise = (I-input) so&lt;br&gt;
then SNR(y, x) = input(y, x) / (I(y, x) - input(y,x)).&lt;br&gt;
&lt;br&gt;
No, that can't be it, that's too obvious - you would have figured that&lt;br&gt;
out - so what aren't you telling us?  If you really simply want to&lt;br&gt;
know what SNR means (like you said), then you can use a nifty tool&lt;br&gt;
called Google, where you might find sites like this:&lt;br&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Signal-to-noise_ratio&quot;&gt;http://en.wikipedia.org/wiki/Signal-to-noise_ratio&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Wed, 01 Jul 2009 23:00:04 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662056</link>
      <author>Oliver Woodford</author>
      <description>ImageAnalyst wrote:&lt;br&gt;
&amp;gt; If you really simply want to&lt;br&gt;
&amp;gt; know what SNR means (like you said), then you can use a nifty tool&lt;br&gt;
&amp;gt; called Google, where you might find sites like this:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Signal-to-noise_ratio&quot;&gt;http://en.wikipedia.org/wiki/Signal-to-noise_ratio&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Yes, you could Bing SNR...</description>
    </item>
    <item>
      <pubDate>Wed, 01 Jul 2009 23:33:01 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662062</link>
      <author>Rami AbouSleiman</author>
      <description>Mr. Image Analyst,&lt;br&gt;
I know what is  SNR and Gaussian noise, &lt;br&gt;
but can you relate in a function SNR to the variance of the imnoise function thats my question?&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;1665e067-91c2-4141-a55b-189f8862d9a8@s6g2000vbp.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jul 1, 3:49?pm, &quot;Rami AbouSleiman&quot; &amp;lt;rdabo...@oakland.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; when i use the imnoise function as for example:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I=imnoise(input, 'gaussian', 0 , 0.1)&lt;br&gt;
&amp;gt; &amp;gt; mean is always zero but all i vary is the variance.&lt;br&gt;
&amp;gt; &amp;gt; What does that mean as SNR of I?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Any help is greatly appreciated.&lt;br&gt;
&amp;gt; &amp;gt; Thanks&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ---------------------------------------------------------------------------------&lt;br&gt;
&amp;gt; Well let's see.  Signal = input, and average noise = std dev = sqrt&lt;br&gt;
&amp;gt; (variance), so isn't the SNR (on average) at (x,y) just input(y, x)/&lt;br&gt;
&amp;gt; sqrt(0.1) ?     Or you can say that the actual noise = (I-input) so&lt;br&gt;
&amp;gt; then SNR(y, x) = input(y, x) / (I(y, x) - input(y,x)).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; No, that can't be it, that's too obvious - you would have figured that&lt;br&gt;
&amp;gt; out - so what aren't you telling us?  If you really simply want to&lt;br&gt;
&amp;gt; know what SNR means (like you said), then you can use a nifty tool&lt;br&gt;
&amp;gt; called Google, where you might find sites like this:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Signal-to-noise_ratio&quot;&gt;http://en.wikipedia.org/wiki/Signal-to-noise_ratio&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Wed, 01 Jul 2009 23:41:02 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662063</link>
      <author>Rami AbouSleiman</author>
      <description>to be more clear,&lt;br&gt;
&lt;br&gt;
I have an image and I am inducing Gaussian noise through imnoise.&lt;br&gt;
&lt;br&gt;
I use this image as an input into a specific system and the system fails when i put imnoise var of 0.15. (it works for var &amp;lt; 0.15)&lt;br&gt;
&lt;br&gt;
I want to be able to say that the system was able to tolerate a SNR of X?&lt;br&gt;
Find X?&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 01:07:03 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662075</link>
      <author>ImageAnalyst</author>
      <description>On Jul 1, 7:41&#160;pm, &quot;Rami AbouSleiman&quot; &amp;lt;rdabo...@oakland.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; to be more clear,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have an image and I am inducing Gaussian noise through imnoise.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I use this image as an input into a specific system and the system fails when i put imnoise var of 0.15. (it works for var &amp;lt; 0.15)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want to be able to say that the system was able to tolerate a SNR of X?&lt;br&gt;
&amp;gt; Find X?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&lt;br&gt;
----------------------------------------------------------------------&lt;br&gt;
Rami:&lt;br&gt;
I don't know what this system is, nor the manner of failure.  But&lt;br&gt;
apparently you do, so the only way is to try increasing the noise&lt;br&gt;
until the system fails, according to your definition of &quot;fail.&quot;  At&lt;br&gt;
that point, you will know X.  Since you know &quot;input&quot; and I, you can do&lt;br&gt;
SNRWhenFailedAveragedOverAllPixels = mean(mean(input ./ (I - input)));&lt;br&gt;
(Note the dot slash instead of just slash)&lt;br&gt;
Good luck,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 01:08:01 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662076</link>
      <author>Sadik </author>
      <description>Hey, I don't see any &quot;humour&quot; here. If the people to ask questions will always be those who already know the answer, what is the point of this newsletter? All of us may ask very simple questions, simple according to others, but the questions can in deed be equally difficult for the owners of the questions probably because they are not very familiar with the subject. Let us please be a little more understanding and polite, we shall not discourage people from asking questions. If a person repeatedly asks very simple questions which have already been answered in one or more of his previous posts, only then can we to some extent decide that he is trying to be lazy and he does not make the effort he has to. &lt;br&gt;
&lt;br&gt;
&quot;We&quot; in the above paragraph refers to the set of considerate and mindful posters. I hope all of us are in &quot;we&quot;.&lt;br&gt;
&lt;br&gt;
Best.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Rami AbouSleiman&quot; &amp;lt;rdabousl@oakland.edu&amp;gt; wrote in message &amp;lt;h2gs6d$8o6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; to be more clear,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have an image and I am inducing Gaussian noise through imnoise.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I use this image as an input into a specific system and the system fails when i put imnoise var of 0.15. (it works for var &amp;lt; 0.15)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I want to be able to say that the system was able to tolerate a SNR of X?&lt;br&gt;
&amp;gt; Find X?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 11:01:03 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662154</link>
      <author>Oliver Woodford</author>
      <description>&quot;Sadik &quot; wrote:&lt;br&gt;
&amp;gt; Hey, I don't see any &quot;humour&quot; here. &lt;br&gt;
&lt;br&gt;
I made the &quot;homourous&quot; comment. It was subtle...</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 16:09:01 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662255</link>
      <author>Rami AbouSleiman</author>
      <description>Image analyst,&lt;br&gt;
&lt;br&gt;
I was using SNR as mean(input)/sqrt(sigma)&lt;br&gt;
thats the definition from binging or googling the snr, but mean(input)/mean(input-noisyimage) makes more sense. Thanks&lt;br&gt;
&lt;br&gt;
BTW you don't need ./ since they are the same size.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Oliver Woodford&quot; &amp;lt;o.j.woodford.98@cantab.net&amp;gt; wrote in message &amp;lt;h2i41f$p0j$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Sadik &quot; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hey, I don't see any &quot;humour&quot; here. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I made the &quot;homourous&quot; comment. It was subtle...</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 17:03:01 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662278</link>
      <author>Alan B</author>
      <description>&quot;Rami AbouSleiman&quot; &amp;lt;rdabousl@oakland.edu&amp;gt; wrote in message &amp;lt;h2im2t$cg2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Image analyst,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; BTW you don't need ./ since they are the same size.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
this would have been a quick way for you to (fail to) verify your own declaration:&lt;br&gt;
&lt;br&gt;
a=rand(2); b=rand(2);&lt;br&gt;
a/b, a./b</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 17:30:10 -0400</pubDate>
      <title>Re: SNR and imnosie</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255120#662290</link>
      <author>ImageAnalyst</author>
      <description>On Jul 2, 1:03&#160;pm, &quot;Alan B&quot; &amp;lt;mongui...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;Rami AbouSleiman&quot; &amp;lt;rdabo...@oakland.edu&amp;gt; wrote in message &amp;lt;h2im2t$cg...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Image analyst,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; BTW you don't need ./ since they are the same size.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; this would have been a quick way for you to (fail to) verify your own declaration:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; a=rand(2); b=rand(2);&lt;br&gt;
&amp;gt; a/b, a./b&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------------&lt;br&gt;
Rami:&lt;br&gt;
I just want to re-emphasize Alan's note.  Alan and I are right and you&lt;br&gt;
are mistaken.  You do need the dot slash - and the matching or non-&lt;br&gt;
matching size is not the reason why.&lt;br&gt;
&lt;br&gt;
Also, it depends on how you define noise.  If you just say that noise&lt;br&gt;
is the observed distance between your actual signal and your true&lt;br&gt;
signal, then you can use this definition&lt;br&gt;
noise = mean(mean(abs(noisyImage - trueImage)));&lt;br&gt;
Note the absolute value in there - otherwise your noise will be close&lt;br&gt;
to zero.  If you want to say the noise is the standard deviation of&lt;br&gt;
the differences between your noisy pixel values and your true values,&lt;br&gt;
then you might use this:&lt;br&gt;
noiseOnly = abs(noisyImage - trueImage);&lt;br&gt;
noise = std(noiseOnly(:));&lt;br&gt;
Or you could use the RMS (root mean square) definition for your&lt;br&gt;
noise.  Something like&lt;br&gt;
squaredImage = noiseOnly .^ 2  % Note the dot.&lt;br&gt;
RMS = sqrt(mean(mean(squaredImage)));  % I think that's it.&lt;br&gt;
&lt;br&gt;
Good luck,&lt;br&gt;
ImageAnalyst</description>
    </item>
  </channel>
</rss>

