Alignimages gui: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
No edit summary
imported>Scott
No edit summary
Line 1: Line 1:
==Image Alignment==
==Image Alignment==


The image alignment tool can align two images using user-selected points on both images. The user identifies corresponding points in the two images and the second image is shifted, rotated and stretched to match the first image. The rotated (right-side) image can then be saved to the workspace or file.
The image alignment tool can align two images using user-selected points on both images. The user identifies corresponding points in the two images and the second image is shifted, rotated and stretched to match the first image. The rotated (right-side) image can then be saved to the workspace or file.  '''Note:''' it is best to put the smaller sized image second so entire area of both images are visible.


To perform alignment click on a point in one image then locate and click on the corresponding point in the other image. As points are added the alignment will be updated. Use the Zoom button to magnify the images and more accurately locate the position of a clicked point. Points are designated by ordered number and can be dragged to fine-tune the alignment.  
To perform alignment click on a point in one image then locate and click on the corresponding point in the other image. As points are added the alignment will be updated. Use the Zoom button to magnify the images and more accurately locate the position of a clicked point. Points are designated by ordered number and can be dragged to fine-tune the alignment.  
[[Image:alignimagepair_toolbar.jpg |||Align Image Toolbar]]


The following code can be run to generate an example alignment. The "rice" image is modified to have two square "holes" in the image then a second image is created by rotating the first image 90 degrees:
The following code can be run to generate an example alignment. The "rice" image is modified to have two square "holes" in the image then a second image is created by rotating the first image 90 degrees:
Line 16: Line 19:
Clicking 3-4 points at the edges of the "holes" does a pretty good job at aligning the images. Zooming would help to improve the point placement and alignment.
Clicking 3-4 points at the edges of the "holes" does a pretty good job at aligning the images. Zooming would help to improve the point placement and alignment.


[[Image:Alignimages_beforeafter.jpg| | |Align Images Screen]]
[[Image:Alignimages_beforeafter.jpg| |500px |Align Images Screen]]

Revision as of 15:16, 29 September 2014

Image Alignment

The image alignment tool can align two images using user-selected points on both images. The user identifies corresponding points in the two images and the second image is shifted, rotated and stretched to match the first image. The rotated (right-side) image can then be saved to the workspace or file. Note: it is best to put the smaller sized image second so entire area of both images are visible.

To perform alignment click on a point in one image then locate and click on the corresponding point in the other image. As points are added the alignment will be updated. Use the Zoom button to magnify the images and more accurately locate the position of a clicked point. Points are designated by ordered number and can be dragged to fine-tune the alignment.


Align Image Toolbar

The following code can be run to generate an example alignment. The "rice" image is modified to have two square "holes" in the image then a second image is created by rotating the first image 90 degrees:

load rice_bw
rice(10:90,10:90) = 0;
rice(10:90,310:390) = 0;
riceds = buildimage(rice);
riceds2 = rot90_img(riceds);
alignimagepair(riceds,riceds2)

Clicking 3-4 points at the edges of the "holes" does a pretty good job at aligning the images. Zooming would help to improve the point placement and alignment.

Align Images Screen