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

Home » Public Forums » archive » Objects in ENVI ROI files
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: Objects in ENVI ROI files [message #84500 is a reply to message #48839] Wed, 22 May 2013 06:40 Go to previous message
zhour.najoui is currently offline  zhour.najoui
Messages: 2
Registered: May 2013
Junior Member
I tried the code, but the number of polygons that I got is different from the number of polygons in the file .roi (I Verife using ENVI ==> basic tools ==> region of interest ==> ROI tools).
I thought to do this step on ENVI (ROI TO EVF) and I need to know how to get the number of polygons in each region ROI from my program.
I can get the number of points in each region = n_elements(roi_addr )
but how to get the number of polygons in each region?
here is part of my code :

;----------------------------------
; Load the region_of_interest file
;---------------------------------
envi_restore_rois, region_of_interest ; Restore the ground truth ROIs
if (fid eq -1) then return
roi_ids = envi_get_roi_ids(fid=fid, roi_names=roi_names)
class_ptr = lindgen(n_elements(roi_ids)) + 1
if (roi_ids[0] eq -1) then begin
print, ' ROIs not found'
return
endif

for i=0, n_elements(roi_ids)-1 do begin
roi_addr = envi_get_roi(roi_ids[i], roi_name=name)
ENVI_GET_ROI_INFORMATION,roi_ids, ns=ns, nl=nl, npts=npts

endfor

thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FG Save method -- Gifs
Next Topic: data with number of columns variables

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

Current Time: Wed Oct 08 13:53:17 PDT 2025

Total time taken to generate the page: 0.00362 seconds