help-octave
[Top][All Lists]
Advanced

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

Re: Filtering an image with a space-dependent function


From: George
Subject: Re: Filtering an image with a space-dependent function
Date: Sat, 23 Jan 2010 15:17:40 +0000

On 1/23/10, Søren Hauberg <address@hidden> wrote:
> fre, 22 01 2010 kl. 17:52 +0000, skrev George:
>> Can I filter an image using a mask that depends on each pixel? Without
>> using loops to iterate over the pixels.
>
> You can use the 'im2col' function from the 'image' package to rearrange
> the image such that each block becomes a column in the new matrix. You
> can then process each column at the time, which is often fairly easy to
> vectorise.
>
> If you just want to do smoothing with a variable smoothing factor for
> each block, then 'imsmooth' can do something like that.
>

Thanks. This is exactly what I needed.



reply via email to

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