Size: 1361
Comment:
|
← Revision 15 as of 2019-04-21 21:46:05 ⇥
Size: 1973
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from Block 4 - Autoregister V0 | |
Line 6: | Line 5: |
This block batch autoregisters images contained in lsupport/PICTLIST.TXT. | This block batch autoregisters images |
Line 8: | Line 7: |
== Assumptions == * You have invoked a Bourne-Again Shell (bash) * You have completed the processing steps in Block 1 - Setup Directory * You have populated the IMAGEFILES directory * Block 2 - Ingest * You have registered images |
|
Line 18: | Line 11: |
=== 2. Set-up === Make sure make_scriptA.seed is correct. |
=== Set-up === * Ensure make_scriptA.seed is linked to the script you want to run. |
Line 21: | Line 14: |
=== 3. Set-up batch autoregister files === Create make_script.in, or run the following commands if you used the script for Ingestion. |
* Run [[make_lmrklist]] (Any landmark that is not in [[LMRKLISTX.TXT]] will not be added to images!!!!) |
Line 24: | Line 17: |
# set-up batch autoregister files grep -v -e SUMFILES -e NOMINALS ../log/step1-2/output.txt | cut -c 1-12 > tmp cat tmp | sed 's/^/ /' > make_script.in echo END >> make_script.in |
relink.sh scripts/make_scriptA_01.seed make_scriptA.seed ls -l make_scriptA.seed | tee -a notes MAKE_LMRKLISTX |
Line 31: | Line 22: |
=== 4. Batch autoregister images === | === Set-up batch autoregister files === Replace [[make_script.in]] with a list of images that you want to use. It is important that the first character is blank and the file is terminated with an "END" |
Line 34: | Line 26: |
# Batch autoregister images nohup sh run_script.b |
# Create a list of images that need to be processed. cp lsupport/imageList.far\ make_script.in echo END >> make_script.in |
Line 38: | Line 31: |
=== 5. Monitor progress === | === Batch autoregister images === Build the scripts. We use nohup to ensure that if the login window is lost, the process still runs. |
Line 40: | Line 35: |
# Monitor progress ls -l *.INN *.OOT |
make_scriptA nohup sh run_script.b & sleep 2 ; tail -f nohup.out |
Line 44: | Line 40: |
=== 6. Check results === |
=== Monitor progress === |
Line 47: | Line 42: |
ls *.INN | wc ls *.OOT | wc find_nofit |
|
Line 50: | Line 47: |
=== 7. Fix uncorrelated images === | === Evaluate Progress === Use the "notes" file to keep track of any problem images. autoEval.sh will read the OOT files and provide feedback on how many landmarks are in each image and how many landmarks "tried" and failed. If there are fewer than 5 landmarks, you may consider doing these by hand. First, look at TESTFILES at the <IMG>.pgm to see how good the landmarks look. Run [[autoregister]] to clean up images that are a problem. If there are too few, you might consider tucking them away (option in [[lithos]] and [[register]]. |
Line 52: | Line 52: |
# Fix uncorrelated images ....... |
find_nofit | tee -a notes autoEval.sh |
Line 56: | Line 56: |
=== 8. Clean directory === | === Finish the Block === Once errors have been removed, then you can finish the block. If you want to rerun things with different parameters, then finish this block and start over. |
Line 58: | Line 60: |
# Clean directory sh rem_script.b rm TESTFILES/* rm nohup.out }}} === 9. Complete procedure === {{{ |
echo 5 | blockFinish far\ |
Line 71: | Line 65: |
''(Compiled by JRW)'' CategoryHowTos |
''(Compiled by EEP)'' |
Block 4 - Autoregister V2
Description
This block batch autoregisters images
Procedure
Set-up
- Ensure make_scriptA.seed is linked to the script you want to run.
Run make_lmrklist (Any landmark that is not in LMRKLISTX.TXT will not be added to images!!!!)
relink.sh scripts/make_scriptA_01.seed make_scriptA.seed ls -l make_scriptA.seed | tee -a notes MAKE_LMRKLISTX
Set-up batch autoregister files
Replace make_script.in with a list of images that you want to use. It is important that the first character is blank and the file is terminated with an "END"
# Create a list of images that need to be processed. cp lsupport/imageList.far\ make_script.in echo END >> make_script.in
Batch autoregister images
Build the scripts. We use nohup to ensure that if the login window is lost, the process still runs.
make_scriptA nohup sh run_script.b & sleep 2 ; tail -f nohup.out
Monitor progress
ls *.INN | wc ls *.OOT | wc find_nofit
Evaluate Progress
Use the "notes" file to keep track of any problem images. autoEval.sh will read the OOT files and provide feedback on how many landmarks are in each image and how many landmarks "tried" and failed.
If there are fewer than 5 landmarks, you may consider doing these by hand. First, look at TESTFILES at the <IMG>.pgm to see how good the landmarks look. Run autoregister to clean up images that are a problem. If there are too few, you might consider tucking them away (option in lithos and register.
find_nofit | tee -a notes autoEval.sh
Finish the Block
Once errors have been removed, then you can finish the block. If you want to rerun things with different parameters, then finish this block and start over.
echo 5 | blockFinish far\
(Compiled by EEP)