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

Home » Public Forums » archive » Re: Mapping image into a polar-square coordinate
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: Mapping image into a polar-square coordinate [message #61187 is a reply to message #61184] Wed, 09 July 2008 07:47 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
seems like my previous post got lost...
anyway I am suggesting to use interpolation (i.e. BILINEAR)
to convert from cartesian to polar coordinates.
That should be pretty fast.

Ciao,
Paolo

cmejiapr...@gmail.com wrote:
> Hi programmers,
>
> I have an image and I want to map an annulus of it (matrix 981X 981)
> onto a rectangular axes whose columns are the angle, and the rows are
> the radius to the central pixel. I tried:
>
> ;data has the image
> xx1 = findgen(4096,10)*0.
> for i=0,1023 do begin
> roll=i*360./4096.
> SB=rot(data,-roll,1,490.5,490.5,cubic=-0.5,missing=-1,/pivot )
> xx1[i,*]=SB[50:59,490]
> for j=0,9 do xx1[i+2048,j]=SB[930-j,490]
> xx1[i+3072,*]=SB[490,50:59]
> for j=0,9 do xx1[i+1024,j]=SB[490,930-j]
> endfor
>
> But it takes too long to run, i need something faster. Any advise?
> Thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: about READ_ASCII format and PRINT a double array
Next Topic: Re: SHA-1, MD5, etc inquiry

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

Current Time: Sat Oct 11 15:45:45 PDT 2025

Total time taken to generate the page: 0.01166 seconds