scikit-image icon indicating copy to clipboard operation
scikit-image copied to clipboard

Method for overlapping images added to Cross-Correlation (Phase Correlation) example.

Open paalge opened this issue 10 years ago • 6 comments

This adds to the Cross-Correlation (Phase Correlation) example by showing how to overlap two images once the shift has been calculated.

paalge avatar Jun 16 '15 14:06 paalge

Thanks for this addition to the example. If you're plotting the difference between the orginal and "back shifted" image, then it would be interesting to use a different shifting method to build the shifted array. Indeed, here we use both Fourier transform to shift forward and back, resulting in almost no difference. If you're using another method, like spline interpolation with ndimage.shift, then you can see that the error is greater for edges, which is quite interesting I think.

emmanuelle avatar Aug 27 '15 10:08 emmanuelle

Also, figures showing the grayscale images should use cmap='gray'. Could you please change this?

emmanuelle avatar Aug 27 '15 10:08 emmanuelle

Thank you for the comments. I've changed the cmap and the overflow issue. As for using another method I'm not sure if it should be added here or to a new example comparing the different methods for shifting?

paalge avatar Aug 29 '15 13:08 paalge

@paalge I'm really not an expert on methods for shifting, so I don't know if it's worth an example (if you think so, go for it!).

emmanuelle avatar Sep 03 '15 20:09 emmanuelle

I'm no expert on shifting algorithms either. The addition to this example added in order to clarify how you can use the calculated shift.

paalge avatar Sep 07 '15 11:09 paalge

Today I had to come back to this, as the example still lacks a way of showing how to use the shift. Is it still of interest to bring this in?

paalge avatar Dec 17 '24 10:12 paalge