Thread Subject: tukey window

Subject: tukey window

From: manika babbar

Date: 30 Jun, 2009 14:40:17

Message: 1 of 6

hey can anyone guide me to use a tukey window in 2-d??
M working with images so require a 2 dimensional approach..

Subject: tukey window

From: Adam Chapman

Date: 30 Jun, 2009 16:12:35

Message: 2 of 6

On Jun 30, 3:40 pm, "manika babbar" <babbar_man...@yahoo.co.in> wrote:
> hey can anyone guide me to use a tukey window in 2-d??
> M working with images so require a 2 dimensional approach..

w=tukeywin(10,0.25)*tukeywin(10,0.25)'

would make your 2d filter, obviously change the window size and other
parameters accordingly.

Do you need halep on appying the filter too or can you do that?

Subject: tukey window

From: Adam Chapman

Date: 30 Jun, 2009 16:20:54

Message: 3 of 6

On Jun 30, 5:12 pm, Adam Chapman <adamchapman1...@hotmail.co.uk>
wrote:
> On Jun 30, 3:40 pm, "manika babbar" <babbar_man...@yahoo.co.in> wrote:
>
> > hey can anyone guide me to use a tukey window in 2-d??
> > M working with images so require a 2 dimensional approach..
>
> w=tukeywin(10,0.25)*tukeywin(10,0.25)'
>
> would make your 2d filter, obviously change the window size and other
> parameters accordingly.
>
> Do you need halep on appying the filter too or can you do that?

Here's demo code:

--------------------------------

L=5; %window width
r=0.25; %taper ratio of tukey window

%produce 2d tukey window
w=tukeywin(L,r)*tukeywin(L,r)';

%load and scale image.
im=imread('pout.tif');
im=double(im);
im=im/255;

%plotting
figure
subplot(1,2,1)
imshow(im,[])
title('original')
subplot(1,2,2)
imshow(imfilter(im,w),[])
title('filtered')

----------------------------

Subject: tukey window

From: manika babbar

Date: 30 Jun, 2009 17:01:02

Message: 4 of 6

Adam Chapman <adamchapman1985@hotmail.co.uk> wrote in message <251c3d67-5c72-484c-953c-dd175a3e441b@c36g2000yqn.googlegroups.com>...
> On Jun 30, 5:12 pm, Adam Chapman <adamchapman1...@hotmail.co.uk>
> wrote:
> > On Jun 30, 3:40 pm, "manika babbar" <babbar_man...@yahoo.co.in> wrote:
> >
> > > hey can anyone guide me to use a tukey window in 2-d??
> > > M working with images so require a 2 dimensional approach..
> >
> > w=tukeywin(10,0.25)*tukeywin(10,0.25)'
> >
> > would make your 2d filter, obviously change the window size and other
> > parameters accordingly.
> >
> > Do you need halep on appying the filter too or can you do that?
>
> Here's demo code:
>
> --------------------------------
>
> L=5; %window width
> r=0.25; %taper ratio of tukey window
>
> %produce 2d tukey window
> w=tukeywin(L,r)*tukeywin(L,r)';
>
> %load and scale image.
> im=imread('pout.tif');
> im=double(im);
> im=im/255;
>
> %plotting
> figure
> subplot(1,2,1)
> imshow(im,[])
> title('original')
> subplot(1,2,2)
> imshow(imfilter(im,w),[])
> title('filtered')
>
> ----------------------------
hey thanks for the assistance..[:)]

Subject: tukey window

From: Adam Chapman

Date: 30 Jun, 2009 17:23:19

Message: 5 of 6

On Jun 30, 6:01 pm, "manika babbar" <babbar_man...@yahoo.co.in> wrote:
> Adam Chapman <adamchapman1...@hotmail.co.uk> wrote in message <251c3d67-5c72-484c-953c-dd175a3e4...@c36g2000yqn.googlegroups.com>...
> > On Jun 30, 5:12 pm, Adam Chapman <adamchapman1...@hotmail.co.uk>
> > wrote:
> > > On Jun 30, 3:40 pm, "manika babbar" <babbar_man...@yahoo.co.in> wrote:
>
> > > > hey can anyone guide me to use a tukey window in 2-d??
> > > > M working with images so require a 2 dimensional approach..
>
> > > w=tukeywin(10,0.25)*tukeywin(10,0.25)'
>
> > > would make your 2d filter, obviously change the window size and other
> > > parameters accordingly.
>
> > > Do you need halep on appying the filter too or can you do that?
>
> > Here's demo code:
>
> > --------------------------------
>
> > L=5; %window width
> > r=0.25; %taper ratio of tukey window
>
> > %produce 2d tukey window
> > w=tukeywin(L,r)*tukeywin(L,r)';
>
> > %load and scale image.
> > im=imread('pout.tif');
> > im=double(im);
> > im=im/255;
>
> > %plotting
> > figure
> > subplot(1,2,1)
> > imshow(im,[])
> > title('original')
> > subplot(1,2,2)
> > imshow(imfilter(im,w),[])
> > title('filtered')
>
> > ----------------------------
>
> hey thanks for the assistance..[:)]- Hide quoted text -
>
> - Show quoted text -

np, was it what you were trying to achieve?

Subject: tukey window

From: manika babbar

Date: 1 Jul, 2009 07:20:02

Message: 6 of 6

no, it was just one of the steps in my algorithm. m still working on my algorithm..
thankyou..

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com