X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Aug 2007 10:03 AM by  anon
Launching ROI tool from script
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:25
New Member


--
27 Aug 2007 10:03 AM
    I have written a program that creates rois (using envi_create_roi) that I may (or may not) want to display in my image group. However these rois do not display without me remembering to have the roi tool already open (which I sometimes forget to launch because I use this program somewhat infrequently). Anyway, is there a way that I can automatically open and close the roi tool for a display group from a script?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    27 Aug 2007 10:03 AM
    Although it is undocumented (and thus unsupported and could change in the future), you can use the following: ENVI> dn=envi_get_display_numbers() ENVI> print, dn 0 ENVI> envi_disp_pixmap_init, dn, /image, /scroll, /zoom ENVI> disp_roi_tool_init, dn, hide_window=1, win=win disp_roi_tool_init, dn, hide_window=0, win=win <- displays ROI window Note: If you do not set the win, then the image window will be set with the ROI "focus" by default. If you set win=3, then the ROI Tool will be set to "off" by default.
    You are not authorized to post a reply.