影像显示和读写.pptVIP

  • 3
  • 0
  • 约1.06千字
  • 约 21页
  • 2017-08-09 发布于河南
  • 举报
影像显示和读写

影像顯示與讀寫;影像顯示:強度影像(Intensity Images);影像顯示:強度影像(Intensity Images);影像顯示:強度影像(Intensity Images);;雙精準的全彩影像轉作 uint8 資料型態: RGB8 = uint8(round(RGB64*255)); unit8 (8-bit)轉換成雙精準的全彩影像資料: RGB64 = double(RGB8)/255; 8-bit 影像轉回雙精準影像: Z64 = double(Z8)+1; uint8 資料型態亦可用於全彩影像資料,此時每一像素的原色(R,G 或 B)範圍為 0 至 255 間的整數,而不再是 0 至 1 的小數。;imwrite:可將資料寫成影像檔 最後一列敘述將會呼叫 Windows 作業系統下的應用程式來開啟 Clown1.jpg 檔案。同 dos(start Clown1.jpg);load clown.mat figure; image(X); colormap(map) newmap = rand(size(map)); figure; image(X); colormap(newmap) imwrite( X, newmap, Clown2.jpg); !start Clown2.jpg ;imfinfo:可用於傳回影像檔案的各項資訊

文档评论(0)

1亿VIP精品文档

相关文档