Needing help registering and avergaing shifted frames
Mostra commenti meno recenti
i have a mat file that contains 20 shifted frames of an image. I have put together a code using the phase correlation method. however i am getting some errors and warnings I am not sure how to work around. The code is posted below
Risposte (1)
Image Analyst
il 29 Nov 2021
0 voti
I see:
Error using imread>get_full_filename (line 569)
File "frame1.tif" does not exist.
Error in imread (line 371)
fullname = get_full_filename(filename);
Error in test8 (line 11)
fixed = imread('frame1.tif');
The problem is that you do not have frame1.tif as a file on disk in the current folder, or on the search path, thus imread() cannot find it.
7 Commenti
Cameron Kreevich
il 29 Nov 2021
Modificato: Cameron Kreevich
il 29 Nov 2021
Image Analyst
il 29 Nov 2021
And I'll be able to try to reproduce your error once you attach frame1.tif.
Cameron Kreevich
il 29 Nov 2021
Image Analyst
il 30 Nov 2021
I don't think that would work. A figure saved as an image has white/blank space around it, possibly axes tick marks and labels, etc. It has extra stuff on it beyond the image that's living in the axes control. If you called imshow() to display an image and then saved the figure, I think maybe you just should use the orginal image you displayed rather than a saved screenshot of a figure window.
By the way, is this your homework assignment?
Cameron Kreevich
il 30 Nov 2021
Cameron Kreevich
il 30 Nov 2021
Image Analyst
il 30 Nov 2021
Yes, if the first image is your "fixed" image that all other images need to be aligned to. In fact it would be better because then your images are the actual images instead of a screen capture of an image on a figure.
Categorie
Scopri di più su Convert Image Type in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!