Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Latest Release
Dev
8.3.0
8.2.0
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0
USGS

ISIS Application Documentation


histmatch

Printer Friendly View | TOC | Home

Match histograms of 2 cubes

Overview Parameters Example 1 Example 2

Description

This program takes in two input images, FROM and MATCH, and uses their histograms to compute stretch pairs. The data in the stretch depends on which matching algorithm is chosen. If Culmulative Distribution Function (CDF) is chosen, the histogram data will be stored into stretch pairs at regular intervals, the default being every one percent between 0.5 and 99.5 percent. If MODE is chosen, only the histogram data at the endpoints and mode are stored. The pixels from the input image are remapped based on the data in the stretch pairs and the results are written to a new cube file. This is useful for tone matching two images. The following figures illustrate what is happening. Band 1 is FROM, Band 6 is MATCH, and CDF and Mode are two different output cubes. The blue line is the histogram and the red line is the cumulative distribution.
Band 1 image Output of CDF algorithm
Band 6 image Output of Mode algorithm
Notice how the endpoints, mode, and overall shape of Band 1's histogram is now roughly equivalent to Band 6.

Categories


Related Objects and Documents

Applications


History

Sean Crosby2006-12-04 Original version
Sean Crosby2007-03-12 Included ability to histmatch input cubes of different sizes
Steven Lambright2008-05-12 Removed references to CubeInfo

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/21/2025 19:28:11
X

Files: FROM


Description

This file will have its histogram reshaped to resemble MATCH's histogram

Type cube
File Mode input
Filter *.cub
Close Window
X

Files: MATCH


Description

This file's histogram will be matched by FROM

Type cube
File Mode input
Filter *.cub
Close Window
X

Files: TO


Description

The resultant cube containing the altered input file

Type cube
File Mode output
Filter *.cub
Close Window
X

Algorithm: STRETCH


Description

This parameter specifies how the histogram will be stretched. The options are to stretch by by percentage (CDF), or by mode (Mode).

Type string
Default CDF
Option List:
Option Brief Description
CDFMatch Cumulative Distribution Function Remap image using stretch pairs taken at regular percentage intervals
MODEMatch modes Remap image using stretch pairs based on endpoints and mode

Exclusions

  • INCREMENT
Close Window
X

Histogram Options: MINPER


Description

Minimum cut-off value for the histogram

Type double
Default 0.5
Minimum 0.0 (inclusive)
Less Than MAXPER
Close Window
X

Histogram Options: MAXPER


Description

Maximum cut-off value for the histogram

Type double
Default 99.5
Maximum 100.0 (inclusive)
Close Window
X

Histogram Options: INCREMENT


Description

Percentage increment for the histogram

Type integer
Default 1
Minimum 1 (inclusive)
Less Than MAXPER
Close Window