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: Søren Hauberg
Subject: Re: Filtering an image with a space-dependent function
Date: Sat, 23 Jan 2010 13:57:56 +0100

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.

Søren



reply via email to

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