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

Home » Public Forums » archive » Identifying tags within a region
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: Identifying tags within a region [message #94118 is a reply to message #94115] Fri, 20 January 2017 10:36 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
It is not clear to me what you are trying to do. Is this anything like what you need?

;Create two arrays of the same size but different values
img1 = bindgen(5,5)
img2 = bindgen(5,5)+10B

;Select a subset of points
ipos = where(img1 gt 6 and img1 lt 18, count)

;Show the pixels in img1 that I selected:
print, img1
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
print, img1[ipos]
7 8 9 10 11 12 13 14 15 16 17

;Now, to extract the same points in img2, just use the same indices
print, img2
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
25 26 27 28 29
30 31 32 33 34
print, img2[ipos]
17 18 19 20 21 22 23 24 25 26 27
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VELOVECT Procedure
Next Topic: GDL 0.9.7 delivered

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

Current Time: Fri Oct 10 08:24:28 PDT 2025

Total time taken to generate the page: 0.32102 seconds