代码搜索结果

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

ntsc2rgb.m

function [r,g,b] = ntsc2rgb(y,i,q) %NTSC2RGB Convert NTSC values to RGB color space. % RGBMAP = NTSC2RGB(YIQMAP) converts the M-by-3 NTSC % (television) values in the colormap YIQMAP to RGB col

rgb2gray.m

function a = rgb2gray(r,g,b) %RGB2GRAY Convert RGB image or colormap to grayscale. % RGB2GRAY converts RGB images to grayscale by eliminating the % hue and saturation information while retainin

example3_3.m

RGB=imread('flowers.tif'); image(RGB)

k-means-ok.m

clc clear tic RGB= imread ('001.jpg'); %读入像 img=rgb2gray(RGB); y=rgb2gray(RGB); [m,n]=size(img); subplot(2,2,1),imshow(img);title(' 图一 原图像') subplot(2,2,2),imhist(img);title(' 图二 原图像的灰度直方图')

rgb2lab.m

function LAB = rgb2LAB(RGB) RGB = im2double(RGB); R = RGB(:,:,1); G = RGB(:,:,2); B = RGB(:,:,3); [H,W] = size(R); r = reshape(R,1,W*H); g = reshape(G,1,W*H); b = reshape(B,1,W*H); rgb=[r;g;b];

ch2_3_1.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('vert')

ch9_5_1.m

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

ch5_4_3.m

%%%% 使用均值滤波器对真彩图像的每一个颜色平面进行滤波例程: rgb=imread('peppers.png'); h=ones(5,5)/25; rgb2=imfilter(rgb,h); %B=IMFILTER(A,H)filtersthemultidimensionalarrayAwiththe %multidimensionalfilterH.Acanbelogicalo

ch4_2_1.m

RGB = imread('autumn.tif'); I = rgb2gray(RGB); J = dct2(I); imshow(log(abs(J)),[]), colormap(jet(64)), colorbar J(abs(J) < 10) = 0; K = idct2(J); figure,imshow(I) figure,imshow(K,[0 255])

yuv2rgb.c

/* * yuv2rgb.c, Software YUV to RGB converter * * Copyright (C) 1999, Aaron Holtzman * * Functions broken out from display_x11.c and several new modes * adde