<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240189</link>
    <title>MATLAB Central Newsreader - how to remove noise??</title>
    <description>Feed for thread: how to remove noise??</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>Mon, 01 Dec 2008 05:29:02 -0500</pubDate>
      <title>how to remove noise??</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240189#614080</link>
      <author>Vivi </author>
      <description>I'm now working on my final project : Stereo Vision...&lt;br&gt;
I have a problem in removing noise, i have an image that i captured from a webcam and the object is a Square Box (black) and the background is white, but the image's background not totally white because there is some noise like people walking around, etc.&lt;br&gt;
&lt;br&gt;
after i have the picture, i use 'imread' function to read the image and then i use 'rgb2gray' then i binarization the image using Threshold=150.&lt;br&gt;
the image after binarization is not only show the Square Box (black) and the white background, but there are a lot of noise. &lt;br&gt;
&lt;br&gt;
here is the image :&lt;br&gt;
&lt;br&gt;
[IMG]&lt;a href=&quot;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg[/IMG]&quot;&gt;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg[/IMG]&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
my question is how to remove the noise?&lt;br&gt;
i cant change the threshold because i have another image that have a different light intensity.</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 05:35:02 -0500</pubDate>
      <title>Re: how to remove noise??</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240189#614082</link>
      <author>Vivi </author>
      <description>this is the link for image, in case above is not working... ^^&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg&quot;&gt;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 07:15:09 -0500</pubDate>
      <title>Re: how to remove noise??</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240189#614097</link>
      <author>Gavrilo Bozovic</author>
      <description>&quot;Vivi &quot; &amp;lt;vivisuriani@yahoo.com&amp;gt; wrote in message &amp;lt;ggvsmu$550$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I'm now working on my final project : Stereo Vision...&lt;br&gt;
&amp;gt; I have a problem in removing noise, i have an image that i captured from a webcam and the object is a Square Box (black) and the background is white, but the image's background not totally white because there is some noise like people walking around, etc.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; after i have the picture, i use 'imread' function to read the image and then i use 'rgb2gray' then i binarization the image using Threshold=150.&lt;br&gt;
&amp;gt; the image after binarization is not only show the Square Box (black) and the white background, but there are a lot of noise. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; here is the image :&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [IMG]&lt;a href=&quot;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg[/IMG]&quot;&gt;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg[/IMG]&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; my question is how to remove the noise?&lt;br&gt;
&amp;gt; i cant change the threshold because i have another image that have a different light intensity.&lt;br&gt;
&lt;br&gt;
Think in Fourier...&lt;br&gt;
&lt;br&gt;
your box has a lot of low frequencies, while your noise is mainly high frequency. First, you could try to eliminate it by applying a low-pass filter to your image, before thresholding it (moving average, gaussian blurring, or whatever).&lt;br&gt;
&lt;br&gt;
Then, after thresholding, you can use the morphological closing algorithm (check &lt;a href=&quot;http://en.wikipedia.org/wiki/Closing_(morphology))&quot;&gt;http://en.wikipedia.org/wiki/Closing_(morphology))&lt;/a&gt; or the opening algorithm to either remove more noise, if the first one wasn't sufficient, or to fill the square, if you removed some points inside of it.&lt;br&gt;
&lt;br&gt;
And then, if you really want to do a nice job, after thresholding and stuff, apply an edge detector to your image, and make a Hough transform of the resulting image. You'll have the equations of the edges of your square. Note that noise removal and thresholding is not strictly speaking necessary to make a Hough transform, but in your case I think it would help.&lt;br&gt;
&lt;br&gt;
Et voil? ;)&lt;br&gt;
&lt;br&gt;
Ask if something isn't clear!&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Gavrilo</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 13:16:59 -0500</pubDate>
      <title>Re: how to remove noise??</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240189#614147</link>
      <author>ImageAnalyst</author>
      <description>On Dec 1, 12:29=A0am, &quot;Vivi &quot; &amp;lt;vivisuri...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I'm now working on my final project : Stereo Vision...&lt;br&gt;
&amp;gt; I have a problem in removing noise, i have an image that i captured from =&lt;br&gt;
a webcam and the object is a Square Box (black) and the background is white=&lt;br&gt;
, but the image's background not totally white because there is some noise =&lt;br&gt;
like people walking around, etc.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; after i have the picture, i use 'imread' function to read the image and t=&lt;br&gt;
hen i use 'rgb2gray' then i binarization the image using Threshold=3D150.&lt;br&gt;
&amp;gt; the image after binarization is not only show the Square Box (black) and =&lt;br&gt;
the white background, but there are a lot of noise.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; here is the image :&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [IMG]&lt;a href=&quot;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg[/IMG]&quot;&gt;http://img389.imageshack.us/img389/5668/gambarrusakey3.jpg[/IMG]&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; my question is how to remove the noise?&lt;br&gt;
&amp;gt; i cant change the threshold because i have another image that have a diff=&lt;br&gt;
erent light intensity.&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
Vivi:&lt;br&gt;
Well there are several ways, depending on what you know or assume&lt;br&gt;
about the objects.&lt;br&gt;
1)  Do you know the position?  If so, just find its centroid or&lt;br&gt;
bounding box (via bwlabel and regionprops) and get rid of all blobs&lt;br&gt;
that don't match (or are very close to) the object you're trying to&lt;br&gt;
find.&lt;br&gt;
2)  Do you know the perimeter?  If so, get rid of all objects not&lt;br&gt;
having that perimeter.&lt;br&gt;
3)  Do you know the shape?  If so get rid of everything without that&lt;br&gt;
shape.  Shape can be circularity (perimeter squared divided by area)&lt;br&gt;
or eccentricity.&lt;br&gt;
4)  If you don't know what distinguishes your object from everything&lt;br&gt;
else, just look at all the measurements you can make with&lt;br&gt;
regionprops.  Then figure out which one or combination of them makes&lt;br&gt;
up a feature vector that uniquely identifies your object.&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst</description>
    </item>
  </channel>
</rss>

