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

Home » Public Forums » archive » Re: A problem with envi_save_rois
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: A problem with envi_save_rois [message #66336 is a reply to message #66335] Fri, 01 May 2009 05:31 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
frasca wrote:
> Hi,
>
> Please could some one tell me why the following program does not
> work?

try adding "envi" at the top of your procedure... it will give you
access to the Envi's functions
Jean

>
> pro veamos, event
> ;
> ; Choose the bhtmref.img file
> ;
> ENVI_SELECT, fid=fid
> ;
> ; Get the dimensions for this
> ; file and create an ROI
> ;
> ENVI_FILE_QUERY, fid, dims=dims
> roi_id = ENVI_CREATE_ROI(ns=ns, nl=nl, $
> color=4, name='Square')
> ;
> ; Define the square and add
> ; the polygon object to the ROI
> ;
> xpts = [100, 200, 200, 100, 100]
> ypts = [100, 100, 200, 200, 100]
> ENVI_DEFINE_ROI, roi_id, /polygon, $
> xpts=xpts, ypts=ypts
>
> ENVI_SAVE_ROIS, 'Square.roi', roi_id
>
> end
>
> When executed is says:
>
> Variable is undefined ENVI_ROIS(ENVI_ROI_COMMON) The result may be
> invalid
>
> It looks like I follow the rules in the reference guide, actually
> except for the envi_save_roi is a copy and paste of the
> envi_create_roi (page 191)
>
> Thanks in advance,
> Jose
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: remove duplicate elements from a multi-dimensional array efficiently in IDL
Next Topic: symsize in data units

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

Current Time: Fri Oct 10 04:53:23 PDT 2025

Total time taken to generate the page: 0.08230 seconds