Folien-Vorlage DLR
Download
Report
Transcript Folien-Vorlage DLR
German Aerospace Center
VICAR Tutorial
Video Image Communication and Retrieval
Thomas Roatsch, DLR
22-May-2008
1
German Aerospace Center
History of VICAR
- implemented in 1966 at the Jet Propulsion Laboratory
to process image data produced by the
planetary exploration program
- originally designed for operation with the IBM 360/44
Programming System (44PS)
- ported to IBM OS/360, VAX-VMS, and Alpha-VMS
- now running under Sun-Solaris and x86-Linux
2
German Aerospace Center
VICAR File Format
NLB
N2
N3
Number of Lines of binary header
Number of Images Lines (for BSQ)
Number of Bands (for BSQ)
3
German Aerospace Center
Image Organization
NLB
NBB
N1
N2
N3
Number of Lines of Binary header
Number of Bytes of Binary prefix
Number of Image Samples (for BSQ)
Number of Images Lines (for BSQ)
Number of Bands (for BSQ)
4
German Aerospace Center
Pixel Types
- BYTE: unsigned single byte, 0 – 255
- HALF: signed two byte integer, -32768 – 32767
- FULL: signed four byte integer,
-2147483648 - 2147483647
- REAL: four byte real
- DOUB: eight byte real
- COMP: ever used ?
5
German Aerospace Center
VICAR Label
- Keyword = Value
- System Label:
NL, NS, NB, NBB, NLB, Format, Org, …
- Property Labels:
Labels summarized to specific groups, can be
accessed by different programs (e.g. MAP, DTM)
- History Labels:
Specific to one program
6
German Aerospace Center
VICAR Programs
- every program consists of an executable and a PDF
(program definition file),
must be in the same directory
- PDF is an ASCII file and contains detailed help for the
program
- software distributed as source code
- executables available from PSA
7
German Aerospace Center
General Programs
- xvd: PDS and VICAR display program
- label: prints and modifies the label
label -list test.dat
label -remove test.dat test.raw
label -create test.raw test2.dat nl=100 ns=50 -ha
- dlrvic2png: converts VICAR to PNG
(Problem:
VICAR signed 16-bit, PNG unsigned 16-bit)
8
German Aerospace Center
Program hrfill
- This program changes the DN value of all pixels which
were flaged as bad during the calibration process
- hrfill tries to fill the pixels with useful values:
= Maximum_of_valid_pixels+1
for the saturated pixels
= Median of the surrounding valid pixels otherwise
- Output will be written only if something has to be filled !
9
German Aerospace Center
Program dlr12to8
- dlr12to8 uses image histograms of signed 16-bit integer
images to derive look-up tables for the conversion
into 8-bit images using a linear transformation.
- The lower and upper borders of the input data range can
be defined using
a) explicite values (DNMIN, DNMAX)
b) percentages of image pixels (LOWER, UPPER).
DNs lower than the LOWER or higher than the
UPPER percentages of all pixels are ignored in
defining the transformation function.
10
German Aerospace Center
Program flcform_lut
- flcform_lut converts a Vicar 'HALF' type (signed 16-bit
integer) Level 2 image into an 8-bit 'BYTE' image.
- input are the 16-bit image and the LUT calculated
using dlr12to 8
- output is the 8-bit image
11
German Aerospace Center
Program hrortho
- map projection program for line sensor data
- input are image, SPICE kernels and geometric
calibration files
- user can specify:
= map resolution
= map projection type
= center latitude and center longitude
= many other parameters
12
German Aerospace Center
Program frameortho
- map projection program for frame sensor data
- input are image, SPICE kernels and geometric
calibration files
- user can specify:
= map resolution
= map projection type
= center latitude and center longitude
= many other parameters
13
German Aerospace Center
Which SPICE kernels shall be used ?
-IK, FK, PCK, SCLK
latest version
- SPK and CK :
= Check START_TIME in image label
= select corresponding Kernel
14
German Aerospace Center
Contents of the “Mini-VICAR”
- vicar
= subset of VICAR from MIPL/JPL
= DLR programs to process HRSC data
- geocal
geometric calibration files for line sensors
- data
global Mars-DTM derived from MOLA data
to be used as reference body in *ortho
(default is the IAU ellipsoid)
15
German Aerospace Center
VICAR Build and Setup
- environment M94GEOCAL should point to the directory
with the geometric calibration files
- nothing else to do if you use the executables
- read minivicar.doc how to build and setup VICAR
16
German Aerospace Center
HRSC Stereo 1or 2
HRSC Nadir
18.9°
HRSC nadir level2
image
HRSC stereo1 or 2
Map projection of
level2 image
+
->
17
the images onto a
sphere or an
ellipsoid neglecting
the Digital Terrain
Model of MOLA or
HRSC
German Aerospace Center
Combining the map projected images using Photoshop
RGB image
Nadir projected image
Red channel of the RGB image
Change the order of the
images in depending of
the flight direction and
usage of stereo1 or 2
Stereo 1 or 2 projected image
Green channel of the RGB image
Black image
Blue channel of the RGB image
18
Anaglyphic image
German Aerospace Center
19
German Aerospace Center
20