代码搜索结果

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

jiangdifen.m

%function [rgb1]=jiangdifen(m) rgb=imread('Fig6.48(d).jpg'); [r,c,d]=size(rgb); m=input('分辨率降低倍数(自然数):'); if(d==3) hr=r/m; hc=c/m; for i=1:hr for j=1:hc rgb1(i,j,

hslutils.pas

//------------------------------------------------------------------------------ // // HSL - RGB colour model conversions // // These four functions can be used to convert between the RGB and HSL

ex2501.m

%例25-1 RGB真彩真彩着色 %Ex25-1 RGB coloring clear close all [x,y]=meshgrid(-1:0.2:1); z=x.^2+cos(y*pi); [m,n]=size(z); c=rand(m,n,3); surf(x,y,z,c) title('RGB coloring of surf')

f11_1.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')

rgb2ind.m

function [a,map] = rgb2ind(r,g,b,cm,dith) %RGB2IND Convert RGB image to indexed image. % RGB2IND converts RGB images to indexed images using one of % four different methods: direct translation,

ycbcr2rgb.m

function rgb = ycbcr2rgb(in) %YCBCR2RGB Convert YCBCR values to RGB color space. % RGBMAP = YCBCR2RGB(YCBCRMAP) converts the YCBCR values in the % colormap YCBCRMAP to the RGB color space. If Y

isrgb.m

function y = isrgb(x) %ISRGB Return true for RGB image. % FLAG = ISRGB(A) returns 1 if A is an RGB truecolor image and % 0 otherwise. % % ISRGB uses these criteria to determine if A is an R

rgb2ycbcr.m

function out = rgb2ycbcr(in) %RGB2YCBCR Convert RGB values to YCBCR color space. % YCBCRMAP = RGB2YCBCR(RGBMAP) converts the RGB values in RGBMAP to % the YCBCR color space. YCBCRMAP is a M-by

rgb2ntsc.m

function [y,i,q] = rgb2ntsc(r,g,b) %RGB2NTSC Convert RGB values to NTSC colorspace. % YIQMAP = RGB2NTSC(RGBMAP) converts the M-by-3 RGB values in % RGBMAP to NTSC colorspace. YIQMAP is an M-by-

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. % %