fitting objects together

Post questions on how to use or achieve an effect in Inkscape.
newuser
Posts: 4
Joined: Fri Oct 25, 2013 4:04 am

fitting objects together

Postby newuser » Fri Oct 25, 2013 4:13 am

Hi all,

I have two raster images of the same sample. Each was taken with a different filter. They are transformations of each other related by a combination of translation and rotation (i.e. no skew and no distortion). Is there some way to pick two points that should be in the same place on both images and use this define a single transformation that should be applied to one image other so that they can be aligned?

Thank you!

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: fitting objects together

Postby Lazur » Sat Oct 26, 2013 9:30 am

Hi.

If those images were transformed inside inkscape, you can open the xml editor (Ctrl+Shift+X) and change those values to match one another.
Maybe it would be easier to remove those transformations, stich the images, then apply those transformation after for like a group made of the two stitched images.

Are you looking for values to set at the transformation panel, that would do the job alone?
To my experience one transformation matrix won't make an accurate result, so you would need a combination of translation and rotation for each object.
The rotation value would be the difference between the two object's rotation.
To get the right translation values, it would be the easiest way to construct that manually.

newuser
Posts: 4
Joined: Fri Oct 25, 2013 4:04 am

Re: fitting objects together

Postby newuser » Wed Oct 30, 2013 3:43 am

Hi,

It is actually for for raster images from outside inkscape. So the two images start out in a random and unknown orientation and location relative to each other. (Basically it depends upon the document scanner).

Thanks for the answer. Since someone pointed out how to use the center of transformation for size transfromation as well as rotation I can do it manually pretty easily now.


Return to “Help with using Inkscape”