find mutual information between series of images

2 ビュー (過去 30 日間)
talayeh ghodsi
talayeh ghodsi 2019 年 11 月 10 日
コメント済み: talayeh ghodsi 2019 年 11 月 10 日
hi everybody.
I have an image called 'echo'. and series of 16 images called 4-chamber view190...4-chamber view206.
I want to find the mutual information between echo and the series of 16 images to find the maximum mutual information between echo and one of the 16 images.
i have written a for loop but the output is just one scalar for example MI=2. but i need 16 MI outputs to find the maximum of them. could anyone tell me how can i do that?
Image_Address='I:\area finding\10%\';
file_format_Echo='.jpg';
echo=rgb2gray(imread('echo_masked.jpg'))
[m,n] = size(echo)
for num_echo=190:206
prefix_image='4-chamber view';
Image=imread(strcat(Image_Address,prefix_image,num2str(num_echo),file_format_Echo));
Image=imresize(echo,[m,n])
MI=MI2(echo,Image,'Normalized')
end

回答 (1 件)

Arash Rabbani
Arash Rabbani 2019 年 11 月 10 日
Hi, why dont you save the MI values inside an array like this:
and then find the location of the maximum value.
Image_Address='I:\area finding\10%\';
file_format_Echo='.jpg';
echo=rgb2gray(imread('echo_masked.jpg'))
[m,n] = size(echo)
for num_echo=190:206
prefix_image='4-chamber view';
Image=imread(strcat(Image_Address,prefix_image,num2str(num_echo),file_format_Echo));
Image=imresize(echo,[m,n])
MI(num_echo)=MI2(echo,Image,'Normalized')
end
MAX_MI_Location=find(MI==max(MI))
  1 件のコメント
talayeh ghodsi
talayeh ghodsi 2019 年 11 月 10 日
thanks for yur answer sir
the MI(num_echo) should have 16 elements but as you see in work space (screenshot is attached) it has 206 elements
how can i solve it?

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

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by