《數字圖像處理(MATLAB)》岡薩雷斯
未完結!
參考:數字圖像處理——https://blog.csdn.net/dujing2019/article/category/8820151
ISSUE匯總:
第5章彩色圖像處理
Issue1:P138例 5.4 執行p_snap = iccread('SNAP2007.icc'); %新聞紙剖面 報錯?
答:缺少SNAP2007.icc文件。下載地址:ICC Profile Registry——http://www.color.org/registry/index.xalter
代碼如下:
f=imread('D:\數字圖像處理\第六章學習\girl.png');
fp = padarray(f, [40 40], 255, 'both');
fp = padarray(fp, [4 4], 230, 'both');
p_srgb = iccread('E:\Code\sRGB.icm'); %描述sRGB彩色空間的剖面
p_snap = iccread('E:\Code\SNAP2007.icc'); %新聞紙剖面
cform1 = makecform('icc', p_srgb, p_snap);
fp_newsprint = applycform(fp, cform1);
cform2 = makecform('icc', p_snap, p_srgb, 'SourceRenderingIntent', 'AbsoluteColorimetric', 'DestRenderingIntent', 'AbsoluteColorimetric');
fp_proof = applycform(fp_newsprint, cform2); %指定渲染意圖
subplot(1, 2, 1), imshow(fp);title('(a)具有白邊的原始圖像');
subplot(1, 2, 2), imshow(fp_proof);title('(b)當在新聞紙上打印時對圖像外觀的模擬 ');
————————————————
參考:1)數字圖像處理第六章——彩色圖像處理(上)——https://blog.csdn.net/Dujing2019/article/details/89445038
Issue2:
