X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Dec 2013 12:54 PM by  anon
load ROI and obtain ROI ids?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Dec 2013 12:54 PM
    Is there a way to load an ROI file and obtain the ROI ids that were loaded? Currently, I delete all ROIs in memory, load the ROI file, and then get all ROI ids in memory: ; Close all ROIs roi_ids = envi_get_roi_ids() foreach roi, roi_ids do begin ENVI_DELETE_ROIS, roi endforeach ; Open ROIs and get ROI IDs envi_restore_rois,roiFilename roiIds = ENVI_GET_ROI_IDS(roi_names=roiNames, /short_name) The side effect of removing all ROIs except for the one that is loaded is distressing. Is there a better way to load and get the IDs of an ROI?

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Dec 2013 02:28 PM
    Solution: use ENVI::OpenROI within the new ENVI5.1 API. I'm excited about the ENVIROI object -it will be very helpful for my project.
    You are not authorized to post a reply.