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í
|