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 #72356 is a reply to message #72355] Fri, 27 August 2010 07:26 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Aug 27, 11:23 am, Snow53 <jennifer_wa...@hotmail.com> wrote:
> Hi,
>
> I have an image where all the DNs are 0.  I need to change the pixel
> values to numbers that increase by 1 according to pixel location in
> the array. For example: 1,2,3,4,5,6,7..... 700. It seems like it
> should be easy to do... Any suggestions?
>
> Thanks!

It seems you want

image=lonarr(nx,ny)

where nx,ny are the dimensions.
[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: Sun Oct 12 05:01:04 PDT 2025

Total time taken to generate the page: 0.32015 seconds