Displaying raster Background Value as hollow for more than one set of RGB values using ArcMap?

Since 10.1, you can use the image analysis tools (Windows > image analysis) to create a mask function that will perform the masking on the fly

Using the Mask function, you will specify one or more NoData values or a range of valid pixel values.

The inputs for this function are the following:

Input Raster / NoData Interpretation / NoData Values / Included Ranges

NoData Interpretation refers to how the NoData values will impact the output image.

All—The NoData values you specify for each band must occur in the same cell for the output image to contain the NoData cell.

Any—If the NoData value you specify occurs for a cell in a specified band, then that cell in the output image will be NoData.

Here are the paraphrased instructions on how to implement this, from ESRI's documentation:

Adding a function

Each function in a function chain is represented by a function symbol function. To begin adding functions for the first time you need to click the Add Function button on the Image Analysis window. If the raster layer contains a Functions tab you can modify the chain and functions within that tab. If you wish to generate a new raster layer in the table of contents with an edited function chain, click the Function Editor... Add Function button. Getting to the function chain can vary, depending on if it exists.


These steps describe how to add a function to a raster layer for the first time.

  1. In ArcMap, open the Image Analysis window (click Window > Image Analysis).
  2. Select the layer in the Image Analysis window and click the Add Function button. The Raster Function Editor window opens containing a default function chain. The Identity function exists when there is no other function. Once you add a function, the Identity function disappears as it is no longer necessary.
  3. Right-click the Identity function, click Insert, then click the Mask Function to add. When you add a function, it is inserted above the function you clicked.
  4. Modify its settings and click OK. Once you click OK, the function chain will be validated. If the function you are adding invalidates the function chain it will not be added. You cannot drag and drop functions to change their position within the chain. You need to remove a function and add it to a new location if you want to move a function.

Add an opacity band to your ECW with the ERDAS Opacity Builder, part of the Apollo Essentials Utilities. That download page for Apollo Essentials Utilities states that "No license is required".

ArcGIS only alternative (from ESRI Australia):

From ArcCatalog:

  1. Create a new File Geodatabase.
  2. Create a new Mosaic Dataset: Right click on the geodatabase, New > Mosaic Dataset and enter your parameters, using your image’s coordinate system (with Import) and making sure to use the pixel properties from your ecw.
  3. Right click on the empty mosaic dataset and select: Add Rasters, then add your images and accept the defaults.
  4. Right click on the mosaic dataset and select: Build Overviews, and accept the defaults.

Then from ArcToolbox:

  1. Data Management Tools > Raster > Mosaic Dataset > Build Footprints … here you can set a ‘Maximum Data Value’ to squeeze out the whites that are above 250 for example. Accept the other defaults and press OK.