代码搜索结果
找到约 5,749 项符合
RGB 的代码
seismic.m
function rgb = seismic(n);
% seismic(n) creates a colormap, ranging from dark blue via white to dark
%red.
%
% Nico Sneeuw
% Munich, 31/08/94
if nargin == 0, n = size(get(gcf,'colormap'),1);
sumarize11_5_2a.m
%调入与显示RGB图像
RGB = imread('peppers.png');
isrgb(RGB);
figure(1);
imshow(RGB);
%RGB图转换为灰度图像
I = rgb2gray(RGB);
figure(2);
imshow(I);
colorbar('horiz');
isgray(I);
%边缘检测
ED = edge(I,'sobel',0
sumarize11_5_4b.m
%载入图像
RGB = imread('saturn.png');
%RGB转换为灰度图
I = rgb2gray(RGB);
%加入高斯白噪声
J = imnoise(I,'gaussian',0,0.005);
%采用自适应滤波
K = wiener2(J,[5 5]);
%显示原始图像、加入噪声的图像以及滤波后的噪声
imshow(I)
figure,imshow(J)
sumarize11_2_2cl.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
sumarize11_6_3.m
%载入图像
load trees
%RGB转换为灰度图
I = ind2gray(X,map);
imshow(I)
%指定特定区域,并进行填充
I2 = roifill;
imshow(I2)
sumarize11_4_2ars.m
%载入图像
RGB = imread('autumn.tif');
figure(1);
imshow(RGB);
%将真彩图转换为灰度图
I = rgb2gray(RGB);
figure(2);
imshow(I);
%进行余弦变换
J = dct2(I);
figure(3);
imshow(log(abs(J)),[]);
colormap(jet(64));
c
basic.css
BODY {
background-color: rgb(255,255,255);
font-size : 10pt;
color : rgb(0,0,102);
}
P {
font-family : "Verdana", sans-serif;
font-size : 10pt;
color : rgb(0,0,102);
}
e671. getting and setting pixels in a buffered image.txt
// Get a pixel
int rgb = bufferedImage.getRGB(x, y);
// Get all the pixels
int w = bufferedImage.getWidth(null);
int h = bufferedImage.getHeight(null);
int[] rgbs = new
e665. filtering the rgb values in an image.txt
This example demonstrates how to create a filter that can modify any of the RGB pixel values in an image.
// This filter removes all but the red values in an image
class GetRedFilter extend
9-12.m
RGB = imread('flowers.tif');
NTSC = rgb2ntsc(RGB);
subplot(121)
imshow(RGB)
title('原RGB图像')
subplot(122)
imshow(NTSC(:,:,1))
title('变换后的NTSC图像')