pr0ntools:image_stitching
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pr0ntools:image_stitching [2016/10/02 23:55] – [Installing via github] mcmaster | 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. | ||
| - | |||
| - | |||
| - | ===== 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 | ||
| - | |||
| - | |||
| - | ===== Installing via pip ===== | ||
| - | |||
| - | Probably too outdated to be useful. | ||
| - | |||
| - | |||
| - | ===== Assumptions and notes ===== | ||
| - | |||
| - | A lot of this can be done much easier and more intuitively if you have a small project through Hugin. | ||
| - | |||
| - | I will use out.pto as the project name, you can use whatever you want | ||
| - | |||
| - | pr0npto has the form pr0npto < | ||
| - | |||
| - | |||
| - | ====== Automatic mode ====== | ||
| - | |||
| - | " | ||
| - | |||
| - | Basically: | ||
| - | - Open terminal | ||
| - | - cd into your image directory | ||
| - | - $ pr0nauto | ||
| - | - Crop using Hugin GUI | ||
| - | - $ pr0nts | ||
| - | |||
| - | |||
| - | ====== 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.1475452530.txt.gz · Last modified: 2016/10/02 23:55 by mcmaster
