|
Size: 3060
Comment:
|
← Revision 12 as of 2016-03-05 11:45:50 ⇥
Size: 4334
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| = Block-03-02 - AUTOREGISTER IMAGES - BATCH = | ## page was renamed from Block-4A - AUTOREGISTER IMAGES - BATCH ## page was renamed from Block-3B - AUTOREGISTER IMAGES - BATCH ## page was renamed from Block-03-02 - AUTOREGISTER IMAGES - BATCH = Block-4A - AUTOREGISTER IMAGES - BATCH = |
| Line 7: | Line 10: |
| ## BLOCK 03-02 ## | ## BLOCK 4A ## |
| Line 12: | Line 15: |
| ## This block batch autoregisters images contained in lsupport/PICTLIST.TXT | ## This block batch autoregisters images contained in lsupport/listImagesForRegistering |
| Line 19: | Line 22: |
| ## ORex/ ## DATA/ |
|
| Line 25: | Line 26: |
| ## PICTLIST.TXT | |
| Line 28: | Line 30: |
| ## User has completed the processing steps comprising Block 01-01 - TEST DIRECTORY | ## User has completed the processing steps comprising Block 1A - TEST DIRECTORY |
| Line 31: | Line 33: |
| ## Block 02-01 / 02-02 ## User has populated lsupport/PICTLIST-forRegistering.TXT with the correct subset of |
## Block 2A / 2B ## User has populated lsupport/listImagesForRegistering with the correct subset of |
| Line 34: | Line 36: |
| ## User has registered images listed in lsupport/PICTLIST.TXT-forRegistering.TXT as per ## Block 03-01 |
## User has registered images listed in lsupport/listImagesForRegistering as per ## Block 3A |
| Line 39: | Line 41: |
| ## subTestID: (if required) Identifier for sub-test work (for example, F3G1) | |
| Line 41: | Line 44: |
| ## (for example, Block-03-02-Autoregister-Images-01stInvocation-F3G-GenericImages) | ## (for example, Block-4A-Autoregister-Images-F3G-GenericImages) |
| Line 44: | Line 47: |
| testID=F3G-Nav dirID=orig blockID=Block-03-02-Autoregister-Images-01stInvocation-F3G-GenericImages |
export testID=F3G-Nav export subTestID=NONE #export subTestID=F3G1 #export subTestID=F3G2 #export subTestID=F3G3 #export subTestID=F3G4 #export subTestID=F3G5 #export subTestID=F3G6 #export subTestID=F3G7 export dirID=orig #export dirID=test export blockID=Block-4A-Autoregister-Images-F3G-GenericMapCamImages #export blockID=Block-4A-Autoregister-Images-${subTestID}-SubTestSpecificPolyCamImages |
| Line 51: | Line 64: |
# Display user inputs echo $testID echo $subTestID echo $dirID echo $blockID |
|
| Line 56: | Line 76: |
| cp lsupport/PICTLIST-forRegistering.TXT make_script.in | cp lsupport/listImagesForRegistering make_script.in |
| Line 73: | Line 93: |
| cat logResults.txt cat lowImg.txt cat redo.txt |
# Inspect display outputs ## DECISION: ## OPTION 1: Inspect display outputs on ormacsrv1 ls TESTFILES > listTemp while read line; do echo "Displaying $line" display TESTFILES/$line done < listTemp rm listTemp ## END OF OPTION 1 ##OPTION 2: Inspect display output on a different machine |
| Line 77: | Line 108: |
| open TESTFILES/*.jpg ## [email protected]: |
|
| Line 80: | Line 109: |
| # images inspected on home-machine ## END OF VARIANCE |
# images inspected on different machine ## END OF OPTION2 |
| Line 84: | Line 113: |
| ....... | # Manually autoregister images and inspect output displays as required # Save autoregister log files mkdir -p /SPC_Test/$testID/$dirID/log/log-${blockID} mv make_script.in make_scriptA.seed /SPC_Test/$testID/$dirID/log/log-${blockID}/ mv *.INN *.OOT run* /SPC_Test/$testID/$dirID/log/log-${blockID}/ |
| Line 92: | Line 127: |
| date | |
| Line 93: | Line 129: |
| Line 97: | Line 134: |
# OPTION 1: OVERWRITE TYPESCRIPT LOG |
|
| Line 98: | Line 137: |
| # END OF OPTION 1 # OPTION 2: APPEND TYPESCRIPT LOG cat typescript >> /SPC_Test/$testID/log/log-typescript-${blockID} # END OF OPTION 2 |
Block-4A - AUTOREGISTER IMAGES - BATCH
##########################################################################
## ##
## BLOCK 4A ##
## AUTOREGISTER - BATCH ##
## ##
##########################################################################
## This block batch autoregisters images contained in lsupport/listImagesForRegistering
## Assumptions:
## User has invoked a Bourne-Again Shell (bash) on ormacsrv1.lpl.arizona.edu
## User is a member of the group OREX\spc
## User has set up a skeleton directory in the following format:
## /SPC_Test/F3G-Nav/
## base/
## IMAGEFILES/
## SHAPEFILES/
## lsupport/
## PICTLIST.TXT
## orig/
## results/
## test/
## User has completed the processing steps comprising Block 1A - TEST DIRECTORY
## SET-UP - ORIG
## User has additionally populated the orig/ dircteory with test-specific images as per
## Block 2A / 2B
## User has populated lsupport/listImagesForRegistering with the correct subset of
## images to register
## User has registered images listed in lsupport/listImagesForRegistering as per
## Block 3A
## User inputs:
## testID: Name of the F3 test directory (for example, F3E-Limbs)
## subTestID: (if required) Identifier for sub-test work (for example, F3G1)
## dirID: Name of sub-directory in which to work (e.g. orig, or test)
## blockID: User-specified identifier for typescript textfile name
## (for example, Block-4A-Autoregister-Images-F3G-GenericImages)
# User inputs:
export testID=F3G-Nav
export subTestID=NONE
#export subTestID=F3G1
#export subTestID=F3G2
#export subTestID=F3G3
#export subTestID=F3G4
#export subTestID=F3G5
#export subTestID=F3G6
#export subTestID=F3G7
export dirID=orig
#export dirID=test
export blockID=Block-4A-Autoregister-Images-F3G-GenericMapCamImages
#export blockID=Block-4A-Autoregister-Images-${subTestID}-SubTestSpecificPolyCamImages
# Set-Up
cd /SPC_Test/$testID/$dirID/
script
# Display user inputs
echo $testID
echo $subTestID
echo $dirID
echo $blockID
date
pwd
ls -l
# set-up batch autoregister files
cp lsupport/listImagesForRegistering make_script.in
cat make_script.in
cp scripts/make_scriptA.seed .
cat make_scriptA.seed
make_scriptA
ls -l
# Batch autoregister images
ls -l /usr/local/bin/autoregister
nohup sh run_script.b &
# Monitor progress
ls -l *.INN *.OOT
# Check results
# Since early iterations are not masked - logEval picks up NO CORRS which are later eliminated
sh support/logEvalP.sh
# Inspect display outputs
## DECISION:
## OPTION 1: Inspect display outputs on ormacsrv1
ls TESTFILES > listTemp
while read line; do
echo "Displaying $line"
display TESTFILES/$line
done < listTemp
rm listTemp
## END OF OPTION 1
##OPTION 2: Inspect display output on a different machine
convert TESTFILES/*.pgm TESTFILES/*.jpg
cp TESTFILES/*.jpg ~/send
# images inspected on different machine
## END OF OPTION2
# Fix uncorrelated images
# Manually autoregister images and inspect output displays as required
# Save autoregister log files
mkdir -p /SPC_Test/$testID/$dirID/log/log-${blockID}
mv make_script.in make_scriptA.seed /SPC_Test/$testID/$dirID/log/log-${blockID}/
mv *.INN *.OOT run* /SPC_Test/$testID/$dirID/log/log-${blockID}/
# Clean directory
sh rem_script.b
rm TESTFILES/*
rm nohup.out
# Block Complete
date
exit
# Save block log
if [ ! -d /SPC_Test/$testID/log ]; then
mkdir /SPC_Test/$testID/log
fi
# OPTION 1: OVERWRITE TYPESCRIPT LOG
mv typescript /SPC_Test/$testID/log/log-typescript-${blockID}
# END OF OPTION 1
# OPTION 2: APPEND TYPESCRIPT LOG
cat typescript >> /SPC_Test/$testID/log/log-typescript-${blockID}
# END OF OPTION 2