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 #66335 is a reply to message #66333] Fri, 01 May 2009 06:47 Go to previous messageGo to previous message
josea.malpica is currently offline  josea.malpica
Messages: 12
Registered: March 2008
Junior Member
> try adding "envi" at the top of your procedure... it will give you
> access to the Envi's functions
> Jean


I just did it; I suppose this is what you mean:

pro veamos, event
;
; Choose the bhtmref.img file
;
ENVI
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


but it still keeps giving the same error.

Thanks anyway, for your response.

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 15:29:28 PDT 2025

Total time taken to generate the page: 0.63643 seconds