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

Home » Public Forums » archive » Re: convert image DN to unique values
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: convert image DN to unique values [message #72352] Fri, 27 August 2010 07:47 Go to previous message
Snow53 is currently offline  Snow53
Messages: 32
Registered: July 2010
Member
On Aug 27, 8:42 am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Aug 27, 11:34 am, Snow53 <jennifer_wa...@hotmail.com> wrote:
>
>>> It seems you want
>
>>> image=lonarr(nx,ny)
>
>>> where nx,ny are the dimensions.
>
>> Thanks, but I can get the array with no problem.  What I'd like to
>> figure out is how to change those values of 0 within the array, so
>> that they increase by 1 for each position in the array.
>
>> ... a better example.  If I have an array(2,2) where the values are
>> 00  , and I want  01  , what is the best way to do so?
>
>> 00                      2 3
>
> Oops. I meant lindgen(nx,ny).

Fantastic! Many thanks :)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: convert image DN to unique values
Next Topic: Search across open .pro files

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

Current Time: Fri Oct 10 11:18:14 PDT 2025

Total time taken to generate the page: 0.91832 seconds