COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Removing sine noise in a picture

• Email
• Follow

```Hello,

I'm a student and I get an assignment to add and remove 2D sine noise from a picture.
The picture is "lena.tif";

[m,n] = size (lena);

X= repmat ([1:n] / n, [m,1]);
Y= repmat([n,1], [1:m]/m);

I added a sine noise which is: 70sin(5*pi*X+7*pi*Y)

I need to remove the noise in the frequency spatial and the picture spatial.

I know that I need to use fft to remove the noise in the frequency spatial and I also know I need to enter the same sine noise but with opposite phase angle to remove it in the picture spatial.
I don't know how any of those removals, can anyone help with buy explaining me how the algorithms need to work or give a link to a site which explains.
Thanks
```
 0
Reply Eliran 11/18/2009 7:46:06 AM

See related articles to this posting

```On 18 Nov, 08:46, "Eliran Tsarfati" <etzar...@hotmail.com> wrote:
> Hello,
>
> I'm a student and I get an assignment to add and remove 2D sine noise from a picture.
> The picture is "lena.tif";
>
> [m,n] = size (lena);
>
> X= repmat ([1:n] / n, [m,1]);
> Y= repmat([n,1], [1:m]/m);
>
> I added a sine noise which is: 70sin(5*pi*X+7*pi*Y)
>
> I need to remove the noise in the frequency spatial and the picture spatial.
>
> I know that I need to use fft to remove the noise in the frequency spatial and I also know I need to enter the same sine noise but with opposite phase angle to remove it in the picture spatial.
> I don't know how any of those removals, can anyone help with buy explaining me how the algorithms need to work or give a link to a site which explains.
> Thanks

This kind of problem is among the most basic in image processing,
and would thus be expected to be mentioned in virtually any
entry-level textbook on image processing. I know the book by
Gonzalez and Woods mentions both why and how it works, and how
to do the filtering.

Rune
```
 0
Reply Rune 11/18/2009 10:15:44 AM

```> This kind of problem is among the most basic in image processing,
> and would thus be expected to be mentioned in virtually any
> entry-level textbook on image processing. I know the book by
> Gonzalez and Woods mentions both why and how it works, and how
> to do the filtering.
>
> Rune

Thanks for your help,
I looked in the mentioned book, but they talked about specific filters, I don't want to use the Matlab toolbox, are there other ways?
Thanks
Eliran
```
 0
Reply etzarfat 11/18/2009 11:32:06 AM

```Just follow your professor's instructions, which were take the fft,
locate the spikes, zero out the spikes, and inverse fft.  MATLAB has
an fft function so I'm sure you can use that right out of the box.
```
 0
Reply ImageAnalyst 11/18/2009 11:45:08 AM

3 Replies
595 Views

Similar Articles

12/7/2013 10:47:41 AM
page loaded in 30237 ms. (0)