X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Feb 2011 10:39 AM by  anon
ROI with the same area
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
14 Feb 2011 10:39 AM
    Hello, I need some ROIs with the same area. I created a recatngle ROI and saved it as ASCII code, then I added same values to X and Y and saved new ASCII code. I opend the new ASCII code using 'Input points from ASCII' but the new ROI is not a rectangle, it is a polyline! Can anybody help me with this? Thanks in advance.

    Deleted User



    New Member


    Posts:
    New Member


    --
    14 Feb 2011 01:59 PM
    Unfortunately, ENVI's tools for exporting ROIs to ASCII and for importing ROIs from ASCII are not designed to work together. As you've seen, if you export an existing ROI to an ASCII file, ENVI will output information for every pixel inside that ROI, regardless of whether it's a polygon, point, or polyline ROI (or a combination of those). When you use the tool in the ROI Tool under ROI_Type > Input Points from ASCII, ENVI expects that you will choose an ASCII file that gives only the vertices for the ROI you wish to create. So, if you want to import a rectangular ROI from an ASCII file, you will need to build that file yourself, entering x and y coordinates for every vertex in your polygon. The last vertex should be identical to the first vertex. That is how ENVI will know that the polygon is done. - Peg

    Deleted User



    New Member


    Posts:
    New Member


    --
    16 Feb 2011 08:11 AM
    Thank you, it's working now :)
    You are not authorized to post a reply.