[問題] transparent overlaid image output pr …已回收

看板MATLAB作者 (aa)時間15年前 (2010/06/23 01:01), 編輯推噓0(006)
留言6則, 2人參與, 最新討論串1/1
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
點陣輸出就會正常,用 print 可以,copy 則要看設定。
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
我輸出都沒有問題啊 XD
06/25 01:29, 2F

06/25 01:30, , 3F
不然你就是直接兩張圖直接拿來算成一張新圖,也 OK。
06/25 01:30, 3F

06/28 07:59, , 4F
要怎麼把兩張圖算成一張新圖呢?我是2009b
06/28 07:59, 4F

06/28 07:59, , 5F
是不是版本不同?
06/28 07:59, 5F

06/28 08:14, , 6F
自己算圖跟版本沒關係,只是 pixel 數值間的加減乘除。
06/28 08:14, 6F
文章代碼(AID): #1C8EnClw (MATLAB)