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

Home » Public Forums » archive » Re: how to read/display an image like it's done in ENVI?
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: how to read/display an image like it's done in ENVI? [message #69234 is a reply to message #69233] Mon, 28 December 2009 17:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Hassan writes:

> I have an multi-band image [488,290,62] and opened it in ENVI. I need
> to work with a particular pixel for example pixel with column 300 and
> row 160 in band 1. after importing the image in IDL, i couldnt find
> the pixel.
> print, image[300,160,0] >>> it shows me a pixel value that is
> different with the one is shown in ENVI
> I flipped the image (using reverse function) and consider it starts
> with column=0 and row=0 in IDL but still couldnt find the pixel.
> image=reverse[image,2]
> print, image[299,159]
>
> I'm not sure if I describe the problem clearly so please let me know
> if you need more explanation.

ENVI uses an indexing system that starts at [1,1],
rather than the [0,0] of IDL. Could that be the
problem?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 8.0 compile_opt changes
Next Topic: Convolve a spectrum (from MODTRAN) with a spectral response function

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

Current Time: Wed Oct 08 15:59:19 PDT 2025

Total time taken to generate the page: 0.00194 seconds