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

Home » Public Forums » archive » Re: print, pixel coordinates?
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: print, pixel coordinates? [message #49503] Tue, 01 August 2006 12:47
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
oops, I forgot one parameter

indices1D = where(data gt 0)
indices2D = array_indices(data, indices1D)

for each location i
x = indices2D[0,i]
y = indices2D[1,i]

Jean

> adisn123@yahoo.com wrote:
>
>> Hello,
>>
>> Is there any command or procedure that prints out pixel coordinates in
>> an array such as
>>
>> (140, 100) ;; x pixel coordinate 140 and y pixel coordinate 100 ?
>>
>> I'm trying to get the only pixel coordinates corresponding to their
>> pixel values are greater 0 (zero).
>>
>> Thanks.
>>
Re: print, pixel coordinates? [message #49504 is a reply to message #49503] Tue, 01 August 2006 12:46 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
indices1D = where(data gt 0)
indices2D = array_indices(data)

for each location i
x = indices2D[0,i]
y = indices2D[1,i]

Jean

adisn123@yahoo.com wrote:
> Hello,
>
> Is there any command or procedure that prints out pixel coordinates in
> an array such as
>
> (140, 100) ;; x pixel coordinate 140 and y pixel coordinate 100 ?
>
> I'm trying to get the only pixel coordinates corresponding to their
> pixel values are greater 0 (zero).
>
> Thanks.
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: print, pixel coordinates?
Next Topic: correlation of images

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

Current Time: Wed Oct 08 17:44:19 PDT 2025

Total time taken to generate the page: 0.00403 seconds