代码搜索结果
找到约 8,819 项符合
RGB 的代码
yuv2rgb.c
/************************************************************************
*
* yuv2rgb.c, colour space conversion for tmndecode (H.263 decoder)
*/
#include "config.h"
#include "tmndec.h"
colors_rgb888.h
#define RGB888_Black 0x00000000
#define RGB888_DarkBlue 0x0000007f
#define RGB888_DarkGreen 0x00007f00
#define RGB888_DarkCyan 0x00007f7f
#define RGB888_DarkRed 0x007f0000
#define RG
hsv2rgb.m
function [rout,g,b] = hsv2rgb(h,s,v)
%HSV2RGB Convert hue-saturation-value colors to red-green-blue.
% M = HSV2RGB(H) converts an HSV color map to an RGB color map.
% Each map is a matrix with
rgb2hsv.m
function [h,s,v] = rgb2hsv(r,g,b)
%RGB2HSV Convert red-green-blue colors to hue-saturation-value.
% H = RGB2HSV(M) converts an RGB color map to an HSV color map.
% Each map is a matrix with any
hsv2rgb.m
% HSV2<mark>RGB</mark> HSV(怓憡-嵤搙-抣)僇儔乕儅僢僾傪<mark>RGB</mark>(愒-椢-惵)偵曄姺
%
% M = HSV2<mark>RGB</mark>(H) 偼丄HSV僇儔乕儅僢僾傪<mark>RGB</mark>僇儔乕儅僢僾偵曄姺偟傑偡丅
% 奺儅僢僾偼丄擟堄偺峴悢傪傕偮3楍偺峴楍偱丄梫慺偼0偐傜1偺嬫娫偺抣偱偡丅
% 擖椡峴楍 H 偺楍偼丄偦傟偧傟怓憡丄嵤搙丄抣傪昞傢偟傑偡丅
% 弌椡峴楍 M 偺楍偼丄偦傟偧傟愒丄椢丄惵偺嫮搙傪昞傢偟傑 ...
rgb2graykpm.m
function g = rgb2grayKPM(rgb)
% function g = rgb2grayKPM(rgb)
% rgb2grayKPM Like the built-in function, but if r is already gray, does not cause an error
[nr nc ncolors] = size(rgb);
if ncolors
ycrcb2rgb.v
module YCrCb2RGB ( R, G, B, clk, rst, Y, Cr, Cb );
/*
R=1.164*(Y-16)+1.596*(Cr-128)
G=1.164*(Y-16)-0.813*(Cr-128)-0.392*(Cb-128)
B=1.164*(Y-16)+1.596*(Cr-128)
*/
output [7:0] R, G, B;
input
rgb2xyz.m
%RGB2XYZ Convert RGB to XYZ color space
%
% [x, y, z] = RGB2XYZ(r, g, b)
% xyz = RGB2XYZ(rgb)
%
% Convert (R,G,B) coordinates to (X,Y,Z) color space.
% If RGB (or R, G, B) have more than one row, then