Label Features

You can provide a deep learning model with samples of features that you want it to find—a process called labeling. Rasters that have been labeled with features of interest are used as input to train a deep learning model.

With object detection, you can label images using annotations or regions of interest (ROIs). The result is an object detection raster. This is the same as a deep learning raster, except that it contains additional information about bounding boxes, stored in the raster metadata.

With pixel segmentation, you can label images using ROIs. The result is a label raster.

Features can be two-dimensional; for example, outlines of buildings and parking lots. One-dimensional features include roads, paths, and railroad tracks. Point features include the locations of trees or stop signs.

You can train a deep learning model to look for one feature, which results in a binary classification image. Or you can train it to look for multiple features, which results in a classification image with multiple classes. This is the most common scenario.

To create label rasters, you need at least one input image from which to collect samples of the features you are interested in. These are called training rasters.

Prepare Training Rasters

Training rasters are images that you label with rectangle annotations (object detection) or ROIs (pixel segmentation). They can originate from any sensor or data type that ENVI supports, as long as you convert them to ENVI raster format (.dat) first. See the Supported Data Types topic in ENVI Help for a list of supported data types.

If you are working with one large training raster, it may take too much time to label all of the features in the entire image. Consider creating a spatial subset of the image to use for training purposes, then draw annotations or ROIs on the features in the subsetted image. To create a spatial subset, select File > Save As from the ENVI menu bar, select the file to subset, then click the Spatial Subset button.

You can also label multiple images for training. The images can be different sizes. For example, you may have dozens of UAV images that each cover a small area. Defining annotations or ROIs from multiple images can provide more general results in a deep learning model, compared to using a single image.

Obtaining quality results from ENVI Deep Learning depends in part on the quality and integrity of the spectral data in your images. Some preprocessing steps may be necessary to normalize the different images used for training and classification.

After preparing the training rasters, use the Deep Learning Labeling Tool or standalone tools to create labeled data for training.

Use Standalone Tools to Create Labeled Data

You can also create labeled data by using the following tools:

See Also

Build Label Rasters from Classification Images, Tips for Labeling Features