Re: print, pixel coordinates? [message #49503] |
Tue, 01 August 2006 12:47 |
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  |
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.
>
|
|
|