pr0ntools:pr0nts
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pr0ntools:pr0nts [2012/02/18 08:30] – created mcmaster | pr0ntools:pr0nts [2016/06/27 15:03] (current) – [BBB/machinekit] mcmaster | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Single: cut up a single input image | * Single: cut up a single input image | ||
* Project: | * Project: | ||
+ | |||
+ | ====== Input files ====== | ||
+ | |||
+ | I think there is an artificial requirement that the input images be tagged with row and col information (ex: y0123_x031.jpg). | ||
====== Configuration ====== | ====== Configuration ====== | ||
Line 9: | Line 13: | ||
I have some limited configuration file support. | I have some limited configuration file support. | ||
- | { | + | |
" | " | ||
- | | + | |
} | } | ||
- | } | + | |
That is you can pass in arbitrary additional options to enblend. | That is you can pass in arbitrary additional options to enblend. | ||
Line 19: | Line 23: | ||
====== Usage ====== | ====== Usage ====== | ||
- | usage: pr0nts [-h] [--stw SUPER_TW] [--sth SUPER_TH] [--force] [--merge] | + | |
[--out-ext OUT_EXTENSION] [--full] [--st-xstep SUPER_T_XSTEP] | [--out-ext OUT_EXTENSION] [--full] [--st-xstep SUPER_T_XSTEP] | ||
[--st-ystep SUPER_T_YSTEP] [--clip-width CLIP_WIDTH] | [--st-ystep SUPER_T_YSTEP] [--clip-width CLIP_WIDTH] | ||
Line 25: | Line 29: | ||
pto project | pto project | ||
- | create tiles from unstitched images | + | |
- | positional arguments: | + | |
- | pto project | + | pto project |
- | optional arguments: | + | |
- | -h, --help | + | -h, --help |
- | --stw SUPER_TW | + | --stw SUPER_TW |
- | --sth SUPER_TH | + | --sth SUPER_TH |
- | --force | + | --force |
- | --merge | + | --merge |
- | --out-ext OUT_EXTENSION | + | --out-ext OUT_EXTENSION |
- | Select output image extension (and type), .jpg, .png, | + | Select output image extension (and type), .jpg, .png, |
- | .tif, etc | + | .tif, etc |
- | --full | + | --full |
- | --st-xstep SUPER_T_XSTEP | + | --st-xstep SUPER_T_XSTEP |
- | Supertile x step (advanced) | + | Supertile x step (advanced) |
- | --st-ystep SUPER_T_YSTEP | + | --st-ystep SUPER_T_YSTEP |
- | Supertile y step (advanced) | + | Supertile y step (advanced) |
- | --clip-width CLIP_WIDTH | + | --clip-width CLIP_WIDTH |
- | x clip (advanced) | + | x clip (advanced) |
- | --clip-height CLIP_HEIGHT | + | --clip-height CLIP_HEIGHT |
- | y clip (advanced) | + | y clip (advanced) |
- | --ignore-errors | + | --ignore-errors |
+ | |||
+ | ====== Choosing optimial supertile size ====== | ||
+ | |||
+ | The ideal supertile is the entire output panorama. | ||
+ | |||
+ | I'd like to add an option that tries to optimize based on how much memory you feed it but nothing like that exists as of today. | ||
+ | |||
+ | On my production machine I have 12 GB of memory. | ||
====== Examples ====== | ====== Examples ====== | ||
Line 63: | Line 75: | ||
pr0nts --clip-width 3264 --clip-height 2448 --stw=$[3264 * 5] --sth=$[2448 * 6] out.pto --merge --ignore-errors | pr0nts --clip-width 3264 --clip-height 2448 --stw=$[3264 * 5] --sth=$[2448 * 6] out.pto --merge --ignore-errors | ||
- | Note my camera takes 3264 X 2448 images. | + | Note my camera takes 3264 X 2448 images. |
+ | |||
+ | |||
+ | ====== Symptoms and fixes ====== | ||
+ | |||
+ | ===== Garbled tiles ===== | ||
+ | |||
+ | {{gallery>: | ||
+ | |||
+ | Chances are your project is poorly optimized. | ||
+ | |||
+ | |||
+ | ===== Uneven adjacent tile brightness ===== | ||
+ | |||
+ | {{gallery>: | ||
+ | |||
+ | Your source images have uneven brightness. | ||
+ | |||
+ | |||
+ | ===== Enblend fails ===== | ||
+ | |||
+ | Usually enblend will fail from out of memory. | ||
+ | |||
+ | |||
+ | ====== Tile size ====== | ||
+ | |||
+ | I chose 250x250 because that's what Google maps default is. I think I put in command line to change that as needed but its not well tested. | ||
+ | |||
+ | |||
+ | ====== BBB/ | ||
+ | |||
+ | < | ||
+ | echo >> | ||
+ | |||
+ | Host mk | ||
+ | User machinekit | ||
+ | EOF | ||
+ | |||
+ | sudo tee -a /etc/hosts << | ||
+ | 192.168.7.2 | ||
+ | EOF | ||
+ | |||
+ | # TODO: how to set static network config auto? | ||
+ | # Need 192.168.7.1 / 30 IIRC | ||
+ | </ | ||
pr0ntools/pr0nts.1329553849.txt.gz · Last modified: 2013/10/20 14:59 (external edit)