-
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
-
tuxiangchuli
Visual C++ 数字图像处理 光盘源码(Visual C++ Digital image processing, CD-ROM source)
- 2009-01-12 20:23:19下载
- 积分:1
-
Three-dimensional-algorithm
关于MC三维重建算法的二义性消除的文章,很好的消除了MC算法中的二义性(it s the article about Three-dimensional reconstruction algorithm to eliminate ambiguity in MC)
- 2014-01-17 13:19:26下载
- 积分:1
-
mi_registration
2维的基于互信息的图像配准算法,使用powell法作为优化算法(2-dimensional mutual information based image registration algorithms, the use of law as the optimization algorithm powell)
- 2020-06-30 10:20:01下载
- 积分:1
-
ruihuafudiao
实现图像的锐化浮雕等效果。当然,这是我自己弄了很多次之后的。我也忘了它实现的是什么效果了,反正就是大概图片处理一类的。(To achieve the effect of image sharpening and other relief. Of course, I get many times. I also forget to realize what effect, anyway, is about image processing class.)
- 2012-08-01 04:43:14下载
- 积分:1
-
delaunay
VC和OpenGL实现的点云读取界面,需要的朋友可以下载参考(VC and OpenGL realize the point cloud to read interface, the need for a friend can download the reference)
- 2021-04-08 12:39:01下载
- 积分:1
-
TestCamWin32
能实现VFW编程,调用本地视频设备,实现视频捕捉和RGB-YUV颜色空间转换。
(To achieve VFW programming, call the local video equipment, the implementation of video capture and RGB-YUV color space conversion.)
- 2014-12-20 00:15:50下载
- 积分:1
-
CSF1
表面张力CSF模型,用于计算微重力条件下的两相流问题。(Comtinum Saface tension Force)
- 2010-09-21 17:34:26下载
- 积分:1
-
20061014182431864
分割视图 希望大家多多批评指正 多多交流(segmentation View I hope Members can interact more criticism correction)
- 2006-12-27 00:32:21下载
- 积分:1
-
Huffman
完成流程编码和huffman编码,适合做图像编码的熵编码,只要调整接口就好。(Complete the process encoding and huffman coding, image coding suitable for entropy coding, as long as the adjustment of the interface is like.)
- 2010-12-24 12:00:13下载
- 积分:1