X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 31 Mar 2016 09:35 PM by  anon
Clipping from classification file
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
31 Mar 2016 09:35 PM
    I have generated a classification file in ENVI 5.2 using Raster color Slice. The bound (outer boundary in .shp format) clip the Landsat scene to a square box. I want to delete the extra classes out of boundary. Is there any way to clip, or delete those pixels? If so, how?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    01 Apr 2016 02:27 PM
    Raster files are comprised of num_samples X num lines and thus will always be rectangular or square. There is no way to 'remove' pixels outside an irregular boundary but you can mask those pixels and make them transparent. To do this, import the vector to the ROI tool to create an ROI of your boundary. Then use Subset Data from ROIs. This gives you the option to set the pixels outside the boundary to a single value (such as 0). Then you can edit the ENVI Header file, and set the Data ignore value to this background value to make the background transparent.
    You are not authorized to post a reply.