代码搜索结果
找到约 5,749 项符合
RGB 的代码
vc颜色值、vb颜色值怎样转换.txt
Windows采 用 的 颜 色 方 案 为 <mark>RGB</mark>( 红 绿 蓝 ) , 使 用 一 个 长 整 数 表 示 颜 色 ( 通 常 称 为 COLORREF类 型 ) 。 在 VC++中 使 用 <mark>RGB</mark>宏 , 在 VB中 使 用 <mark>RGB</mark>函 数 可 以 将 一 个 颜 色 的 3个 分 量 转 换 为 一 个 长 整 型 的 数 。 之 所 以 使 用 <mark>RGB</mark>宏 或 <mark>RGB</mark>函 数 , 只 是 为 了 ...
yuvrgb16.c
////////////////////////////////////////////////////////
// YUV to RGB Decoder.
// Display on different mode use different ways.
// Southern.Liang
// 1996.5.25
///////////////////
seismic.m
function rgb = seismic(n);
% seismic(n) creates a colormap, ranging from dark blue via white to dark
%red.
%
% Nico Sneeuw
% Munich, 31/08/94
if nargin == 0, n = size(get(gcf,'colormap'),1);
rgb2hsi.m
function hsi = rgb2hsi(rgb)
%RGB2HSI Converts an RGB image to HSI.
% HSI = RGB2HSI(RGB) converts an RGB image to HSI. The input image
% is assumed to be of size M-by-N-by-3, where the third dim
hsi2rgb.m
function rgb = hsi2rgb(hsi)
%HSI2RGB Converts an HSI image to RGB.
% RGB = HSI2RGB(HSI) converts an HSI image to RGB, where HSI is
% assumed to be of class double with:
% hsi(:, :, 1) =
imageutil.java
package imageapp;
import javax.swing.*;
import java.awt.*;
import java.awt.image.*;
public class ImageUtil {
public static int[] decodeColor(int color, int rgb[]) {
if(rgb == null) rgb =
rgb2graykpm.m
function g = rgb2grayKPM(rgb)
% function g = rgb2grayKPM(rgb)
% rgb2grayKPM Like the built-in function, but if r is already gray, does not cause an error
[nr nc ncolors] = size(rgb);
if ncolors
13-12.m
RGB = imread('flowers.tif');
subplot(221),imshow(RGB)
title('原始真彩色图像')
subplot(222),imshow(RGB(:,:,1))
title('真彩色图像红色分量')
subplot(223),imshow(RGB(:,:,2))
title('真彩色图像绿色分量')
subplot(224),imshow(
8-5.m
[X,map]=imread('canoe.tif');
Image_Type_YN1=isind(X);
%索引图像的读取与判断
I = imread('moon.tif');
Image_Type_YN2=isgray(I);
%灰度图像的读取与判断
RGB=imread('flowers.tif');
Image_Type_YN3=isrgb(RGB);
%真彩色图像的读
8-3.m
RGB=imread('flowers.tif');
image(RGB);
%显示RGB图像
pause;
imshow(RGB);
%显示RGB图像