X

NV5 Geospatial Blog

Each month, NV5 Geospatial posts new blog content across a variety of categories. Browse our latest posts below to learn about important geospatial information or use the search bar to find a specific topic or author. Stay informed of the latest blog posts, events, and technologies by joining our email list!



NV5 at ESA’s Living Planet Symposium 2025

NV5 at ESA’s Living Planet Symposium 2025

9/16/2025

We recently presented three cutting-edge research posters at the ESA Living Planet Symposium 2025 in Vienna, showcasing how NV5 technology and the ENVI® Ecosystem support innovation across ocean monitoring, mineral exploration, and disaster management. Explore each topic below and access the full posters to learn... Read More >

Monitor, Measure & Mitigate: Integrated Solutions for Geohazard Risk

Monitor, Measure & Mitigate: Integrated Solutions for Geohazard Risk

9/8/2025

Geohazards such as slope instability, erosion, settlement, or seepage pose ongoing risks to critical infrastructure. Roads, railways, pipelines, and utility corridors are especially vulnerable to these natural and human-influenced processes, which can evolve silently until sudden failure occurs. Traditional ground surveys provide only periodic... Read More >

Geo Sessions 2025: Geospatial Vision Beyond the Map

Geo Sessions 2025: Geospatial Vision Beyond the Map

8/5/2025

Lidar, SAR, and Spectral: Geospatial Innovation on the Horizon Last year, Geo Sessions brought together over 5,300 registrants from 159 countries, with attendees representing education, government agencies, consulting, and top geospatial companies like Esri, NOAA, Airbus, Planet, and USGS. At this year's Geo Sessions, NV5 is... Read More >

Not All Supernovae Are Created Equal: Rethinking the Universe’s Measuring Tools

Not All Supernovae Are Created Equal: Rethinking the Universe’s Measuring Tools

6/3/2025

Rethinking the Reliability of Type 1a Supernovae   How do astronomers measure the universe? It all starts with distance. From gauging the size of a galaxy to calculating how fast the universe is expanding, measuring cosmic distances is essential to understanding everything in the sky. For nearby stars, astronomers use... Read More >

Using LLMs To Research Remote Sensing Software: Helpful, but Incomplete

Using LLMs To Research Remote Sensing Software: Helpful, but Incomplete

5/26/2025

Whether you’re new to remote sensing or a seasoned expert, there is no doubt that large language models (LLMs) like OpenAI’s ChatGPT or Google’s Gemini can be incredibly useful in many aspects of research. From exploring the electromagnetic spectrum to creating object detection models using the latest deep learning... Read More >

1345678910Last
«October 2025»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
17369 Rate this article:
4.8

Using ENVI Tools to Create Labeled Images for Deep Learning

Jason Wolfe

With the release of the ENVI® Deep Learning module, the process of extracting features from images has become much simpler for remote sensing users. As I discussed in my last blog article, part of this simplicity comes from the ability to use ENVI’s preprocessing and spectral tools to create labeled datasets. Why spend countless hours tediously drawing regions of interest (ROIs) around example features, when you could partially automate the labeling process? In this article I will show an example where I used band ratio images to create labeled datasets for training and validating a deep learning model to look for man-made ("built-up") features in aerial imagery.

I downloaded 16 adjacent National Agriculture Imagery Program (NAIP) images from the USGS EarthExplorer site. These were 1-meter, four-band images of a region in northern San Antonio, Texas, acquired in October of 2016. I used the ENVI Seamless Mosaic tool to quickly create a georeferenced mosaic from the images. Then I created two spatial subsets from the mosaic: one for training and another for validating that the deep learning model correctly learns the features I am interested in. My ultimate goal was to extract from the NAIP mosaic all of the roads, disturbed earth, structures, and other features that indicated human development.

Normally I would draw polyline and polygon ROIs over all of the built-up features in the training and validation images. However, I tried a faster process instead:

1. Create a blue / near-infrared band ratio image that highlights these features while suppressing the spectral signature of vegetation.

2. Apply a 5% linear stretch to the ratio image using Run Task > Linear Percent Stretch Raster in the ENVI Toolbox. This provided even more contrast between the built-up features and the background.

3. Create an ROI threshold layer from the stretched image, where pixel values above 200 are highlighted in red.

4. Use the Run Task > Convert ROIs to Classification task in the ENVI Toolbox to convert the result to a classification image.

The result provided a good starting point for identifying the feature pixels in the training and validation images, without requiring any drawing or labeling by hand. The result was not perfect, so some further but minimal editing was needed. I used the Edit Classification Image tool to remove incorrectly classified pixels such as shadows and water, and I added several more pixels to the “built-up” class.

5. Use the Deep Learning > Build Label Raster From Classification tool to create a label raster for training a deep learning model.

The entire process of steps 1-5 only took about 20 minutes, plus it had the added benefit of defining the shapes of the built-up features rather than just marking their locations. Training a deep learning model to identify these features took an additional 30 minutes on my system with an 8 GB graphics card. Then I used the trained model to classify the entire NAIP mosaic, which only took a few minutes. Here is a sample of the resulting class activation image. The model learned to identify nearly all of the built-up features, shown in white below:

Here is a comparison between a NAIP mosaic sample and the corresponding class activation image:

Applying a raster color slice to the class activation image shows the areas with the highest probability (red-orange) of belonging to the “built-up” class. Similar models can be trained and applied to extract rooftops and impervious surfaces from images that cover wide geographic areas.

In closing, the wide variety of image-processing tools in ENVI can help speed up the process of preparing data for deep learning. One example would be using target detection tools such as Adaptive Coherence Estimator (ACE) or Matched Filter to label features of interest in hyperspectral imagery. Other spectral tools that can effectively highlight objects in imagery include Spectral Indices, Principal Component Analysis, and Dimensionality Expansion.

Please login or register to post comments.