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 
Switch to threaded view of this topic 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 next 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
Re: Combining subimage data to corresponding X and Y location [message #40543 is a reply to message #40462] Wed, 11 August 2004 22:05 Go to previous message
roberson_1 is currently offline  roberson_1
Messages: 10
Registered: November 2003
Junior Member
Ben,
Multiple attempts were made with like success.
For clarification:
Each Cent(X,Y) corresponding subimage of 7x7. Ultimately I would
like to take the Center of Mass for each 7x7 and plot with
corresponding Cent(X,Y) to create a larger plot. This will provide
how the Center of Mass changes for each Cent(X,Y) position.


Cent(X, Y)

127.587 113.962
127.349 114.008
127.163 113.999
127.046 114.055

Subimage correspond to index

Correspond to Cent(127.587 113.962)

0.574781 0.710174 1.11613 0.0628676 2.15884 3.5404
0.647435
0.670192 0.185538 2.38176 0.442169 4.13978 0.151913
1.47754
2.24566 15.9491 45.5041 94.6264 18.2580 0.0686491
1.44638
2.48683 16.2041 259.903 385.790 19.8509 0.343980
1.73635
1.92025 14.9985 32.3723 48.7690 12.0859 0.151753
1.14184
0.769 16.1704 2.40366 0.184009 2.51515 0.27841 0.673695
0.351 0.670803 0.816290 0.0503372 1.90759 1.15470
0.329367

correspond to Cent(127.349 114.008)

0.288 0.4370 0.132015 1.73068 1.68882 1.76559
6.35460
0.512 0.8411 0.305682 2.07841 0.133799 2.88058
.33530
2.868 1.9999 16.1136 45.7067 78.0784 8.38238
0.358980
0.120 2.954 31.5873 413.959 243.524 10.6291
0.755168
0.060 1.53505 15.4157 43.8277 61.5118 6.78420
0.154925
.331 1.25932 13.3936 3.20198 0.187799 2.79623
0.480235
0.6992 0.9278 0.694831 0.985312 0.0431018 1.98963
0.823900

correspond to Cent(127.163 113.999)

0.637 0.773767 0.550062 1.99125 3.29427 1.54251
1.96374
0.082 1.06654 0.135859 2.48278 0.0664921 2.45176
0.961280
2.192 2.57012 15.5122 57.0412 62.9456 5.15841
0.311429
0.675 3.34858 45.6092 524.321 124.719 6.8496
1.64153
0.545 1.82779 20.5371 44.8762 47.0801 2.5676
0.314900
0.935 1.70456 10.8676 3.22960 0.0677238 3.1281
0.109825
0.217 0.853791 0.684039 1.05142 0.0112753 1.66123
0.0886411


ETC�.
  Switch to threaded view of this topic Create a new topic Submit Reply
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 19:24:07 PDT 2025

Total time taken to generate the page: 0.00570 seconds