代码搜索结果
找到约 5,749 项符合
RGB 的代码
ex406.m
%********************************************************
%程序:EX406.M
%功能:RGB真彩着色使用实例
%********************************************************
[x,y]=meshgrid(-1:0.2:1); %设置矩形网格
z=x.^2+sin(y*pi
关于图像预处理.txt
方法:
对于背景图像和当前采集图像
逐个像素计算RGB夹角,
超过角度门限就判定为有目标
看掌纹的论文
colortrans.h
#pragma once
class ColorTrans
{
public:
ColorTrans(void);
public:
~ColorTrans(void);
public:
//彩色转换为灰度图象,输出为8位灰度,输入为24位RGB
bool RGB2Gray8(unsigned char* rgb, unsigned char* gray, int wi
color me less_pre.cpp
#include
#include
#include
#include
using namespace std;
struct RGB
{
int red;
int green;
int blue;
};
int get_lowest_distance_index(int *distance,
color me less.cpp
#include
#include
#include
#include
using namespace std;
struct RGB
{
int red;
int green;
int blue;
};
#ifdef DEBUG
int compare_red(const void
paint.h
struct rgb
{
int red;
int green;
int blue;
};
struct hsi
{
double hue;
double saturation;
int intensity;
};
struct xy {
int x;
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])
showmask.m
function RGB=showmask(V,M,display_flag);
% showmask(V,M);
%
% M is a nonneg. mask
% Jianbo Shi, 1997
V=V-min(V(:));
V=V/max(V(:));
V=.25+0.75*V; %brighten things up a bit
M=M-min(M(:));
M=M/max(M(:)
program_01_03.m
%原始索引图像
load trees
%转换为灰度图像
I = ind2gray(X,map);
figure(1)
subplot(2,2,1);imshow(X,map);title('索引图像');
subplot(2,2,2);imshow(I);title('转换后的灰度图像');
%原始真彩图像
RGB = imread('peppers.png');
%转换为索引图