資源簡介
彩色圖像處理 格式轉(zhuǎn)化rgb2hsi,hsi2rgb
岡薩雷斯
代碼片段和文件信息
function?rgb?=?hsi2rgb(hsi)
%HSI2RGB?Converts?an?HSI?image?to?RGB.
%?RGB?=?HSI2RGB(HSI)?converts?an?HSI?image?to?RGB?where?HSI
%?is?assumed?to?be?of?class?double?with:?
%????hsi(::1)?=?hue?image?assumed?to?be?in?the?range?[01]?by?having
%?????????????????been?divided?by?2*pi.
%????hsi(::2)?=?saturation?image?in?the?range?[01].
%????hsi(::3)?=?intensity?image?in?the?range?[01].
%
%?The?components?of?the?output?image?are:
%????rgb(::1)?=?red.
%????rgb(::2)?=?green.
%????rgb(::3)?=?blue.
%?Extract?the?individual?HSI?component?images.
H?=?hsi(::1)*2*pi;
S?=?hsi(::2);
I?=?hsi(::3);
%?Implement?the?conversion?equations.
R?=?zeros(size(hsi1)size(hsi2));
G?=?zeros(size(hsi1)size(hsi2));
B?=?zeros(size(hsi1)size(hsi2));
%?RG?sector?(0<=H?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1220??2010-09-08?15:11??rgb2hsi.m
?????文件????????1703??2010-09-08?18:14??hsi2rgb.m
評論
共有 條評論