LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to measure the shift between two resembling images using LabVIEW?

I am running an experiment in which I use a microscope to map the surface of a laboratory sample and due to some small drift consecutive image appear displaced. In order to correct for the drift I need to first measure it, which I can do by recording two images and finding the shift between. Because of some small random noise which adds to each image, the features in two consecutive images are not completely identical, but they do resemble each other very well. Do you have any suggestions on how to measure this image shift (in both x and y) using LabVIEW (I have version 8.20)?

0 Kudos
Message 1 of 3
(2,744 Views)

You could probably do a 2D cross-correlation and look for the position of the highest peak in the result. Can you attach two typical images?

Message 2 of 3
(2,737 Views)

Hi, thanks for the answer, I´ll try to see if a 2D cross-correlation will work. I also attached two typical images with a small shift between them (there is also some change in background between them, but I belive the shift should still be measurable).

Download All
0 Kudos
Message 3 of 3
(2,713 Views)