mpicbg icon indicating copy to clipboard operation
mpicbg copied to clipboard

Linear Stack Alignment with SIFT

Open EbozRoberts opened this issue 2 years ago • 2 comments

I am in a lab that has been using the “Linear Stack Alignment with SIFT” macro in Fiji to perform image alignment of time-lapse image stacks. The alignment works well using the default parameters of the macro, using “Translation” as the expected transformation.

The scale of the image stacks reverts to pixels after the alignment process. From looking at the Log window, there is an affine transform that appears to be run on the image. I am assuming that this transform does not preserve euclidean distances.

Is this why the pixel dimensions are lost?

I was told in the image.sc forum that the lack of preserve pixel dimensions was a bug and not a consequence of the algorithm. I'm not so sure.

Is this the place to ask this question?

EbozRoberts avatar Dec 01 '22 20:12 EbozRoberts

The px dimensions remain the same. Particularly for translation models, there is no doubt. This is just an oversight by me when I wrote this plugin, I was young and stupid. You can add copying the existing parameters into the result in a recorded macro.

axtimwalde avatar Dec 01 '22 22:12 axtimwalde

Thank you Stephan,

When I saw in the log that an affine transform was used, even when the expected transformation was set to translation, I thought maybe that there were some changes to the Euclidean distance between points. Glad to hear that there is nothing to worry about.

Eboz

From: Stephan Saalfeld @.> Sent: Thursday, December 1, 2022 4:38 PM To: axtimwalde/mpicbg @.> Cc: Moore, David S. @.>; Author @.> Subject: Re: [axtimwalde/mpicbg] Linear Stack Alignment with SIFT (Issue #63)

WARNING: This message has originated from an External Source. This may be a phishing expedition that can result in unauthorized access to our IT System. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

The px dimensions remain the same. Particularly for translation models, there is no doubt. This is just an oversight by me when I wrote this plugin, I was young and stupid. You can add copying the existing parameters into the result in a recorded macro.

Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Faxtimwalde%2Fmpicbg%2Fissues%2F63%23issuecomment-1334535443&data=05%7C01%7Cdsmzrf%40umkc.edu%7Cf69bc24d55af4395ce3808dad3eca34b%7Ce3fefdbef7e9401ba51a355e01b05a89%7C0%7C0%7C638055310560363330%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IunTQyM3TkD3umy7cnt2NhG19nR7HLxZOdW5RLsSYrU%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA4QWTHUXARRYFLT5Q6SDD7DWLESCZANCNFSM6AAAAAASRGVO2Q&data=05%7C01%7Cdsmzrf%40umkc.edu%7Cf69bc24d55af4395ce3808dad3eca34b%7Ce3fefdbef7e9401ba51a355e01b05a89%7C0%7C0%7C638055310560363330%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6Ns6XDRApsrw42F5oSqQOjT6TWQzMHFBVg%2F%2Fs6EdkkA%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.@.>>

EbozRoberts avatar Dec 02 '22 15:12 EbozRoberts