ISIS Application Documentation
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
Applications
History
Jim Mathews 1994-02-14
Original version
Tracie Sucharski 2002-07-01
Ported to Isis 3.0
K Teal Thompson 2002-12-02
Add example.
K Teal Thompson 2003-03-28
Make images smaller
Stuart Sides 2003-04-04
Fixed problem with isiscvs not checking in the thumb and image directories.
Kim Sides 2003-05-13
Added application test
Stuart Sides 2003-05-16
Modified schema location from astogeology... to isis.astrogeology..."
Stuart Sides 2003-07-29
Modified filename parameters to be cube parameters where necessary
Steven Lambright 2008-05-13
Removed references to CubeInfo
Parameter Groups
Files
Name
Description
FROM
Input cube to trim
TO
Output cube
Trim size
Name
Description
TOP Number of lines to trim at top of cube
BOTTOM Number of lines to trim at bottom of cube
LEFT Number of samples to trim at left side of cube
RIGHT Number of samples to trim at right side of cube
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
Files :
TO
Description
This file will contain the results of the trimmed cube.
Type
cube
File Mode
output
Filter
*.cub
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)
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)
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)
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)
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.