X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 24 Feb 2011 07:32 AM by  anon
Reconcile ROIs via map in ENVI batch mode
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
24 Feb 2011 07:32 AM
    Hi, I'd like to know how I can extend the "reconcile ROIs via map" ENVI command, to ENVI batch mode. I'm trying to use ROIs, previously defined in one RGB image, to classify a new hyperspectral image... But I can't find the right ENVI routines. Can you help me please? Thanks very much!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    01 Mar 2011 07:36 AM
    There is no ENVI routine to perform Reconcile ROIs via Map but you could use other routines in ENVI to do the same thing. You would need to open the ROI on the first image, then use ENVI_GET_ROI to get all the ROI addresses from the first image. Then use ENVI_CONVERT_FILE_COORDINATES to convert the pixel addresses to map coordinates. Once you have the map coordinates of the ROIs, then you can work on the second image by again using ENVI_CONVERT_FILE_COORDINATES on the second image with the map coordinates to convert them to pixel coordinates. Once you have the pixel coordinates of the ROI on the new image, you can generate a new ROI using ENVI_CREATE_ROI, ENVI_DEFINE_ROI and ENVI_SAVE_ROIS.
    You are not authorized to post a reply.