代码搜索结果
找到约 5,749 项符合
RGB 的代码
imono.m
%IMONO Convert color image to monochrome
%
% im = imono(rgb)
%
% SEE ALSO: rgb2hsv
%
% Copyright (c) Peter Corke, 2005 Machine Vision Toolbox for Matlab
% $Header: /home/autom/pic/cvsroot/image-tool
yuv2rgb2.m
%YUV2RGB Convert YUV format to RGB
%
% [r,g,b] = yuvread2(y, u, v)
% rgb = yuvread(y, u, v)
%
% Returns the equivalent RGB image from YUV components. The UV images are
% doubled in resolution so the
yuv2rgb.m
%YUV2RGB Convert YUV format to RGB
%
% [r,g,b] = yuvread(y, u, v)
% rgb = yuvread(y, u, v)
%
% Returns the equivalent RGB image from YUV components. The Y image is
% halved in resolution.
%
% Copyrig
sumarize11_5_2a.m
%调入与显示RGB图像
RGB = imread('peppers.png');
isrgb(RGB);
figure(1);
imshow(RGB);
%RGB图转换为灰度图像
I = rgb2gray(RGB);
figure(2);
imshow(I);
colorbar('horiz');
isgray(I);
%边缘检测
ED = edge(I,'sobel',0
sumarize11_5_4b.m
%载入图像
RGB = imread('saturn.png');
%RGB转换为灰度图
I = rgb2gray(RGB);
%加入高斯白噪声
J = imnoise(I,'gaussian',0,0.005);
%采用自适应滤波
K = wiener2(J,[5 5]);
%显示原始图像、加入噪声的图像以及滤波后的噪声
imshow(I)
figure,imshow(J)
sumarize11_2_2cl.m
RGB = imread('saturn.png');
I = rgb2gray(RGB);
h = [1 2 1; 0 0 0; -1 -2 -1];
I2 = filter2(h,I);
imshow(I2,[]), colorbar
sumarize11_6_3.m
%载入图像
load trees
%RGB转换为灰度图
I = ind2gray(X,map);
imshow(I)
%指定特定区域,并进行填充
I2 = roifill;
imshow(I2)
sumarize11_4_2ars.m
%载入图像
RGB = imread('autumn.tif');
figure(1);
imshow(RGB);
%将真彩图转换为灰度图
I = rgb2gray(RGB);
figure(2);
imshow(I);
%进行余弦变换
J = dct2(I);
figure(3);
imshow(log(abs(J)),[]);
colormap(jet(64));
c
172.txt
RGB 函数
Microsoft® Visual Basic® Scripting Edition
RGB 函数
语言参考
版本 2
请参阅
描述
返回代表 RGB 颜色值的整数。
语法
RGB(red, green, blue)
RGB 函数的语法有以下参数:
部分
描述
red
必选。0 到 255 间的整数,代表颜色中的红色成
color.h
// Color.h
// Colorref's to use with your Programs
#define RED RGB(127, 0, 0)
#define GREEN RGB( 0,127, 0)
#define BLUE RGB( 0, 0,127)
#define LIGHTRED RGB(255, 0, 0