Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

ISIS Documentation

trim

Trim edges of input cube

This program will trim (set to NULL) edge pixels of the input cube defined by the parameters TOP, BOTTOM, LEFT and RIGHT, which indicate the number of pixels to trim from edges of the cube. Note that this program does not change the dimensions of the cube. The program "crop" allows a section of a cube to be output.

Categories


Related Objects and Documents

Applications


History

Jim Mathews1994-02-14 Original version
Tracie Sucharski2002-07-01 Ported to Isis 3.0
K Teal Thompson2002-12-02 Add example.
K Teal Thompson2003-03-28 Make images smaller
Stuart Sides2003-04-04 Fixed problem with isiscvs not checking in the thumb and image directories.
Kim Sides2003-05-13 Added application test
Stuart Sides2003-05-16 Modified schema location from astogeology... to isis.astrogeology..."
Stuart Sides2003-07-29 Modified filename parameters to be cube parameters where necessary
Steven Lambright2008-05-13 Removed references to CubeInfo

Parameters

Files

Use this parameter to select the filename. All bands within the file will be trimmed.
Type cube
File Mode input
Filter *.cub

This file will contain the results of the trimmed cube.
Type cube
File Mode output
Filter *.cub

Trim size

This defines the number of lines that will be set to NULL at the top of the cube.
Type integer
Default 0
Minimum 0 (inclusive)

This defines the number of lines that will be set to NULL at the bottom of the cube.
Type integer
Default 0
Minimum 0 (inclusive)

This defines the number of samples that will be set to NULL at the left side of the cube.
Type integer
Default 0
Minimum 0 (inclusive)

This defines the number of samples that will be set to NULL at the right side of the cube.
Type integer
Default 0
Minimum 0 (inclusive)

Example 1

trim Lunar Orbiter

This example shows a trim operation.

Command Line

trim 3 sides of a Lunar Orbiter image.
trim f=../IN/lo.crp.cub to=OUT/lo.trm top=240 l=53 r=48

GUI Screenshot

trim Gui

Example Gui

trim Gui

Screenshot of GUI with parameters filled in to perform a trim operation on the input image.

Input Image

Input image

Input image for trim

Input image

Parameter Name: FROM

This is the input image for the trim example .

Output Image

Output image showing results of the trim application.

Output image for trim

Output image showing results of the trim application.

Parameter Name: TO

This is the output image that results.