Size: 1439
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: |
=== 1. 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: |
=== 2. 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 30: | Line 22: |
=== 3. 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 32: | Line 26: |
# Build the scripts make_scriptA # Run the scripts 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 39: | Line 31: |
=== 4. 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 41: | Line 35: |
# Monitor progress ls -l *.INN *.OOT |
make_scriptA nohup sh run_script.b & sleep 2 ; tail -f nohup.out |
Line 45: | Line 40: |
=== 5. Check results === | === Monitor progress === |
Line 47: | Line 42: |
find_nofit | tee output mkdir ../log/step2-4 mv *INN *OOT output redo.txt REMOVED.TXT ../log/step2-4 |
ls *.INN | wc ls *.OOT | wc find_nofit |
Line 52: | Line 47: |
=== 6. 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 54: | Line 52: |
# Fix uncorrelated images ....... |
find_nofit | tee -a notes autoEval.sh |
Line 58: | Line 56: |
=== 7. 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 60: | Line 60: |
# Clean directory sh rem_script.b rm TESTFILES/* rm nohup.out |
echo 5 | blockFinish far\ |
Line 68: | 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)