Help for MARSMOS
PURPOSE:
To assemble multiple frames into a mosaic, using an output camera model
(derived from the input). Thus the output will appear as though it was
taken by a similar camera with a much wider field of view.
Stereo pair mosaics will be rotated with epipolar lines coinciding with
picture lines, making them easy to view. However, this means that spacecraft
tilt will be maintained, meaning that for pan/tilt lander cameras, the
horizon will not be level if the spacecraft is not level.
This is a multimission program derived from Mars Pathfinder's mpfmos.
It supports any mission, instrument, and camera model supported by the
Planetary Image Geometry (Pig) software suite.
Best results are obtained if the images are all taken from the same camera
at approximately the same position.
The program will optionally place an image number at the center of each
image in the output, to aid in identification of the images. See NUMBER,
NUMBER_DN, NUMBER_ZOOM, and NUMBER_START. It will also optionally draw a
"footprint" border around each image. See FOOTPRT and FOOT_DN.
The program can accept a navigation file written by marsnav which will improve
the accuracy of the mosaic.
Radiometric correction is performed on the inputs by default; this may be
turned off via the RAD keyword parameter.
The program will work with color images if such are given as input and the
BAND parameter is not specified; the number of output bands will equal the
maximum number of bands across all inputs. Images with less than that number
of bands will simply repeat the last available band (so you can mix bw and
color images). If BANDS is specified, only that one single band is
processed and output.
EXECUTION:
There are two ways to present input images:
marsmos inp=(a.img,b.img,c.img,...) out=mos.img
or
marsmos inp=ascii_listoffiles out=mos.img
where ascii_listoffiles is a text file created by Sybase or an editor,
containing the list of filenames to include in the mosaic, one per record.
Up to 200 input images can be listed.
Additionally, marsnav may be used:
marsnav inp=ascii_listoffiles out=navtab search=25
marsmos inp=ascii_listoffiles out=mos.img navtable=navtab
USAGE:
Labels will be written to the output image specifying all parameters
needed in order to reproject the image, and to convert pixel coordinates
into XYZ view rays in the output coordinate system. See ???? for
details on what the label items mean.
This mosaic program compensates for parallax and for lander
translation and rotation.
OPERATION:
The program uses the appropriate camera model for each input image and
outputs a mosaic using a camera model derived from the first input (aligned
for stereo viewing). Each pixel in the output is transformed from output
to input camera models in the following steps:
1. Each output pixel defines a unit vector.
2. We compute the intersection of this vector with a surface model. This is
normally a tilted plane, possibly with an offset from the origin of the
spacecraft coordinate system (so the "ground" can be above or below the
origin).
3. Then this ground point is ray traced back into the input camera images.
We take the input images in order of input.
4. The first image is selected which can see the ground point.
5. The DN value in the selected input image is bilinearly interpolated
and placed into the output location
Input images are loaded into memory 20 at a time.
HISTORY:
4-30-94 Initial mpfmos by J Lorre.
Aug. 98 Multimission conversion by B. Deen
2017-03-15 mjl,rgd Added color support
COGNIZANT PROGRAMMER: Bob Deen
PARAMETERS:
INP
input image(s) or
file list.
OUT
Output image.
NAVTABLE
Corrected navigation
filename.
INPUT_RANGE
The range of inputs to
actually mosaic.
BIAS
Set of values to bias
each tile in the mosiac.
BRTCORR
Input file containing
brightness corrections.
AZOUT
Output image
Commanded azimuth.
See COORD.
ELOUT
Output image
Commanded elevation.
See COORD.
TWIST
Sets twist value
for output camera.
OUTSIZE
Overrides size of
output image.
OUTOFF
Overrides x/y offset
values for output.
OUTPOS
Overrides the camera
position.
DELTAZ
Moves the camera
in Z only.
ZOOM
Zoom factor for
mosaic.
SHIFT
Specifies whether camera
model should be shifted to
incorporate offsets.
BAND
The BSQ band number or
don't specify for all bands.
NORMAL
Surface normal vector.
GROUND
Surface ground point.
SURF_COORD
Coordinate system used to define
surface parameters.
SURFACE
The type of mars
surface to use.
INFINITY, PLANE, SPHERE1, SPHERE2.
MAXNL
Maximum # output
picture lines.
MAXNS
Maximum # output
picture samples.
NUMBER
Numbers the center of
each input.
NUMBER_DN
DN to use for the
input numbers.
NUMBER_ZOOM
Zoom factor for the
input numbers.
NUMBER_START
Where to start counting
the input numbers.
FOOTPRT
Draws footprints around
each image.
FOOT_DN
DN to use for the
footprint numbers.
RAD
Turns on or off
radiometric correction.
DNSCALE
DN scaling factor.
CONFIG_PATH
Path used to find
configuration/calibration
files.
MATCH_METHOD
Specifies a method
for pointing corrections.
MATCH_TOL
Tolerance value for
matching pointing params
in pointing corrections file.
POINT_METHOD
Specifies a mission-
specific pointing
method to use
NOSITE
Disables coordinate
system sites.
DATA_SET_NAME
Specifies the full name given
to a data set or a data product.
DATA_SET_ID
Specifies a unique alphanumeric
identifier for a data set or data
product.
RELEASE_ID
Specifies the unique identifier
associated with the release to the
public of all or part of a data set.
The release number is associated with
the data set, not the mission.
PRODUCT_ID
Specifies a permanent, unique
identifier assigned to a data
product by its producer.
PRODUCER_ID
Specifies the unique identifier
of an entity associated with the
production a data set.
PRODUCER_INST
Specifies the full name of the
identity of an entity associated
with the production of a data set.
TARGET_NAME
Specifies a target.
TARGET_TYPE
Specifies the type of a named target.
INTERP
Turns on or off
the interpolation.
RSF
Rover State File(s) to use.
DEBUG_RSF
If enabled, this causes the internal database of RMC locations to be
printed out to the stdout log. This is after the RSF files have been
loaded and the coordinate systems read from the input label(s).
COORD
Coordinate system to use
for parameters and projection frame.
COORD_INDEX
Coordinate system index for
some COORD/mission combos.
FIXED_SITE
Which site is FIXED for
rover missions.
SOLUTION_ID
Solution ID to use for
pointing correction.
See Examples:
Cognizant Programmer: