Differences between revisions 1 and 23 (spanning 22 versions)
Revision 1 as of 2016-01-14 10:55:32
Size: 262
Editor: DianeLambert
Comment:
Revision 23 as of 2016-01-22 10:48:11
Size: 3013
Editor: DianeLambert
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
(Compiled by DL)
Line 3: Line 4:
'''Purpose:''' Generates the run and .INN files required to batch register new images. '''Purpose:''' Generates the run script and .INN files required to batch register new images.
Line 7: Line 8:
 * [[make_scriptR.in]] -
 * [[make_scriptR.seed]] -
 * [[make_script.in]] - text file containing the names of the images to batch register.
 * [[make_scriptR.seed]] - text file containing the register option commands for batch registering images.
 * [[TESTFILES]]/ - Directory in which to store copies of LMRK_DISPLAY.pgm (output by [[register]]) for each image.

NB: [[register]] requires a number of directories and files - refer to relevant guide.
Line 12: Line 16:
 * run??
 * .INN files -
make_scriptR outputs:
 * run_script.b - run script for batch image registration.
 * .INN files - register seed file for each image.
run_script.b output:
 * .OOT files - standard output from register for each image.
 * [[TESTFILES]]/ - a copy of LMRK_DISPLAY.pgm (output by [[register]]) is saved for each image;
 * [[NOMINALS]]/ - if the seed file includes the option to update the NOMINAL file, starting S/C and camera information will be updated (an option not typically selected);
 * [[SUMFILES]]/ - S/C and camera information are updated as image shifts are made.
Line 16: Line 26:

=== Create Input Files ===

Example '''make_script.in''' file:

{{{
 P3T11S2H0409
 P3T11S2H0410
 P3T11S2H0411
END
}}}

NB: A space must precede each image filename.

Example '''make_scriptR.seed''' file (see [[make_scriptR.seed]] for further details):

{{{
s
20
3
y
XSTOP
1
10
3
y
XSTOP
0
y
n
n
q
}}}

== Run make_scriptR ==

make_scriptR generates a .INN file for each image (the image filename appended with the register options contained in the make_scriptR.seed file. Example '''P3T11S2H0409.INN''' file:

{{{
P3T11S2H0409
s
20
3
y
XSTOP
1
10
3
y
XSTOP
0
y
n
n
q
}}}

make_scriptR also generates the run script - '''run_script.b''':

{{{
rm -f P3T11S2H0409.OOT
/usr/local/bin/REGISTER < P3T11S2H0409.INN > P3T11S2H0409.OOT
cp TEMPFILE.pgm ./TESTFILES/P3T11S2H0409.pgm
rm -f P3T11S2H0410.OOT
/usr/local/bin/REGISTER < P3T11S2H0410.INN > P3T11S2H0410.OOT
cp TEMPFILE.pgm ./TESTFILES/P3T11S2H0410.pgm
rm -f P3T11S2H0411.OOT
/usr/local/bin/REGISTER < P3T11S2H0411.INN > P3T11S2H0411.OOT
cp TEMPFILE.pgm ./TESTFILES/P3T11S2H0411.pgm
}}}

== Batch Register Images ==

{{{
sh run_script.b
}}}

The register standard output for each image is captured in the .OOT files, and the LMRKDISPLAY.pgm file output by [[register]] 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 registration process. (A ''find-nofit'' program does not currently exist for batch image registration.)

make_scriptR

(Compiled by DL)

Purpose: Generates the run script and .INN files required to batch register new images.

Requires

  • make_script.in - text file containing the names of the images to batch register.

  • make_scriptR.seed - text file containing the register option commands for batch registering images.

  • TESTFILES/ - Directory in which to store copies of LMRK_DISPLAY.pgm (output by register) for each image.

NB: register requires a number of directories and files - refer to relevant guide.

Output

make_scriptR outputs:

  • run_script.b - run script for batch image registration.
  • .INN files - register seed file for each image.

run_script.b output:

  • .OOT files - standard output from register for each image.
  • TESTFILES/ - a copy of LMRK_DISPLAY.pgm (output by register) is saved for each image;

  • NOMINALS/ - if the seed file includes the option to update the NOMINAL file, starting S/C and camera information will be updated (an option not typically selected);

  • SUMFILES/ - S/C and camera information are updated as image shifts are made.

Using make_scriptR

Create Input Files

Example make_script.in file:

 P3T11S2H0409
 P3T11S2H0410
 P3T11S2H0411
END

NB: A space must precede each image filename.

Example make_scriptR.seed file (see make_scriptR.seed for further details):

s
20
3
y
XSTOP
1
10
3
y
XSTOP
0
y
n
n
q

Run make_scriptR

make_scriptR generates a .INN file for each image (the image filename appended with the register options contained in the make_scriptR.seed file. Example P3T11S2H0409.INN file:

P3T11S2H0409
s                   
20                  
3                   
y                   
XSTOP               
1                   
10                  
3                   
y                   
XSTOP               
0                   
y                   
n                   
n                   
q                   

make_scriptR also generates the run script - run_script.b:

rm -f P3T11S2H0409.OOT
/usr/local/bin/REGISTER < P3T11S2H0409.INN > P3T11S2H0409.OOT
cp TEMPFILE.pgm ./TESTFILES/P3T11S2H0409.pgm
rm -f P3T11S2H0410.OOT
/usr/local/bin/REGISTER < P3T11S2H0410.INN > P3T11S2H0410.OOT
cp TEMPFILE.pgm ./TESTFILES/P3T11S2H0410.pgm
rm -f P3T11S2H0411.OOT
/usr/local/bin/REGISTER < P3T11S2H0411.INN > P3T11S2H0411.OOT
cp TEMPFILE.pgm ./TESTFILES/P3T11S2H0411.pgm

Batch Register Images

sh run_script.b

The register standard output for each image is captured in the .OOT files, and the LMRKDISPLAY.pgm file output by register 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 registration process. (A find-nofit program does not currently exist for batch image registration.)

make_scriptR (last edited 2016-07-26 09:32:25 by BMittan)