X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Jun 2010 10:12 AM by  anon
generate random points with certain restrictions
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Jun 2010 10:12 AM
    Hello, So I am sort of stuck on trying to generate random points with certain restrictions in ENVI 4.5. I have successfully generated 60 random points with the “Post Classification- Generate Random Sample” for an image classification using the vegetation delineation tool. The vegetation delineation tool generated four vegetation densities using NDVI: 1) noveg, 2) sparseveg, 3) moderateveg and 4) denseveg. I have used both stratified random sampling as well as random. However what I really want to do is the following: I want to generate 60 random points through the 1m resolution classification image (the one generated using the vegetation delineation tool). I want each of the 60 points to be the center of a 53 pixel X 53 pixel square (53m2 area) that have the following conditions: 15 points: To have <10% of pixels of denseveg 15 points: To have =10% & <25% of pixels of denseveg 15 points: To have =25% & <65% of pixels of denseveg 15 points: To have =65% of pixels of denseveg I want to also mask the noveg class and some clouds and their shadows from the analysis. I have the clouds as a ROI and can make the noveg class as a ROI as well. Is this possible? Does anybody have any ideas on how to do it? I appreciate any insight any of you all might have. Thank you Colibrí

    Deleted User



    New Member


    Posts:
    New Member


    --
    02 Jun 2010 11:58 AM
    This probably won't be much help, but what you're describing is something you would need to add to ENVI with IDL code. Are you up for that? I'm pretty sure there's no way to do this in ENVI, without writing your own code for it. Let us know if you're asking for ideas for coding, or wanted to stick only to things you can do with the built-in ENVI tools.
    You are not authorized to post a reply.