Debian Hugin Alternatives to Pto Gen
pto_gen -o /tmp/project.pto images/*.jpg
cpfind -o /tmp/project.pto --multirow /tmp/project.pto
cpclean -o /tmp/project.pto /tmp/project.pto
linefind -o /tmp/project.pto /tmp/project.pto
autooptimiser -v HFOV -a -o /tmp/project.pto /tmp/project.pto
pano_modify --canvas=AUTO --crop=AUTO -o /tmp/project.pto /tmp/project.pto
pto2mk -o /tmp/project.mk -p prefix /tmp/project.pto
make -f /tmp/project.mk all
There are different tools that would approximately accomplish the same thing as pto_gen
, which is to generate a pto project.
autopano-sift-c
You can install autopano-sift-c
using bower. On debian, I did not find a package, so I'm assuming I would have to build from source. More info here.
autopano-sift-c --projection 0,50 /tmp/project.pto images/*.jpg
cpclean -o /tmp/project.pto /tmp/project.pto
linefind -o /tmp/project.pto /tmp/project.pto
autooptimiser -v HFOV -a -o /tmp/project.pto /tmp/project.pto
pano_modify --canvas=AUTO --crop=AUTO -o /tmp/project.pto /tmp/project.pto
pto2mk -o /tmp/project.mk -p prefix /tmp/project.pto
make -f /tmp/project.mk all
mv /tmp/prefix.tif ~/NODEJS/pinorama/out/testing.tif
match-n-shift
To use match-n-shift you need to install the Panotools-Script. The installation process was straight forward- probably not the right way of doing it but it worked. Download the zip package from github, unpack it.
perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Image::ExifTool 9.07 not found.
Warning: prerequisite Image::Size 2.9 not found.
Writing Makefile for Panotools::Script
Writing MYMETA.yml and MYMETA.json
Most likely you will have to configure CPAN to use it for the first time. It's pretty straight forward and you should be able to just accept all defaults. Just install the dependencies. At the time of this writing Panotools-Script depends on Image::ExifTool
9.07. CPAN only has access to the latest releases, which at this time was 9.90. Just go to Makefile.PL, look for the reference to Image::ExifTool 9.07 and replace it with the current version. In the case did not break with 9.90.
$ sudo cpan Image::ExifTool
$ sudo cpan Image::Size
$ sudo cpan Test::More
Then, just follow the build instructions.
perl Makefile.PL
make
make test
sudo make install
match-n-shift --output /tmp/project.pto images/*.jpg
cpfind -o /tmp/project.pto --multirow /tmp/project.pto
cpclean -o /tmp/project.pto /tmp/project.pto
linefind -o /tmp/project.pto /tmp/project.pto
autooptimiser -v HFOV -a -o /tmp/project.pto /tmp/project.pto
pano_modify --canvas=AUTO --crop=AUTO -o /tmp/project.pto /tmp/project.pto
pto2mk -o /tmp/project.mk -p prefix /tmp/project.pto
make -f /tmp/project.mk all
panomatic
panomatic would be another option, but did not find a brew package.