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

Home » Public Forums » archive » Re: Array indices and lookup tables
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: Array indices and lookup tables [message #39719 is a reply to message #39714] Thu, 10 June 2004 01:39 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <ca72v6$qlb$1@aplcore.jhuapl.edu>, "Haje Korth"
<haje.korth@jhuapl.edu> wrote:


> Good morning all,
> I am working on a coordinate transformation for a map and I have a
> simple problem. My mind is alreay blocked early in the morning and I
> could use some input: I have an rgb image of dimensions [3,1440, 720]. I
> need to rearranged the pixel in the image according to a lookup table of
> dimension [2,1440,360], which contains the column and row of the new
> pixel assigned to a location. Is there a magic way to do this without
> looping through each pixel in IDL?
> Thanks for helping,
> Haje
>

The lookup table....Why is there only 360 points in the third dimension,
not 720?

I'm assuming the dimensions go as:
1st: [column, row]
2nd: new X location
3rd: new Y location

If the 2nd and 3rd dimensions are the location of the point in the new
image then you have a list of 1440*360
points linking the old coordinates to the new grid?

TRIANGULATE and TRIGRID should work then? using the XOUT and YOUT
keywords to set your output grid.


Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Object Graphics Fonts
Next Topic: IsoSurface Contour projection

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

Current Time: Sun Oct 12 00:39:23 PDT 2025

Total time taken to generate the page: 0.01017 seconds