-
chenggongchengxu
rgb to HSV,很有用,调试成功,可以应用(rgb to HSV,#include "stdafx.h"
#include <iostream.h>
void main(float R, float G, float B, float& H, float& S, float&V)
{
// r,g,b values are from 0 to 1
// h = [0,360], s = [0,1], v = [0,1]
// if s == 0, then h =-1 (undefined)
float min, max, delta,tmp
tmp = R>G?G:R
min = tmp>B?B:tmp
tmp = R>G?R:G
max = tmp>B?tmp:B
V = max // v
delta = max- min
if( max != 0 )
S = delta/max // s
else
{
// r = g = b = 0 // s = 0, v is undefined
S = 0
H = 0
return
}
if (delta == 0){
H = 0
return
}
else if(R == max){
if (G >= B)
H = (G- B)/delta // between yellow & magenta
else
H = (G- B)/delta+ 6
}
else if( G == max )
H = 2+ ( B- R )/delta // between cyan & yellow
else if (B == ma)
- 2011-12-02 10:09:24下载
- 积分:1
-
gvf_snake algorithm
说明: GVF-SNAKE分割 解决了收敛速度慢、收敛不理想的问题(Image segmentation using GVF Snake)
- 2021-03-04 12:59:32下载
- 积分:1
-
22222matlab
一个修改后的PCA进行人脸识别的Matlab源码(A revised PCA for Face Recognition Matlab source code)
- 2008-04-23 17:05:58下载
- 积分:1
-
pinyulvbo
利用VC进行图像的频域滤波处理,内含源代码(VC image using the frequency domain filtering treatment, including source code)
- 2009-03-10 18:26:13下载
- 积分:1
-
libGMM
说明: matlab2016b编写的调用了库函数的混合高斯背景建模源代码。(The source code of Mixture Gauss Background Modeling which calls library function is written by MATLAB 2016b.)
- 2019-06-13 20:05:01下载
- 积分:1
-
声发射数据处理matlab
说明: 本程序为傅里叶变换,给定初始时域波形,可得到对应频域波形。可出图(The program is Fourier transform. Given the initial time-domain waveform, the corresponding frequency-domain waveform can be obtained. Drawing out)
- 2020-08-23 14:38:16下载
- 积分:1
-
contourlet
纯contourlet变换,已对工具包进行了修改,使之在分解重构时能显示子带系数。(Pure contourlet transformation toolkit has been modified so that when displayed in the decomposition and reconstruction sub-band coefficients.)
- 2009-10-23 17:34:02下载
- 积分:1
-
imnoise2
使用规定分布生成空间随机噪声,可以选择噪声类型和参数。(Using the prescribed distribution to generate spatial random noise, we can choose noise types and parameters.)
- 2018-04-16 10:13:34下载
- 积分:1
-
Goldstein_Filter_for_InSAR
说明: Goldstein滤波方法matlab的实现,可用与ESPI电子散班,Insar条纹图,指纹图滤波使用!(Goldstein realization matlab filtering method can be used with the ESPI electronic dispersion classes, Insar fringe pattern, the use of fingerprint filtering!)
- 2021-02-28 22:59:35下载
- 积分:1
-
数字图像处理_第三版_英_答案
说明: 《数字图像处理(第三版)》课后习题答案,作者冈萨雷斯(Answers to Exercises after Class of Digital Image Processing (Third Edition),author Gonzalez)
- 2019-06-10 10:54:09下载
- 积分:1