An official website of the United States government
Here’s how you know
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.
This program can be used to generate an output cube of user specified
dimensions. The pixel values of each line or sample evenly increment or
decrement from value1 input to value2 input.
Note: Vertical scaling can take twice as long to process,
however this is insignificant for output images less than 10,000
lines/samples.
The direction options allow the user to choose whether to scale the
pixel values horizontally or vertically.
Type
string
Default
HORIZONTAL
Option List:
Option
Brief
Description
HORIZONTAL
Scale DN values horizontally over each line.
This option will scale the DN values from left to right across
each line. The value given for BEGINDN will be the pixel value of the
first sample of each line and ENDDN will be the pixel value of the
last sample of each line.
VERTICAL
Scale DN values vertically over each sample.
This option will scale the DN values from top to bottom. The
value given for BEGINDN will be the pixle value of the first line and
ENDDN will be the pixel value of the last line.
This is the user specified DN value to output to the first pixel of
each line (or row) if scaling horizontally or the first pixel of each
sample (or column) if scaling vertically.
Type
double
Default
0.0
This is the user specified DN value to output to the last pixel of
each line (or row) if scaling horizontally or the last pixel of each
sample (or column) if scaling vertically.
Type
double
Default
0.0
Cube size
The number of samples to be allocated in the output cube. This
integer value must be at least 1.
Type
integer
Default
1
Minimum
1
(inclusive)
The number of lines to be allocated in the ouput cube. This integer
value must be at least 1.
Type
integer
Default
1
Minimum
1
(inclusive)
Example 1
Create horizontally grey scaled cube.
This example demonstrates how to use greyscale to
create a cube with pixel values from BEGINDN to ENDDN horizontally.
Command Line
Run greyscale to create a cube with the given
parameters.
Screenshot of GUI with parameters filled in to perform
greyscale application. DIRECTION
parameter HORIZONTAL is chosen as default.
Output Image
Output cube
Parameter Name:
TO
This is an example of the the output image with the given
parameters. It is a 20 line by 49 sample cube with the first
samples of each line equal to 1. Subsequent samples increment by
0.5 until the last sample, which is equal to 25.
Example 2
Create vertically grey scaled cube.
This example demonstrates how to use greyscale to
create a cube with pixel values from BEGINDN to ENDDN vertically.
Command Line
Run greyscale to create a cube with the given
parameters.
Screenshot of GUI with parameters filled in to perform
greyscale application.
Output Image
Output cube
Parameter Name:
TO
This is an example of the the output image with the given
parameters. It is a 49 line by 20 sample cube with the a DN of 50
for the pixels in the first line. Subsequent lines decrement by a
pixel value 0.5208 until the last line, which has a DN of 25.