Size: 1416
Comment:
|
Size: 1892
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from Block 4 - Autoregister V0 = Block 4 - Autoregister V0 = (./) copied from working--needs to be made generic |
= Block 4 - Autoregister V2 = |
Line 8: | Line 5: |
This block batch autoregisters images contained in lsupport/PICTLIST.TXT. | This block batch autoregisters images |
Line 10: | 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 20: | 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 23: | 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 26: | 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 scripts/make_scriptA.seed make_scriptA.seed MAKE_LMRKLISTX |
Line 33: | Line 21: |
=== 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 36: | Line 25: |
# Batch autoregister images nohup sh run_script.b |
# Create a list of images that need to be processed. sed 's/^/ /' lsupport/imageList.Ap6 > make_script.in echo END >> make_script.in |
Line 40: | Line 30: |
=== 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 42: | Line 34: |
# Monitor progress ls -l *.INN *.OOT |
make_scriptA nohup sh run_script.b |
Line 46: | Line 38: |
=== 6. Check results === |
=== Monitor progress === |
Line 49: | Line 40: |
ls *.INN | wc ls *.OOT | wc find_nofit |
|
Line 52: | Line 45: |
=== 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 54: | Line 50: |
# Fix uncorrelated images ....... |
find_nofit | tee -a notes autoEval.sh |
Line 58: | Line 54: |
=== 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 60: | Line 58: |
# Clean directory sh rem_script.b rm TESTFILES/* rm nohup.out }}} === 9. Complete procedure === {{{ |
blockFinish Ap6 |
Line 73: | Line 63: |
''(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 scripts/make_scriptA.seed make_scriptA.seed 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. sed 's/^/ /' lsupport/imageList.Ap6 > 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
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.
blockFinish Ap6
(Compiled by EEP)