代码搜索结果
找到约 8,819 项符合
RGB 的代码
ulabrgb.pas
unit uLabRgb;
interface
type
TVector3 = array[1..3] of Double;
function LabToRgb(Lab: TVector3): TVector3;
function RgbToLab(Rgb: TVector3): TVector3;
implementation
type
TMatrix
cpt2map.m
function cmap = cpt2map(cptfile,numcolors);
% CPT2MAP -- convert a cpt table to a matlab colormap.
%
% A cpt table is used in GMT. It contains entries which couple
% a data range to RGB values
yuv_vs_quant.txt
RGB -> YUV
introduces error just like a quantizer
(actually you could make it lossless with YUV_EXTRA == 4 ,
but thats add four nearly-random bits !)
so, compare on the beam1.128x3 te
views.cpp
#include "views.h"
#include "canvas.h"
#include "fft.h"
#include "recorder.h"
COLORREF MapColor (int s)
{
if ( s < 16 )
return RGB(0, 0, 128);
else if ( s < 32)
retu
gaussfilter.m
function y = GaussFilter(RGBimg)
%% HSV
% Mean = [0.08;0.56;0.75]; Variance = diag([0.03;0.1;0.1]);
% imgH=rgb2hsv(RGBimg/255);
% [N,M,t] = size(RGBimg);
% imgHShaped = reshape(imgH,N*M,[])';
%
cpt2map.m
function cmap = cpt2map(cptfile,numcolors);
% CPT2MAP -- convert a cpt table to a matlab colormap.
%
% A cpt table is used in GMT. It contains entries which couple
% a data range to RGB values
main.m
% % Test program for Quadtree Encoding and Decoding of RGB image
clc, close all, clear all
thvec=[0.5,0.5,0.5]; % threshold for red,green and blue (values b/w 0 and 1)
picname='rafting.png';
I =
convert.h
#ifndef _CONVERT_H
#define _CONVERT_H
class ColorSpaceConversions {
public:
ColorSpaceConversions();
void RGB24_to_YV12(unsigned char * in, unsigned char * out,int w, int h);
void YV1
代码18-13.txt
clc; % 清除命令窗口
I1=imread('peppers.png'); % 读入图像
I=rgb2gray(I1); % 图像灰度转换
imshow(I); % 显示原始图像
title('o
main.m
% % Test program for Quadtree Encoding and Decoding of RGB image
clc, close all, clear all
thvec=[0.5,0.5,0.5]; % threshold for red,green and blue (values b/w 0 and 1)
picname='rafting.png';
I =