On Wed, 3 Jun 2009 09:12:24 -0700 Fred Weinhaus <[email protected]> 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 ) <[email protected]> ----------------------------------------------------------------------------- "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/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
