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

Home » Public Forums » archive » Re: Combining subimage data to corresponding X and Y location
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: Combining subimage data to corresponding X and Y location [message #40462] Wed, 11 August 2004 05:06 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Roy wrote:
> I'm not sure how to approach this. Say I have multiple x and y index
> locations only. Each x and y locations I have a 7x7 image separately.
> I would like to combine the corresponding 7x7 image to x and y
> coordinates.
>

Hi,

Assuming you want to build a mosaic of all these small images... I think you
could start with the following. Depending upon how X and Y are defined, you may
need to fiddle with the coordinates in arr[X[i], Y[i]] within the loop.

minX = MIN(X, max = maxX)
minY = MIN(Y, max = maxY)

w = maxX + 7
h = maxY + 7

arr = BYTARR(w,h)

For i = 0L, nSubImages-1 do $
arr[X[i], Y[i]] = SubImage[i]




Ben
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Passing Structures with Pointers with Call_External
Next Topic: Multiple IDL versions

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

Current Time: Wed Oct 08 14:09:20 PDT 2025

Total time taken to generate the page: 0.00442 seconds