代码搜索结果
找到约 5,749 项符合
RGB 的代码
volkanrenklendirme.m
I = imread('rice.tif');
figure, imshow(I), title('original image')
BW = im2bw(I, graythresh(I));
L = bwlabel(BW);
RGB = label2rgb(L);
RGB2 = label2rgb(L, 'spring', 'c', 'shuff
s031.m
%rgb图像转换为ntsc图像,真彩显示 s031
I31=imread('1.jpg');
I310=rgb2ntsc(I31);
I311=1-I310(:,:,1);
I312=1-I310(:,:,2);
I313=1-I310(:,:,3);
subplot(3,3,1),imshow(cat(3,I310(:,:,1),I310(:,:,2),I310(:,:,3)));
s029.m
% rgb图像转换为hsv图像,再真彩显示 s029
I29=imread('1.jpg');
I290=rgb2hsv(I29);
I291=1-I290(:,:,1);
subplot(3,3,1),imshow(cat(3,I290(:,:,1),I290(:,:,2),I290(:,:,3)));
subplot(3,3,2),imshow(cat(3,I290(:,:,1),
s030.m
%rgb图像转换为ycbct图像,真彩显示 s030
I30=imread('1.jpg');
I300=rgb2ycbcr(I30);
I301=1-I300(:,:,1);
I302=1-I300(:,:,2);
I303=1-I300(:,:,3);
subplot(3,3,1),imshow(cat(3,I300(:,:,1),I300(:,:,2),I300(:,:,3)
beijing.m
%%% 处理64X64的图像
clc
RGB=imread('奥林匹克1.jpg');
imshow(RGB)
RGB=imresize(RGB,[64 64]); %创建一幅64X64的输出图像
pixval
figure
imshow(RGB)
a=[];
b=[];
for x=1:64
for y=1:64
a=[a,RGB(x,
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])
hex2rgb.m
function [rgb,g,b]=hex2rgb(hex,hg,hb)
%HEXRGB Convert hex color to 0-1 range color.
% RGB=HEXRGB(HEX) where HEX is a three row two-column string matrix or a
% string cell or a string of length 6