Re: [Numpy-discussion] adaptive thresholding: get adacent cells for each pixel

2006-06-10 Thread stephen emslie
Thanks for all the help!Convolving looks like a great way to do this, and I think that mean will be just fine for my purposes.That iterator also looks fantastic and is actually the sort of thing that I was looking for at first. I havn't tried it yet though. Any idea how fast it would be? StephenOn

Re: [Numpy-discussion] adaptive thresholding: get adacent cells for each pixel

2006-06-10 Thread Alex Liberzon
Not sure, but my Google desktop search of "medfilt" (the name of Matlab function) brought me to: info_signal.py - N-dimensional order filter. medfilt -N-dimensional median filter If it's true, then it is the 2D median filter. Regarding the neighbouring cells, I found the iterator on 2D ranges on

Re: [Numpy-discussion] adaptive thresholding: get adacent cells for each pixel

2006-06-10 Thread Alan G Isaac
On Sat, 10 Jun 2006, stephen emslie apparently wrote: > I'm just starting with numpy (via scipy) and I'm wanting to perform > adaptive thresholding > (http://www.cee.hw.ac.uk/hipr/html/adpthrsh.html) on an image. The ability to define a function on a neighborhood, where the neighborhood is def

Re: [Numpy-discussion] adaptive thresholding: get adacent cells for each pixel

2006-06-10 Thread Johannes Loehnert
Hi, > I'm just starting with numpy (via scipy) and I'm wanting to perform > adaptive thresholding > (http://www.cee.hw.ac.uk/hipr/html/adpthrsh.html) on an image. > Basically that means that I need to get a threshold for each pixel by > examining the pixels around it. In numpy this translates to f

Re: [Numpy-discussion] adaptive thresholding: get adacent cells for each pixel

2006-06-10 Thread Filip Wasilewski
Hi, > I'm just starting with numpy (via scipy) and I'm wanting to perform > adaptive thresholding > (http://www.cee.hw.ac.uk/hipr/html/adpthrsh.html) on an image. > Basically that means that I need to get a threshold for each pixel by > examining the pixels around it. In numpy this translates to f

[Numpy-discussion] adaptive thresholding: get adacent cells for each pixel

2006-06-09 Thread stephen emslie
I'm just starting with numpy (via scipy) and I'm wanting to perform adaptive thresholding (http://www.cee.hw.ac.uk/hipr/html/adpthrsh.html) on an image. Basically that means that I need to get a threshold for each pixel by examining the pixels around it. In numpy this translates to finding the adja