-
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
-
winform 纹理效果显示图像 例子源码
winform 纹理效果显示图像 例子源码
- 2013-06-02下载
- 积分:1
-
IAcrossLine_Tn
过线检测:依据物体运运动轨迹,分析是否过线
(In lane detection: Based on the trajectories of objects transported to analyze whether the line)
- 2012-07-23 11:13:46下载
- 积分:1
-
kingnun_v42
有较好的参考价值,进行波形数据分析,实现六自由度运动学逆解算法。( There are good reference value, Waveform data analysis, Six degrees of freedom to achieve inverse kinematics algorithm.)
- 2016-11-15 14:02:24下载
- 积分:1
-
平台基于visual studio2015 bilateralFilter
平台基于visual studio2015,使用opencv函数实现双边滤波,进行图像处理(bilateral Filter based on opencv)
- 2020-06-20 05:00:01下载
- 积分:1
-
tplbp
一种新的改进的LBP特征提取方法,采用多块比较的方法(a new LBP feature extraction method)
- 2010-02-11 13:09:50下载
- 积分:1
-
quanjingtupinheyuchuli
一种有效的全景图拼合预处理算法.适用于图像的拼接。是论文!(An effective pre-processing algorithm together panorama. Splicing applied to images. Is a thesis!)
- 2008-04-15 16:42:03下载
- 积分:1
-
Tclaaheeh
自适应直方图均衡算法,因为是从从局部入手,所以图像增强效果显著。
(Adaptive histogram equalization algorithm, because from the start from the local image enhancement effect is remarkable.)
- 2012-07-23 13:22:08下载
- 积分:1
-
nighttime-dehazing-master
说明: 采用通道差的引导滤波进行大气光估计和明暗通道混合的夜间去雾(The guiding filter of channel difference is used for atmospheric light estimation and night defogging with mixed light and dark channels)
- 2021-03-22 18:23:29下载
- 积分:1
-
double-threshold-segmentation
sar图像处理中的双阈值分割算法的matlab实现代码(Double threshold segmentation algorithm of SAR image processing of matlab code
)
- 2020-12-03 14:39:24下载
- 积分:1