[問題] transparent overlaid image output pr …已回收
http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/
我照這頁第二exsample成功overlay 半透明img,但是不論我用
print -dtiff, copy paste, exportfig.m
輸出的image全部是全黑
改了colordef也沒用
請問有什麼好方法嘛?PrScn key成功就是了 ....
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 128.252.16.235
→
06/23 22:44, , 1F
06/23 22:44, 1F
我存成matlab的fig是可以正常顯示的,
fig放在這邊http://www.badongo.com/file/23499658
但是save as bmp TIFF全部會變成全黑
print也是全黑
還是我做這張圖的code有問題呢?
clc
load ff, load hh,% hh is proton image, ff is fluorine img
I = mat2gray(hh);
img=imshow(I)
hold on
I2=ind2rgb(round(mat2gray(ff)*255),jet(256));
h = imshow(I2);
hold off
dr=4.5;
trans=log(mat2gray(ff))+dr;
trans(trans<0)=0;
trans=trans/dr;
set(h, 'AlphaData', trans)
axis on
※ 編輯: VVVVii 來自: 128.252.16.235 (06/24 01:54)
→
06/25 01:29, , 2F
06/25 01:29, 2F
→
06/25 01:30, , 3F
06/25 01:30, 3F
→
06/28 07:59, , 4F
06/28 07:59, 4F
→
06/28 07:59, , 5F
06/28 07:59, 5F
→
06/28 08:14, , 6F
06/28 08:14, 6F