MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: neighborhood operations on image

  • To: mathgroup at
  • Subject: [mg129467] Re: neighborhood operations on image
  • From: Bill Rowe <readnews at>
  • Date: Wed, 16 Jan 2013 01:39:43 -0500 (EST)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

On 1/14/13 at 11:32 PM, siddys at wrote:

>I am really impressed by the new set of image processing operations
>in Mathematica 9. I am, however, having trouble defining my own
>operations, and one of the things I do very frequently in another
>system, is neighborhood operations.  I would like to do these things
>in Mathematica,and would like so help:

>How do I define a function that takes an Image, and performs
>operations, say, on a 3x3 nbdh for all pixels. I would like to use
>the functional programming paradigm. Filter is one such operation. I
>would love to see how Mathematica does it internally, but I am not
>able to find it.

There are a many ways within Mathematica to manipulate images
using a function based on any desired neighborhood for pixels
within that image.

Probably the function you want to use is ImageConvolve or a
related function such as ImageCorrelate.

If these are too high level, i.e., you want to manipulate the
image data directly, then there are functions like ListConvolve
or ListCorrelate. Both ListConvolve and ListCorrelate allow you
to specify arbitrary functions to operate on array elements (pixels).

  • Prev by Date: Re: Mathematica and Lisp
  • Next by Date: Re: Export with append??
  • Previous by thread: Re: neighborhood operations on image
  • Next by thread: random walk