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 [2013/10/20 14:59] – external edit 127.0.0.1 | pr0ntools:image_stitching [2025/08/04 21:19] (current) – removed mcmaster | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Prereqs ====== | ||
- | |||
- | ===== Platform ===== | ||
- | |||
- | This currently only runs under Linux from a combination of some autopanoaj magic I do and sloppy path construction. | ||
- | |||
- | ===== Software ===== | ||
- | |||
- | Core required: | ||
- | * Python 2.7 (or at least that's what I use) | ||
- | |||
- | Stitching: | ||
- | * ImageMagik | ||
- | * WINE | ||
- | * autopanoaj (see section) | ||
- | |||
- | ===== autopanoaj ===== | ||
- | |||
- | I use Andrew Jenny' | ||
- | |||
- | |||
- | ===== Installing ===== | ||
- | |||
- | I don't currently have a nice installer. | ||
- | export PYTHONPATH=$PYTHONPATH: | ||
- | |||
- | You probably also want to have the executables in your PATH. Example: | ||
- | export PATH=$PATH: | ||
- | |||
- | |||
- | ===== 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 < | ||
- | |||
- | ====== 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.1382281148.txt.gz · Last modified: 2016/09/08 12:04 (external edit)