pr0ntools:image_stitching
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| pr0ntools:image_stitching [2025/08/04 21:12] – external edit 127.0.0.1 | pr0ntools:image_stitching [2025/08/04 21:19] (current) – removed mcmaster | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | FIXME: need to update this page. In particular: | ||
| - | * autopanoaj is no longer used | ||
| - | |||
| - | |||
| - | ====== Prereqs ====== | ||
| - | |||
| - | ===== Platform ===== | ||
| - | |||
| - | Only supported under Linux (tested under Ubuntu 14). If you find minor tweaks to make it work with others (ie Windows), I'll take them. But I'm not interested in a large rewrite | ||
| - | |||
| - | |||
| - | ===== Software ===== | ||
| - | |||
| - | Core required: | ||
| - | * Python 2.7 (or at least that's what I use) | ||
| - | |||
| - | Stitching: | ||
| - | * ImageMagik | ||
| - | |||
| - | |||
| - | ===== Installing via github ===== | ||
| - | |||
| - | For Ubuntu: | ||
| - | - sudo apt-get install -y git hugin | ||
| - | - cd ~ | ||
| - | - git clone https:// | ||
| - | - export PYTHONPATH=$PYTHONPATH: | ||
| - | - export PATH=$PATH: | ||
| - | - alias pr0nstitch=pr0nstitch.py | ||
| - | - alias pr0npto=pr0npto.py | ||
| - | - alias pr0nhugin=pr0nhugin.py | ||
| - | - alias pr0nauto=pr0nauto.py | ||
| - | |||
| - | |||
| - | ===== Installing via pip ===== | ||
| - | |||
| - | Probably too outdated to be useful. | ||
| - | |||
| - | |||
| - | ===== Assumptions and notes ===== | ||
| - | |||
| - | Although these tools are meant for very large stitches, this tutorial uses a small project. | ||
| - | |||
| - | " | ||
| - | |||
| - | |||
| - | ====== Quickstart ====== | ||
| - | |||
| - | Do: | ||
| - | - $ Make sure you already setup the tools as indicated above | ||
| - | - $ cd ~ | ||
| - | - Get test data | ||
| - | - $ wget https:// | ||
| - | - $ tar -xf ad_ad534_mz_mit20x_raw.tar.bz2 | ||
| - | - $ cd ad_ad534_mz_mit20x_raw. | ||
| - | - $ pr0nauto | ||
| - | - Hugin GUI | ||
| - | - GUI should open on a special reduced project (center will be missing) | ||
| - | - Crop and rotate to your desire | ||
| - | - TODO: add additional details how to do this | ||
| - | - TODO: fix bug / add note about bad pr0nauto | ||
| - | - $ pr0nts | ||
| - | - Directory outputs | ||
| - | * single: a .jpg with of the entire ROI selected in Hugin | ||
| - | * st: " | ||
| - | * out: Google map tiles that can be ingested by pr0nmap | ||
| - | |||
| - | |||
| - | ====== Step 1: acquire images ====== | ||
| - | |||
| - | Take images with roughly 1/3 overlap to each neighbor. | ||
| - | |||
| - | Example file name: r0012_c0311.jpg | ||
| - | |||
| - | It shouldn' | ||
| - | |||
| - | ====== Step 2: generate features ====== | ||
| - | |||
| - | cd into the directory with your images | ||
| - | |||
| - | Execute a command like: pr0nstitch *.jpg out.pto. | ||
| - | |||
| - | When its done you will get a file called stitch-errors.json. | ||
| - | |||
| - | |||
| - | ====== Step 3: optimize ====== | ||
| - | |||
| - | BUG: you must first open and it resave it in Hugin for PToptimizer to take it. I haven' | ||
| - | |||
| - | Execute something like: | ||
| - | |||
| - | pr0npto --optimize out.pto | ||
| - | |||
| - | This may take a while but you should get occasional progress indicators. | ||
| - | |||
| - | ====== Step 4: Crop in Hugin ====== | ||
| - | |||
| - | I might eventually automate this but for now things have to be done manually. | ||
| - | * Calculate optimal field of view. This will give a reasonable baseline when you open it but probably won't be final | ||
| - | * Open GL image preview. | ||
| - | * Adjust the field of view as needed so that the entire pano is in view but try to still keep it as small as possible | ||
| - | * Go to the crop tab and crop as needed | ||
| - | * Save and exit | ||
| - | |||
| - | ====== Step 5: stitch ====== | ||
| - | |||
| - | You have several options at this point: | ||
| - | * Stitch in Hugin using either its normal or batch option | ||
| - | * Stitch through command line using Hugins makefile. | ||
| - | * Stitch to tiles using pr0nts. | ||
| - | |||
| - | Execute " | ||
| - | |||
| - | You should use the maximum amount of memory you can to create the largest supertile possible. | ||
| - | |||
| - | |||
| - | ====== Step 6: create map ====== | ||
| - | |||
| - | Now that you have tiles you can turn them into a map. Execute pr0nmap out and it should create a dir called " | ||
| - | |||
| - | This should be a reasonably quick operation and will get much faster at each successive zoom level as it creates the next generation of tiles. | ||
| - | |||
| - | |||
| - | ====== Step 7: finishing up ====== | ||
| - | |||
| - | Open index.html and you should see your chip. If at the highest zoom level you aren't really getting anything over a previous level consider deleting all of the tiles in that directory and lowering the maxZoom parameter in index.html | ||
| - | |||
pr0ntools/image_stitching.1754341976.txt.gz · Last modified: 2025/08/04 21:12 by 127.0.0.1
