代码搜索结果
找到约 5,749 项符合
RGB 的代码
example4_12将一副真彩图像转换为一个ycbcr模型空间对应的图像.m
RGB=imread('hr.jpg');
YCbCr=rgb2ycbcr(RGB);
subplot(1,2,1);
subimage(RGB);
title('原图像');
subplot(1,2,2);
subplot(1,2,2);
subimage(YCbCr);
title('变换后的图像');
program_01_03.m
%原始索引图像
load trees
%转换为灰度图像
I = ind2gray(X,map);
figure(1)
subplot(2,2,1);imshow(X,map);title('索引图像');
subplot(2,2,2);imshow(I);title('转换后的灰度图像');
%原始真彩图像
RGB = imread('peppers.png');
%转换为索引图
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
rgb2hsi.m
%RGB2HSI Transform RGB to HSI color space
%
% [h s i] = rgb2hsi(r, g, b)
%
% Convert (r,g,b) color coordinates to HSI coordinates.
%
% Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matla
figure7.m
RGB=imread('autumn.tif');
I=rgb2gray(RGB);
imshow(I);
figure(2);
J=dct2(I);
imshow(log(abs(J)),[]), colormap(jet(64)), colorbar;
figure(3);
J(abs(J)
figure12.m
load chess;
RGB=imread('autumn.tif');
figure(1);
imshow(RGB);
figure(2);
Y=dither(RGB,map);
imshow(Y,map);
figure6.m
RGB=imread('spine.tif');
figure('Position',...
[100 100 size(RGB,2) size(RGB,1)]);
image(RGB);
set(gca,'Position',[0 0 1 1])
figure15.m
RGB=imread('flowers.tif');
figure(1);
imshow(RGB);
figure(2);
Y=rgb2gray(RGB);
imshow(Y);
figure16.m
RGB=imread('flowers.tif');
figure(1);
imshow(RGB);
figure(2);
Y=rgb2ind(RGB,128);
imshow(Y);
2440lcd.h
#ifndef __2440LCD_H__
#define __2440LCD_H__
#define LCDFRAMEBUFFER 0x33000000 //_NONCACHE_STARTADDRESS
// 16bit 5-6-5
#define RGB(R,G,B) (((R)