代码搜索结果
找到约 8,819 项符合
RGB 的代码
test.h
// 编码表RGB数组
const BYTE C[4][256][4] =
{
{ // 彩虹编码 1
{ 0, 0, 0,0 }, { 7, 0, 0,0 }, { 15, 0, 0,0 }, { 23, 0, 0,0 }, //4
{ 31, 0, 0,0 }, { 39, 0, 0,0 }, { 47, 0, 0,0 }, {
test.h
// 编码表RGB数组
const BYTE C[4][256][4] =
{
{ // 彩虹编码 1
{ 0, 0, 0,0 }, { 7, 0, 0,0 }, { 15, 0, 0,0 }, { 23, 0, 0,0 }, //4
{ 31, 0, 0,0 }, { 39, 0, 0,0 }, { 47, 0, 0,0 }, {
p0903.m
I=imread('z12.JPG');
[y,x,z]=size(I);
myI=double(I);
tic
%%%%%%%%%%% RGB to HSI %%%%%%%%
H=zeros(y,x);
S=H;
HS_I=H;
for i=1:x
for j=1:y
HS_I(j,i)=((myI(j,i,1)+myI(j,i,2)+myI(j,i
p0903.m
I=imread('z12.JPG');
[y,x,z]=size(I);
myI=double(I);
tic
%%%%%%%%%%% RGB to HSI %%%%%%%%
H=zeros(y,x);
S=H;
HS_I=H;
for i=1:x
for j=1:y
HS_I(j,i)=((myI(j,i,1)+myI(j,i,2)+myI(j,i
p0703.m
I=imread('cancer.bmp');
[y,x,z]=size(I);
myI=double(I); % 图象的数据类型为无符号整型,必须转换为双精度实型才能计算
%%%%%%%%%%% RGB to HSI %%%%%%%%
H=zeros(y,x);
S=H;
HS_I=H;
for i=1:x
for j=1:y
test.h
// 编码表RGB数组
const BYTE C[4][256][4] =
{
{ // 彩虹编码 1
{ 0, 0, 0,0 }, { 7, 0, 0,0 }, { 15, 0, 0,0 }, { 23, 0, 0,0 }, //4
{ 31, 0, 0,0 }, { 39, 0, 0,0 }, { 47, 0, 0,0 }, {
main.c
/*
* TCS3200模块
*
* 用途:TCS3200颜色测试,读取RGB值,LCD1602显示R,G,B值
*
* 作者 日期 备注
* Huafeng Lin 2010/12/10 新增
* Huafeng Lin 2010/12/11 修改
*
*/
//接线说明:
//模块S2-----单片机P1.1
/
ov7670_init.c
/*
* OV7660 CMOS Camera Sensor Initialization
*/
#include "camera.h"
static void init_rgb565_qvga_25fps_new(void)
{
sensor_write_reg(0x12, 0x80);
udelay(20000);
sensor_write_reg(0x11, 0x80);
se
color.c
#include "vnc.h"
#include "vncv.h"
enum {
RGB12 = CHAN4(CIgnore, 4, CRed, 4, CGreen, 4, CBlue, 4),
BGR12 = CHAN4(CIgnore, 4, CBlue, 4, CGreen, 4, CRed, 4),
BGR8 = CHAN3(CBlue, 2, CGreen, 3, CRed,
color.mal
function testcolor();
c:= color.rgb(100,101,102);
io.print(c);
V38 := color.red(c);
io.print(V38);
V41 := color.green(c);
io.print(V41);
V44 := color.blue(c);
io