[magick-users] Interpolate from 2 Images
Anthony Thyssen
A.Thyssen at griffith.edu.au
Wed Jun 3 19:35:37 PDT 2009
On Wed, 3 Jun 2009 09:12:24 -0700
Fred Weinhaus <fmw at alink.net> wrote:
| You would need to use -resize not scale and
| change the size of both images to match perfectly
| (that is unfortunately an issue) and then
| composite -blend them together.
|
| The problem is that just resizing will not make
| them match pixel-for-pixel and you will get an
| image doubling.
|
| Unfortunately, IM does not have an image
| registration function, yet. But that would then
| require picking many control points and IM does
| not have that feature either.
|
| You could look at ImageJ and some of its plugins. In particular,
|
| http://rsb.info.nih.gov/ij
| http://rsb.info.nih.gov/ij/plugins/
| http://bigwww.epfl.ch/thevenaz/pointpicker/
| http://biocomp.cnb.uam.es/~iarganda/bUnwarpJ/
|
|
However if you can pick corresponding control points. Preferably
down to a 'sub-pixel' level that many auto-mated image registration
programs can do. Then IM can use -distort to align the two images
at the right scale, rotation, and translation (using 'affine' or
'perspective').
NOTE: When making pixel selections, you need to give coordinates as the
'middle' of that selected pixel's area, as a floating point number.
That is, to select pixel 4,5 (as integers) then the correct 'sub-pixel'
coordinate should be 4.5,5.5 within the image, this is the coordinate
that should be input as a control point.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
"Death is dead; long live Death!" - Purgatory News Caster
-- Piers Anthony `On a Pale Horse'
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list