help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smoothing Functions without distorting matrices' edges


From: Robert A. Macy
Subject: Re: Smoothing Functions without distorting matrices' edges
Date: Sun, 24 Sep 2006 09:10:50 -0700

here's a profile and a tilted matrix
try this and see:
>> prof=(1-cos(2*pi()*( (1:51)-1)/50))';
>> prof=prof-min(prof);
>> prof=prof/sum(prof);
>> x=randn((300,101)+ones(300,1)*(-50:1:50)/12;
>> y=conv2(x,prof,'same');
>> gsplot y;

you'll see smooth, but the dges are destroyed.

             - Robert -

On Sat, 23 Sep 2006 23:19:08 -0400
 Bill Denney <address@hidden> wrote:
> Robert A. Macy wrote:
> > How does one smooth a matrix and NOT severely distort
> the
> > edges?  Is there some easy way to do this?
> >   
> Why does a simple Gaussian convolution not work for you?
>  You mentioned using conv2, so why does that not work.
> 
> Bill



reply via email to

[Prev in Thread] Current Thread [Next in Thread]