Needing help registering and avergaing shifted frames

조회 수: 4 (최근 30일)
Cameron Kreevich
Cameron Kreevich 2021년 11월 29일
댓글: Image Analyst 2021년 11월 30일
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

답변 (1개)

Image Analyst
Image Analyst 2021년 11월 29일
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
Cameron Kreevich
Cameron Kreevich 2021년 11월 30일
So are you saying I could just use photoshift(:, :, 1) insteasd of imshow(frame1.tif)?
Image Analyst
Image Analyst 2021년 11월 30일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by