代码搜索结果

找到约 5,749 项符合 RGB 的代码

secha.asv

%function xyz=rgb2xyz(rgb) rgb=imread('x1.bmp'); rgb=im2double(rgb); r=rgb(:,:,1); g=rgb(:,:,2); b=rgb(:,:,3); [M,N]=size(rgb); %rgbtxyz=[0.4124,0.3575,0.1804;0.2128,0.7152,0.0722;0.0193,0.1192

secha.m

%function xyz=rgb2xyz(rgb) rgb=imread('x1.bmp'); rgb=im2double(rgb); r=rgb(:,:,1); g=rgb(:,:,2); b=rgb(:,:,3); [M,N]=size(rgb); %rgbtxyz=[0.4124,0.3575,0.1804;0.2128,0.7152,0.0722;0.0193,0.1192

rgb2hsi.m

function hsi = rgb2hsi(rgb) %RGB2HSI Converts an RGB image to HSI. % HSI = RGB2HSI(RGB) converts an RGB image to HSI. The input image % is assumed to be of size M-by-N-by-3, where the third dim

hsi2rgb.m

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) =

colordistance.m

%COLORDISTANCE Return distance in RG colorspace % % cd = colordistance(rgb, rg) % % The color image is converted to (r,g) coordinates and the distance % of each pixel from the specificed coordinage rg

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

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

ch9_5_1.m

x = bwlabel(BW, 4); RGB = label2rgb(x, @jet, 'k'); imshow(RGB+1, 'notruesize')