comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » [Q] hybrid median filter
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
[Q] hybrid median filter [message #4462] Thu, 22 June 1995 00:00
Ron Behling is currently offline  Ron Behling
Messages: 1
Registered: June 1995
Junior Member
I have PV-WAVE and I am looking for PV-WAVE/IDL code (or good ideas on how) to
implement a hybrid median filter. The "Image Processing Handbook" by John C.
Russ describes something he calls a "hybrid median filter" or "edge preserving
median". He says this median filter "overcomes the tendency to erase lines that
are narrower than the half-width of the neighborhood and to round corners." His
results look pretty good. An example of the pixels used in a 5x5 neighborhood
are shown below. As I understand it, the algorithm works by taking the median
of "a" pixels and median of the "b" pixels (both of which contain "c"), and
then the median of those results and the "c" pixels.

a - b - a
- a b a -
b b c b b
- a b a -
a - b - a

I would greatly appreciate any PV-WAVE code to do this filter, or any good
ideas about how to code it so it runs quickly. I would also appreciate knowing
about other, better ways to do neighborhood averaging while preserving edges.

Sincerely,
Ron Behling (behling@bms.com)
Bristol-Myers Squibb PRI
Princeton, NJ
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Can anyone explain?
Next Topic: Re: Reorganizing 2D FFT for Conventional Viewing [?]

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:52:59 PDT 2025

Total time taken to generate the page: 0.00574 seconds