代码搜索结果
找到约 8,819 项符合
RGB 的代码
bitmap.c
//======================================================
// 文件名称: BitMap.c
// 功能描述: 位图处理
// 维护记录: 2007-02-09 v1.0 by lijian
// 注意事项: 该程序中涉及到的数据类型需要根据平台确定
// 其中,COLOR类型为无符号16bit数据类型
// RGB()是一个宏主
untitled7.m
clear ;
close all;
web -browser http://www.ilovematlab.cn/thread-23229-1-1.html
%Step1 获取图像 装入待处理彩色图像并显示原始图像
Scolor = imread('3.jpg');%imread函数读取图像文件
%将彩色图像转换为黑白并显示
Sgray = rgb2gray(Scolor);%r
代码8-5.txt
% 取得一个图像采集装置的使用权。
vidobj = videoinput('winvideo', 1, 'RGB24_320X240');
% 使用预览窗口,适当定位摄像头。.
preview(vidobj)
pause(1)
%采集没有运动的背景图像。
background = getsnapshot(vidobj);
%将图像background的数据类型由uint8 转换
xcol8.ini
! 128 RGB values for color-scheme: 4nec2 old scheme
0 0 255
0 6 255
0 13 255
0 19 255
0 25 255
0 31 255
0 38 255
0 44 255
0 50 255
0 56 255
0 62 255
0 69 252
0 75 248
0 81 244
0 87 240
xcol1.ini
! 128 RGB values for color-scheme: Gnuplot default
0 0 0
23 0 13
32 0 25
39 0 38
45 0 50
51 0 62
55 0 75
60 0 87
64 0 98
68 0 110
72 0 121
75 0 132
78 0 143
82 0 153
85 0 163
88 0 172
xcol2.ini
! 128 RGB values for color-scheme: Red-Green-Violet
0 128 0
2 125 0
4 123 0
6 121 0
8 119 0
10 117 0
12 115 0
14 113 0
16 111 0
18 109 0
20 107 0
22 105 0
24 103 0
26 101 0
28 99 0
30
bitmap.c
//======================================================
// 文件名称: BitMap.c
// 功能描述: 位图处理
// 维护记录: 2007-02-09 v1.0 by lijian
// 注意事项: 该程序中涉及到的数据类型需要根据平台确定
// 其中,COLOR类型为无符号16bit数据类型
// RGB()是一个宏主
manual_common_problems.html
MySQL中文参考手册- 19 用MySQL解决一些常见问题
nn1f.m
function s=nn1f(in)
% 将32*32的样本图像变为1024*1的灰度向量
a=imread(in);
b=rgb2gray(a);
b=double(b);
[length,width]=size(b);
b1=mat2gray(b); % 0为黑 1为白 Convert matrix to intensity image.
s=reshape(b1
hw3main.m
clear all;
close all;
img=imread('hw3p3_im.jpg');
i=rgb2gray(img);
i=double(i);
c=kmeansimage(i,1);
c=sort(c);
newimg1=i;
newimg1(find(ic(1)))=255;
imwrite(newimg1,'c1.jpg'