MATLAB: Find Similarity transformation between two sets
image processing
Dear all, i have a two sets {a1 ,a2} and {b1, b2} and i want to find out the similarity transformation that can align these two sets.please suggest me any method regarding this.
Thanks in advance
Best Answer
Hi Promila, I see by your tag this is an image-processing question, you may find the System object in the Computer Vision Toolbox: vision.GeometricTransformEstimator useful or cp2tform() from the Image Processing Toolbox
For finding structural similarity index between two images you can usessimfunction.If there is translation androtation,then you may need to usexcorr2to find where the second image fits in the first image. Although cross correlation may not be able to figure out a similarityindex likessim, you may first align both image using method mentionedhere,then can applyssimon output images.
If you know the matrix A is supposed to be symmetric, I'd say symmetrize A, and then symmetrize B again, becauseQ*A*Q' will introduce a small numerical error and not be exactly symmetrical.
Although if you can directly transform the eigenvalues as David suggest, that would probably be best. It depends on whether the matrix A is meant to be symmetric, I'd say.
Best Answer