Hans-Georg Michna said:
Lorenzo,
we're leading a highly speculative discussion now, but for the
sake of entertainment, I'd say that it would be interesting to
find out how scanners actually misalign successive scans of the
same photo. Perhaps it's not as bad as you think.
Perhaps.
But even if, say, a slide slowly moves during a scan, software
could still transform the resulting slightly distorted images.
It could, for example, work not just with a linear model on the
entire picture, but could align pieces. Autostitch gives a vague
indication what's possible.
Yes, *if a slide slowly moves during a scan* (or rather if the stepping
motors slowly drifts).
ALE can do it, and not just by "working with pieces", but by actually
automatically performing transformations (shrinking, enlargement, rotation
even) on each image. Sorry for sounding like an advert for ALE, I'm not
involved in it in any way, I just think it's a cool program.
But I'm more dubious on what could happen if the misalignment doesn't just
change slowly, but has significant errors at *each* scan line -- errors
which, in the end, could even average out to zero, giving the impression of
*no* error at all! And still, it would be worse than "a slide slowing
moving during the scan".
It would be interesting to be able to obtain a higher resolution
from a relatively cheap scanner, even if it takes long, just for
the one very important photo.
Yeah, running ALE does take *very* long though for big images, at least
here.
Hans-Georg
p.s. Looked at ALE and liked what I saw, but I simply don't have
the time to learn and understand all those parameters. I would
need an automatic program that's easy to use.
I think you guys here in CPS are simply scared by the command line
ALE does have a lot of parameters, as any complex and powerful program, but
it also has reasonable defaults for the times you don't want to use all
those parameters.
Just specify:
ALE image_1 image_2 ... image_n output_image
and you'll be able to merge frames in a multi-pass multi-scan way (but
*with* the realignment).
This way, the output image will not have more resolution than the input
images, just (hopefully) less noise. If you want to try what we're talking
about in this thread, you can do
ALE --scale=x image_1 image_2 ... image_n output_image
where x is the scale factor (2 for example).
In both cases, you'll be using defaults (specifically, you'll default to
option "--q0") that try to make the process fast (sort of), but sacrifice
quality.
Add options "--qn", "--q1" or "--q2" (sorted by quality, from lowest to
highest) to change that. I think that, for experimenting with resolution
improving, one should use either "--q1" or "--q2", while "--qn" could be
adequate for normal multi-pass multi-scanning (the "n" in "--qn" stands for
"noise").
Also, by default, ALE only tries applying "Euclidean" (translation,
rotation) transformations to re-align images. You can specify
--projective
to get all the transformations ALE is capable of, or
--translation
if you are in a hurry.
There are a ton more parameters that can be used, but hey, if you trust the
program's authors as far as the program code is concerned, you could trust
them on their choice of default parameters as well! At least if you don't
have long hours to waste.
by LjL
(e-mail address removed)