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

Home » Public Forums » archive » Re: Obtain Pixel values in ENVI and report those to IDL
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: Obtain Pixel values in ENVI and report those to IDL [message #64131 is a reply to message #64130] Thu, 04 December 2008 06:39 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
david.b.valdez@gmail.com wrote:
> I need to obtain pixel values interactively, via my cursor in an ENVI
> displayed image and report those out to IDL so I can read them into
> the REGION_GROW routine. This may seem simple but I can�t figure it
> out.
>
> Thanks for your help.
> Dave

Hi Dave,

ok, since no specialist have answered, here is a try.

First, I doubt you are doing the right program "combination"... I
believe you should either do everything within IDL (open an image,
select the pixel, grow your region), or within Envi, by calling an IDL
function... but transferring data back and forth is likely going to be
a pain.

For the first option, well, the degree of complexity depends on what is
your data and your goal...

;Open your image
openr, unit,image, /get_lun
readu, unit, img
close, unit & free_lun, unit

;display it
tvimage, img

;select a pixel
cursor,x,y

;grow your region and else!

---------
For the second option, read in Envi help under menu/item user values. It
tells you how to integrate an IDL program in Envi.

Your program would, I guess, be like
;select a pixel
cursor,x,y

;grow your region and else!


Hope this helps!
Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Library
Next Topic: Re: color value interpolation from colorbar

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

Current Time: Sun Oct 12 15:02:20 PDT 2025

Total time taken to generate the page: 1.68091 seconds