资源简介
彩色图像处理 格式转化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
评论
共有 条评论