How to overlay a semi-transparent colorimage over a grayscale image?
3 次查看(过去 30 天)
显示 更早的评论
Hi all,
I would like to overlay a semi-transparent colorimage over a grayscale image (colored fMRI activity map over a structural MRI image). I tried to use colorFreeze, but if I do, for some reason I lose the transparency of the overlay image.
i = 30; %Slice 30 of an MRI image.
image(anat.img(:,:,i),'CDataMapping','scaled');colormap gray;
%freezeColors;
hold on;
image(im(:,:,i),'CDataMapping','scaled','AlphaData',mask(:,:,i));colormap(autumn);
Transparency works fine without the use of freezeColors.
0 个评论
回答(2 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!