Differences between revisions 9 and 11 (spanning 2 versions)
Revision 9 as of 2016-01-22 10:35:07
Size: 3212
Editor: DianeLambert
Comment:
Revision 11 as of 2016-02-11 09:30:58
Size: 3490
Editor: BMittan
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
(Compiled by DL)
Line 4: Line 3:
'''Purpose:''' Generates the run script and .INN files required to batch autoregister new images. == Description ==
Line 6: Line 5:
=== Requires === This program generates the run script and .INN files required to batch autoregister new images.
Line 8: Line 7:
 * [[make_script.in]] - text file containing the names of the images to batch autoregister.
 * [[make_scriptA.seed]] - text file containing the [[autoregister]] option commands for batch registering images.
 * [[TESTFILES]]/ - Directory in which to store copies of LMRK_DISPLAY1.pgm (output by [[autoregister]]) for each image.
=== Required Files ===
Line 12: Line 9:
NB: [[autoregister]] requires a number of directories and files - refer to relevant guide. '''input file''':
 * [[make_script.in]] - Text file containing the names of the images to batch autoregister.
'''seed file''':
 * [[make_scriptA.seed]] - Text file containing the [[autoregister]] option commands for batch registering images.
'''processed files''':
 * [[TESTFILES]]/ - Directory in which to store copies of [[LMRK_DISPLAY1.pgm]] (output by [[autoregister]]) for each image.
Line 14: Line 16:
=== Output ===  /!\ '''autoregister''' requires a number of directories and files. Refer to [[autoregister]] for more information.
Line 16: Line 18:
make_scriptA outputs:
 * run_script.b - run script for batch image autoregistration.
 * .INN files - autoregister seed file for each image.
run_script.b output:
 * .OOT files - standard output from autoregister for each image.
 * [[TESTFILES]]/ - a copy of LMRK_DISPLAY1.pgm (output by [[autoregister]]) is saved for each image;
 * [[SUMFILES]]/ - Landmarks are added to the image's SUMFILE. Spacecraft/camera position/attitude are updated upon user acceptance of alignment shifts;
=== Output Files ===

'''
make_scriptA''' outputs:
 * run_script.b - run script for batch image autoregistration
 * .INN files - autoregister seed file for each image
'''
run_script.b''' output:
 * .OOT files - standard output from autoregister for each image
'''processed files''' output:

 * [[TESTFILES]]/ - a copy of LMRK_DISPLAY1.pgm (output by [[autoregister]]) is saved for each image
 * [[SUMFILES]]/ - landmarks are added to the image's SUMFILE. Spacecraft/camera position/attitude are updated when you accept alignment shifts.
Line 24: Line 29:

----------
Line 27: Line 34:
=== Create Input Files ===  1. Create Input Files
Line 29: Line 36:
Example '''make_script.in''' file: Here is a sample [[make_script.in]] file (see that entry for further information):
Line 38: Line 45:
NB: A space must precede each image filename.  /!\ You must precede each image filename with a space.
Line 40: Line 47:
Example '''make_scriptA.seed''' file (see [[make_scriptA.seed]] for further details): Here is a sample [[make_scriptA.seed]] file (see that entry for for further information):
Line 59: Line 66:
== Run make_scriptA ==  1.#2 Run [[make_scriptA]]
Line 61: Line 68:
make_scriptA generates a .INN file for each image (the image filename appended with the autoregister options contained in the make_scriptA.seed file. Example '''P00045000450.INN''' file: [[make_scriptA]] generates a .INN file for each image (the image filename appended with the autoregister options contained in the make_scriptA.seed file.

Example '''P00045000450.INN''' file:
Line 106: Line 115:

----------

''(Compiled by DL)''

CategoryPrograms

make_scriptA

Description

This program generates the run script and .INN files required to batch autoregister new images.

Required Files

input file:

  • make_script.in - Text file containing the names of the images to batch autoregister.

seed file:

processed files:

Output Files

make_scriptA outputs:

  • run_script.b - run script for batch image autoregistration
  • .INN files - autoregister seed file for each image

run_script.b output:

  • .OOT files - standard output from autoregister for each image

processed files output:

  • TESTFILES/ - a copy of LMRK_DISPLAY1.pgm (output by autoregister) is saved for each image

  • SUMFILES/ - landmarks are added to the image's SUMFILE. Spacecraft/camera position/attitude are updated when you accept alignment shifts.

  • LMKFILES/ - Image names are added to the LMKFILES.


Using make_scriptA

  1. Create Input Files

Here is a sample make_script.in file (see that entry for further information):

 P00045000450
 P00045000451
 P00045000452
END
  • /!\ You must precede each image filename with a space.

Here is a sample make_scriptA.seed file (see that entry for for further information):

a
0,65,.25,0,3
1
2
n
0
n
o
.5
4
b
0
q
END   
  1. Run make_scriptA

make_scriptA generates a .INN file for each image (the image filename appended with the autoregister options contained in the make_scriptA.seed file.

Example P00045000450.INN file:

P00045000450
y
0.5
n
a                   
0,65,.25,0,3        
1                   
2                   
n                   
0                   
n                   
o                   
.5                  
4                   
b                   
0                   
q                   

make_scriptA also generates the run script - run_script.b:

rm -f P00045000450.OOT
/usr/local/bin/AUTOREGISTER < P00045000450.INN > P00045000450.OOT
cp LMRK_DISPLAY1.pgm ./TESTFILES/P00045000450.pgm
rm -f P00045000451.OOT
/usr/local/bin/AUTOREGISTER < P00045000451.INN > P00045000451.OOT
cp LMRK_DISPLAY1.pgm ./TESTFILES/P00045000451.pgm
rm -f P00045000452.OOT
/usr/local/bin/AUTOREGISTER < P00045000452.INN > P00045000452.OOT
cp LMRK_DISPLAY1.pgm ./TESTFILES/P00045000452.pgm

Batch Autoregister Images

autoregister uses the file LMRKLISTX.TXT to pre- screen the maplets, so if maplets have been added or deleted recently, the procedure make_lmrklistX should be run.

sh run_script.b

The autoregister standard output for each image is captured in the .OOT files, and the LMRKDISPLAY1.pgm file output by autoregister is copied and stored in TESTFILES/ once an image has been processed. The user must review the .OOT files to ascertain the success of the batch image autoregistration process. (A find-nofit program does not currently exist for batch image autoregistration.)


(Compiled by DL)

CategoryPrograms

make_scriptA (last edited 2016-06-06 13:09:14 by DianeLambert)