フィルターのクリア

Issue with overlaying medical images using transparency

1 回表示 (過去 30 日間)
Swathi
Swathi 2024 年 2 月 10 日
コメント済み: Swathi 2024 年 2 月 22 日
Changing image transparency seems simple enough, but when I try to do this to superimpose my PET and MR imaging data, I don't get good results. First image shows what I have now and second shows an example of correctly superimposed results done manually.
Would love some help with this issue and have included my code and the variables:
figure
for n = 1:10
subplot(2,5,n)
MRtr = imshow(Ven(1:156,1:156,n),[]);
hold on
PTtr = imshow(interpolatedPET(1:156,1:156,n)',[],Colormap=hot);
PTtr.AlphaData = 0.5;
end

回答 (1 件)

Taylor
Taylor 2024 年 2 月 13 日
You could use imfuse.
load workspaceoverlay.mat
figure
for n = 1:10
subplot(2,5,n)
% MRtr = imshow(Ven(1:156,1:156,n),[]);
% hold on
% PTtr = imshow(interpolatedPET(1:156,1:156,n)',[],Colormap=hot);
% PTtr.AlphaData = 0.5;
c = imfuse(Ven(1:156,1:156,n), interpolatedPET(1:156,1:156,n)');
imshow(c)
end
  1 件のコメント
Swathi
Swathi 2024 年 2 月 22 日
Thanks, is there any way to do this while preserving the original images' colors though?

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

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by