block matching image issue
이전 댓글 표시

When I did blockmatching algorithm on the tennis man image, and did a comparaison between the original and reconstructed image I got this black boxes, why?
댓글 수: 5
Image Analyst
2023년 4월 8일
There is no way to tell with the minimal information you have shared. If you have any more questions, then attach your image(s) and code to read it in with the paperclip icon after you read this:
Blob
2023년 4월 8일
편집: Walter Roberson
2023년 4월 8일
Walter Roberson
2023년 4월 8일
We would need your .mat files for testing.
Blob
2023년 4월 8일
(Just showing the output, not trying to debug the problem)
Untitled5
답변 (1개)
Walter Roberson
2023년 4월 8일
Your attached code (but not your posted code) has
imshow (F2_recons - e1)
where both of those arrays are double precision and happen to contain integer values. The difference between the two arrays ranges between -255 and +206 . You are passing that array of values -255 to +206 to imshow() as a double precision array. By default, when passed a double precision array, imshow() assumes that the valuable part of the data is the range 0 to 1, and that anything below 0 should be treated as 0 and anything above 1 should be treated as 1. So you more or less end up binarizing the difference array.
You should be considering using
imagesc(F2_recons - e1);
colormap(gray)
댓글 수: 2
Blob
2023년 4월 10일
Walter Roberson
2023년 4월 10일
Sorry, no, I do not see anything in your code that corresponds to vectors of motion, or anything that corresponds to motion at all. I cannot tell what you are calculating at all.
카테고리
도움말 센터 및 File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



