X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09 Aug 2017 12:15 PM by  MariM
Using one set of ROIs on multiple raster files for MLC
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Audrey Riddell



New Member


Posts:
New Member


--
07 Aug 2017 10:59 AM
    I am working on a large-scale ML classification project that consists of over 100 raster files. Because the files are too large to stitch together and classify as one image, I would like to find a way to create a set of ROIs from one or two rasters that can then be applied to the entire set. Can this be accomplished in ENVI? I would imagine the ROIs can be converted to general spectral signatures that can be identified in each raster, but I haven't found a tool that can accomplish this.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    09 Aug 2017 12:15 PM
    You can't really do this with a spectral library because the pixels in the ROI will be converted to a mean spectrum so you will only have one sample for each class and there is no way to 'group' spectra into classes for a classification. Maximum likelihood and other classifiers that require the calculation of covariance will need to have multiple samples per class (number of bands + 1). A spectral library can only work with classifiers such as SAM or minimum distance. However, I think the best way to accomplish this is to use the API where you can calculate the statistics needed from the ROIs on one image and then apply those statistics to other images. They images must have the same number of bands to do this (so it matches what is in the covariance matrix). I would use ENVIROIStatisticsTask and then pass this to ENVIMaximumLikelihoodClassificationTask. If you prefer ENVI Classic API, this would be ENVI_STATS_DOIT and CLASS_DOIT.
    You are not authorized to post a reply.