代码搜索结果
找到约 5,749 项符合
RGB 的代码
example5_3.m
%顶点坐标为(40 , 50) , (40 , 250),(240,50)和(240,250)。
RGB=imread('flowers.tif');
imshow(RGB);
RGB2=imcrop(RGB,[40,50,200,200]);
figure,imshow(RGB2);
webfxlayout.css
/*
bright: rgb(234,242,255);
normal: rgb(120,172,255);
dark: rgb(0,66,174);
*/
/* import menu css */
@import "dhtml/xmenu/xmenu.css";
#webfx-about {
position: absolute;
backgroun
image.h
// image.h -- Thatcher Ulrich 2002
// This source code has been donated to the Public Domain. Do
// whatever you want with it.
// Handy image utilities for RGB surfaces.
#ifndef I
改变ie滚动条的样式
BODY {
SCROLLBAR-FACE-COLOR: rgb(255,204,0);
SCROLLBAR-3DLIGHT-COLOR: rgb(255,207,116);
SCROLLBAR-DARKSHADOW-COLOR: rgb(255,227,163);
SCROLLBAR-BAS
9-12.m
RGB = imread('flowers.tif');
NTSC = rgb2ntsc(RGB);
subplot(121)
imshow(RGB)
title('原RGB图像')
subplot(122)
imshow(NTSC(:,:,1))
title('变换后的NTSC图像')
9-11.m
RGB = imread('flowers.tif');
HSV = rgb2hsv(RGB);
subplot(121)
imshow(RGB)
title('原RGB图像')
subplot(122)
imshow(HSV)
title('变换后的HSV图像')
%由于色图独立开来,因而没有色图间的影响
9-8.m
[x,y,z] = cylinder;
%创建一个柱形面
RGB = imread('flowers.tif');
%读入真彩色图像
warp(x,y,z,RGB);
9-10.m
RGB=reshape(ones(64,1)*reshape(jet(64),1,192),[64,64,3]);
%对数组进行整形变换,数组为 64×64×3
HSV=rgb2hsv(RGB);
%RGB色彩模型转换成HSV色彩模型,函数在下面的“颜色模型转换”中具体讲解
H=HSV(:,:,1);
S=HSV(:,:,2);
V=HSV(:,:,3);
%分别提取对应的色调、饱和
9-13.m
RGB = imread('flowers.tif');
YCBCR = rgb2ycbcr(RGB);
subplot(121)
imshow(RGB)
title('原RGB图像')
subplot(122)
imshow(YCBCR)
title('变换后的NTSC图像')
10-6.m
%对autumn.tif文件计算二维DCT变换
RGB = imread('autumn.tif');
I = rgb2gray(RGB);
%真彩色图像转换成灰度图像
J = dct2(I);
%计算二维DCT变换
imshow(log(abs(J)),[])
%图像大部分能量集中在上左角处
colormap(jet(64)), colorbar
figure;
J(abs(