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

Home » Public Forums » archive » Warning -- Median "Feature"
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Warning -- Median "Feature" [message #9089] Tue, 27 May 1997 00:00
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
I am writing to warn those who use IDL's built in MEDIAN to perform
median filtering of images. It seems that if you specify an even box
size, the image is shifted up and to the right by one pixel (or at least
in some direction, perhaps depending on the exact number you use for the
box size). This effect becomes quite pronounced after a hundred
iterations of the filter or so! The solution is of course to use only
odd box sizes, but the "feature" is not documented anywhere I know of,
so I thought I'd pass it along. I don't know if smooth does the same
thing, but I'd expect it to (likely just a boundary wrapping issue).

JD

P.S. I haven't tried IDL 5's MEDIAN
P.P.S The NASA routine FILTER_IMAGE calls MEDIAN and is hence
susceptible to the same problem
[Message index]
 
Read Message
Previous Topic: vol_trans function in pv-wave
Next Topic: IDL communicate with FORTRAN

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

Current Time: Fri Oct 10 04:28:32 PDT 2025

Total time taken to generate the page: 0.71991 seconds