JohnPW wrote:
Why not faux-bracket the source images first, then stack and enfuse them before 
stitching?
This is similar to making bracketed images from RAW files (eliminates 
alignment/movement difficulties common to conventional bracketing.)
I have to admit, most of my panos are from jpegs shot with cheap point and 
shoots that don't do RAW (and using TIFF is too onerous.)

I just threw (almost literally) a perl
script together to do this, and the results are impressive.

  BugBear (script appended)

Here it is:

#!/usr/bin/perl

use strict;
use warnings;

sub mk {
    my ($in) = @_;
    my $list;
    for(my $i = 0; $i <= 100; $i += 20) {
        my $o = sprintf("c%03d.tif", $i);
        my $cmd = "convert $in -sigmoidal-contrast 5x$i\% $o";
        `$cmd`;
        $list .= " $o";
    }
    return $list;
}

sub enf {
    my ($out, $list) = @_;
    my $cmd = "enfuse --output=$out $list";
    `$cmd`;
}

unless(scalar(@ARGV) == 2) { die "in, out" };

my $in = $ARGV[0];
my $out = $ARGV[1];
my $list = mk($in);
enf($out, $list);

--
You received this message because you are subscribed to the Google Groups "Hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to