代码搜索结果
找到约 8,819 项符合
RGB 的代码
ind2rgb.m
function [rout,g,b] = ind2rgb(a,cm)
%IND2RGB Convert indexed image to RGB image.
% RGB = IND2RGB(X,MAP) converts the matrix X and corresponding
% colormap MAP to RGB (truecolor) format.
%
%
ntsc2rgb.m
function [r,g,b] = ntsc2rgb(y,i,q)
%NTSC2RGB Convert NTSC values to RGB color space.
% RGBMAP = NTSC2RGB(YIQMAP) converts the M-by-3 NTSC
% (television) values in the colormap YIQMAP to RGB col
rgb2gray.m
function a = rgb2gray(r,g,b)
%RGB2GRAY Convert RGB image or colormap to grayscale.
% RGB2GRAY converts RGB images to grayscale by eliminating the
% hue and saturation information while retainin
rgb2lab.m
function LAB = rgb2LAB(RGB)
RGB = im2double(RGB);
R = RGB(:,:,1); G = RGB(:,:,2); B = RGB(:,:,3);
[H,W] = size(R);
r = reshape(R,1,W*H); g = reshape(G,1,W*H); b = reshape(B,1,W*H);
rgb=[r;g;b];
rgb2labconvert.m
function [Img, L, A, B, L_hist, A_hist, B_hist]=rgb2LABConvert(ImgFile)
%ImgFile
[Img,map] = imread(ImgFile);
if (isind(Img))
Img = ind2rgb(Img, map);
end
Img = im2double(Img);
%min(min(Img
yuv2rgb.c
/*
* yuv2rgb.c, Software YUV to RGB converter
*
* Copyright (C) 1999, Aaron Holtzman
*
* Functions broken out from display_x11.c and several new modes
* adde
rgb10to10.tdf
-- rgb10to10.tdf, conversion of 10 bits RGB between
-- "PDP convention" and "LCD convention"
-- Age van Dalfsen (AvD), 20041210
SUBDESIGN RGB10to10
(
lvds_dvi_sel : INPUT;
Rpdp[9..0]
rgb10to10.inc
-- rgb10to10.inc, conversion of 10 bits RGB between
-- "PDP convention" and "LCD convention"
-- Age van Dalfsen (AvD), 20041210
FUNCTION RGB10to10
(
lvds_dvi_sel,
Rpdp[9..0],
Gpdp[9..0],