Home
About ISIS
Support
Download

ISIS 3

Documentation
Tutorials
Technical Documents

ISIS 2

Documentation
Tutorials
Technical Documents

Search

USGS

ISIS 3 Application Documentation


trim

Printer Friendly View | TOC | Home

Trim edges of input cube

Overview Parameters Example 1

Description

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

Parameter Groups

Files

Name Description
FROM Input cube to trim
TO Output cube

Trim size

Name Description
TOPNumber of lines to trim at top of cube
BOTTOMNumber of lines to trim at bottom of cube
LEFTNumber of samples to trim at left side of cube
RIGHTNumber of samples to trim at right side of cube
X

Files: FROM


Description

Use this parameter to select the filename. All bands within the file will be trimmed.

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

Files: TO


Description

This file will contain the results of the trimmed cube.

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

Trim size: TOP


Description

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)
Close Window
X

Trim size: BOTTOM


Description

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)
Close Window
X

Trim size: LEFT


Description

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)
Close Window
X

Trim size: RIGHT


Description

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)
Close Window

Example 1

trim Lunar Orbiter

Description

This example shows a trim operation.

Command Line

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

GUI Screenshot

trim Gui

Example 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

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

Parameter Name: TO

This is the output image that results.