find mutual information between images

4 ビュー (過去 30 日間)
talayeh ghodsi
talayeh ghodsi 2019 年 6 月 26 日
コメント済み: talayeh ghodsi 2019 年 6 月 28 日
hi every body
i have written a code to find the mutual information between one fixe image called 'X' and 33 images called 'Y'. (i have downloaded the MI_GG from https://ch.mathworks.com/matlabcentral/fileexchange/36538-very-fast-mutual-information-betweentwo-images)
but the answer of my code is only one, but it should be 33 values.
how should i change the code?
clc
clear all
close all
surf_read_dir='E:\phd\zahra taati\CT-4chamber\for\x00_68\croped\';
files=dir('E:\phd\zahra taati\CT-4chamber\for\x00_68\croped\*.jpg');
X = rgb2gray(imread('echo.jpg'));
sz=size(X);
for im=1:size(files)
fdir = strcat(surf_read_dir , files(im).name);
slice_im = load(fdir);
Y = rgb2gray(imread(fdir));
YY = imresize(Y,sz);
M = MI_GG(X,YY);
end

採用された回答

sourav  malla
sourav malla 2019 年 6 月 26 日
  1 件のコメント
talayeh ghodsi
talayeh ghodsi 2019 年 6 月 28 日
thanks for your answer. is there any solution of that to use between 2D image and 3D volume instead od 2D-2D?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by