find the largest mutual information between images
조회 수: 1 (최근 30일)
이전 댓글 표시
hello everyone. I have a single image called 'A' and a voulme with slices called 'B1,...B100'.
I want to find the best match slice from any image of 'B' with A by finding the largest mutual information of each A&B1,A&B2,...,A&B100.
for example the mutual information between A and B50 is the most largest, so the most similar slice of volume B with image A, is B50.
Could you help me please?
Thanks
댓글 수: 2
PabiG
2019년 6월 25일
Hi,
do the A and B-images have the same 2D-size?
If so, I would suggest to do something like that:
Differences = zeros(size(B,3)); %or cell(size(B,3)) if you want to analyze the local errors
for i = 1:size(B,3)
Differences(i) = mean(( (A - B(:,:,i)).^2 ).^.5, 'all'); %mean diff between pics
end
[minValue, minIndex] = min(Differences);
MostSimilar_B = B(:,:,minIndex);
Is that what you want?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!