登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

于 2011-12-02 发布 文件大小:1KB
0 300
下载积分: 1 下载次数: 7

代码说明:

  rgb to HSV,很有用,调试成功,可以应用(rgb to HSV,#include "stdafx.h" #include 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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Match
    匹配算法,可以完美运行,对于初学者有着很好的参考价值(Matching algorithm, can be a perfect run, has a very good reference for beginners)
    2013-12-13 23:14:37下载
    积分:1
  • DRR_registration
    通过将三维图像投影成2维ddr图像来实现2D-3D图像配准(By three-dimensional image projection into 2-D images ddr to achieve 2D-3D Image Registration)
    2008-01-17 18:34:03下载
    积分:1
  • MARPH
    对图像变形的一些基本算法的介绍和功能的描述等 (about marphing )
    2010-11-17 18:21:25下载
    积分:1
  • yuzhibianhua
    图像处理基本算法其中之一的yuzhibianhua (Image processing one of the basic algorithm yuzhibianhua)
    2008-06-04 17:13:13下载
    积分:1
  • Morph
    数字图像处理中的基本形态学处理,如腐蚀、膨胀、开操作、闭操作等实现的源代码。可以自定义结构元素的形状。(Digital image processing in the basic morphology processing, such as corrosion, swelling, open operation and close operation to achieve the source code. You can customize the shape of structural elements.)
    2009-01-06 09:38:40下载
    积分:1
  • Smooth
    对图像进行平滑处理,像各种滤波的方法,如均值滤波法、中值滤波法(Smoothing the image, like the various filtering methods, such as mean filtering, median filtering method)
    2010-07-16 13:17:31下载
    积分:1
  • daima
    对矩形件的排样过程进行编码实现,通过visual c++(layout problem)
    2015-01-15 01:06:00下载
    积分:1
  • future_net.tar
    2016华为软件精英挑战赛,采用迪杰斯特拉算法,效率高,但需要自行修改(HUAWEI software challenge 2016)
    2016-04-12 14:00:55下载
    积分:1
  • BicubicHermiteCode
    使用Visual C++编写的生成三次Hermite曲线的源代码。(Bicubic Hermite code in Visual C++.)
    2011-01-07 18:01:47下载
    积分:1
  • mom
    经典矩量法点匹配程序,重推导,注释说明详细(Classical point matching moment method procedure)
    2011-05-12 23:00:16下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载