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


center

Printer Friendly View | TOC | Home

Compute the center of mass of a single-band cube

Overview Parameters Example 1

Description

This program computes the sample and line of the center of mass (weighted by pixel value) of a single-band cube. The sample and line of the centroid, as well as the offset from the image center, are output in PVL. In addition if the TO parameter is specified this program will ouput a single-band cube of the same size with the center of mass of the input cube at the center of the image frame. The primary purpose of this program is to align multiple images of an object for a movie, such as images taken on approach. This program is best used with objects against a dark background.

Categories


Related Objects and Documents

Applications


History

Kris Becker2014-12-25 Original version
Jeffrey Covington2015-02-19 Added more documentation and restricted center to single-band cubes.

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:09
X

Files: FROM


Description

Use this parameter to select the filename. Only one band is allowed in the input cube.

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

Files: TO


Description

If specified this file will contain the results of the centered cube.

Type cube
File Mode output
Internal Default None
Inclusions
  • INTERP
Filter *.cub
Close Window
X

Files: INTERP


Description

This will be the interpolation type used to get the output file in either the translate or warp application. Defaults to CUBICCONVOLUTION.

Type string
Default CUBICCONVOLUTION
Option List:
Option Brief Description
NEARESTNEIGHBOR Nearest Neighbor Interpolation Nearest Neighbor Interpolation will be used in the transformation to create the output file.
BILINEAR Bilinear Interpolation Bilinear Interpolation will be used in the transformation to create the output file.
CUBICCONVOLUTION Cubic Convolution Interpolation Cubic Convolution Interpolation will be used in the tranformation to create the output file.
Close Window
X

Files: MINIMUM


Description

Minimum DN in the image to consider for computation of the center of mass. This can be helpful to eliminate background data.

Type double
Internal Default ValidMin
Less Than MAXIMUM
Close Window
X

Files: MAXIMUM


Description

Maximum DN to consider in computation of center of mass. This can be used to eliminate high saturation that would otherwise bias the centroid calculation.

Type double
Internal Default ValidMax
Close Window