Showing results for 
Search instead for 
Do you mean 

How to convert a binary raster file to an AOI layer that only covers the pixels with a value of zero.

by Technical Evangelist on ‎03-03-2016 01:20 PM - edited on ‎03-21-2016 02:16 PM by Anonymous (1,403 Views)

Question

How to convert a binary raster file to an AOI layer that only covers the pixels with a value of 0 (zero)?

Answer

 

  1. Display the raster mask image as Pseudo Color in a 2D View in ERDAS IMAGINE.
  2. Add a new AOI layer to the same 2D View.
  3. Click on the name of the raster mask image in the Contents panel to select/highlight it and open the raster attribute table (Table tab > View group > Show Attributes).
  4. In the attribute table, click under the Row column for the 0 (zero) row so that it is selected/highlighted.
  5. Click on the name of the AOI layer in the Contents panel so that it is selected/highlighted and then click the ‘Paste from Selected Object’ icon under the Drawing tab (Drawing tab > Edit group > Paste from Selected Object). **Please note that the Paste from Selected Object icon is located to the right of the Paste button.
  6. Save your AOI layer.

 

Comments
by Technical Evangelist
on ‎11-28-2017 06:24 AM

The source raster does not need to be binary. At step 4 simply select the class(es) that you are interested in converting to an AOI. In this manner you can convert any raster class to an AOI for use elsewhere (e.g. in subsetting from another image just the extent of those selected classes)

Contributors