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

Home » Public Forums » archive » azimuthal median
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: azimuthal median [message #58081 is a reply to message #58026] Wed, 16 January 2008 00:38 Go to previous messageGo to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On Tue, 15 Jan 2008 10:48:12 +0100, Wox <nomail@hotmail.com> wrote:

> On Mon, 14 Jan 2008 14:22:10 +0100, Bringfried Stecklum
> <stecklum@tls-tautenburg.de> wrote:
>
>> Hi folks,
>>
>> I am looking for a faster way to compute the azimuthal median in
>> dependence on radius than the brute-force method, i.e. getting the index
>> of pixels within a certain annulus, and using median(image[idx]). Is
>> this another case for the histogram wizards out there?
>>
>> regards,
>>
>> Bringfried
>
> I'm not familiar azimuthal median but what about image warping:
>
>
> ; Make azimuthal range
> a0=0.
> a1=2*!pi
> ai=0.1
> na=ceil((a1-a0)/ai)+1
> ai=(a1-a0)/(na-1)
> a=a0+ai*indgen(na)
>
> ; Make radial range
> r0=10.
> r1=20.
> ri=0.1
> nr=ceil((r1-r0)/ri)+1
> ri=(r1-r0)/(nr-1)
> r=r0+ri*indgen(nr)
>
> ; Radius and azimuth for warped image
> r=rebin(r,nr,na,/sample)
> a=rebin(transpose(a),nr,na,/sample)
>
> ; X and Y for warped image (xc,yc is center)
> xmap=xc+r*cos(a)
> ymap=yc+r*sin(a)
>
> ; Warped image
> oimage=Interpolate(image,xmap,ymap,/cubic)
>
> ; Median
> m=median(oimage,dim=1)

Should be m=median(oimage,dim=2) otherwise you get the median as a
function of azimuth.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map Projection Problem Persists in Perpetuity
Next Topic: Re: Format of contour labels?

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

Current Time: Fri Oct 10 14:55:29 PDT 2025

Total time taken to generate the page: 0.72107 seconds