-
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
-
gxty
一种光学测试的算法,有助于全面分析激光大气传输特性及其对光电系统性能的影响,希望对大家有帮助哦(An optical testing algorithm, which helps to fully analyze the characteristics of laser propagation in the atmosphere and its impact on the performance of photovoltaic systems, we want to help oh)
- 2017-03-03 16:14:02下载
- 积分:1
-
chuhuaxihua1
粗化细化程序很好用的,大家试市啊,(crude refining procedures of the good, we take the city ah,!)
- 2006-11-11 20:52:48下载
- 积分:1
-
PNG(96)
96个蛮实用的PNG格式图标 仅供编程或图像处理使用。(96 pretty practical PNG format icon super practical!)
- 2012-10-11 09:15:23下载
- 积分:1
-
QuickCam
实现对图像的经验模态分解,得到经验模态分解后的第一层IMF分量,反映了图像的主要信息,去除冗余信息,为识别提供了基础。(Empirical mode decomposition of image, obtain the empirical mode decomposition of the first layer of IMF component, reflected the main information of the image, to remove redundant information, provide the basis for identification.
)
- 2014-01-20 14:16:39下载
- 积分:1
-
hahamirror2
完成图片的哈哈镜效果,如三角形,圆形,波浪形,弯曲等等(change the picture to any shape you want)
- 2012-04-18 14:55:47下载
- 积分:1
-
sift
sift匹配算法 尺度不变变换 特征描述子 特征点匹配 (sift match)
- 2020-12-10 10:49:21下载
- 积分:1
-
motiondetection
完整的程序,提供测试视频帧。根据视频帧中图像的形状进行运动估计(integrity of the procedures for testing video frames. According to Video Frame Image Motion Estimation shape)
- 2006-09-07 21:38:28下载
- 积分:1
-
Lee
Lee的经典的多分辨率B样条拟合方法(multi-level B-spline fitting)的VC源代码。广泛应用于图形图像处理,CAD等领域。(Lee s classic multi-resolution B-spline fitting method (multi-level B-spline fitting) of the VC source code. Widely used in graphic image processing, CAD and other fields.)
- 2007-11-07 16:11:02下载
- 积分:1
-
PC_grid
通过点云数据的格网化,建立格网分块索引,这是一种有效的点云数据存储方式。(
Through the point cloud data grid , the establishment of a grid block index, which is a valid point cloud data storage.
)
- 2014-02-20 10:55:46下载
- 积分:1