代码搜索结果
找到约 8,819 项符合
RGB 的代码
texttool.h
#ifndef __TEXTTOOL
#define __TEXTTOOL
#define TEXT_BOTTOM_RIGHT 0
#define TEXT_BOTTOM_CENTER 1
#define TEXT_CENTER 2
#define TEXT_USER 3
#define TC_BLACK RGB(0,0,0)
#define TC_BLUE RGB(0,0,
rgbtohsi.m
%Question No:10
%Write a MATLAB function which converts an RGB to HSI. Display the Hue
%image, Saturation image and the Intensity image. Histogram equalize the H,
%S and I images and the HSI imag
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
colortrans.cpp
#include "stdafx.h"
#include "ColorTrans.h"
ColorTrans::ColorTrans(void)
{
}
ColorTrans::~ColorTrans(void)
{
}
//8bit ->> 24bit
unsigned char* ColorTrans::gray2RGB2(unsigned cha
about.cpp
//////////////////////////////////////////////////////////////////////////////
//类名:About
//功能:"关于"对话框
//作者:徐景周(jingzhou_xu@163.net)
//组织:未来工作室(Future Studio)
//日期:2002.12.10
///////////////////
xptextbox.bas
Attribute VB_Name = "xptextbox"
Public Enum states
Normal = 0
Disable = 1
ReadOnly = 2
End Enum
Public Function xptxt(txt As TextBox, pic As PictureBox, BackColor As ColorConstants
f11_1.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')
imageutil.cpp
#include "stdafx.h"
#include "ImageUtil.h"
#include "IEImageLib.h"
#include
void ImageDiffusionFloat(IEFloatImage* pImage, float lambda, float k, int iteration)
{
int i, x, y;
i
imageutil.h
#include "IEDib.h"
#include "IEFloatImage.h"
void ImageDiffusionFloat(IEFloatImage* pImage, float lambda, float k, int iteration);
void RGBToLUV(unsigned char *RGB,float *LUV,int size);
void
imageutil.cpp
#include "stdafx.h"
#include "ImageUtil.h"
#include "IEImageLib.h"
#include
void ImageDiffusionFloat(IEFloatImage* pImage, float lambda, float k, int iteration)
{
int i, x, y;
i