登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

于 2011-12-02 发布 文件大小:1KB
0 279
下载积分: 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 个回复

  • 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
  • background-object-testVC
    可以进行背景减除法-三帧法-高斯背景建模法运动检测( This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. )
    2011-12-30 22:01:21下载
    积分:1
  • GNSS-PRocess
    本文介绍了一种 )’’ 多系统静态基线数据处理方法!该方法使用统一的方式来处理 &’ 5.)6’’ 北斗 及三者融合的观测数据#这种处理方法已经实现在广州南方测绘仪器有限公司的静态后处理软件中#本文使用实际数据验 证了这种处理方法!得到了较好的结果(This article describes a ) ' multi-system static baseline data processing method! This method uses a unified way to deal & ' ' 5.) 6' ' ' Compass and three observational data fusion# This treatment method It has been achieved in the static Guangzhou South mapping Instrument Co.# post-processing software used herein, the actual data validation of this approach! Get better results)
    2015-06-30 11:16:20下载
    积分:1
  • julia
    在visual c++中用分形完成的julia集,是分形的具体应用,对学分形的朋友应该有帮助(In the visual c++ Used to complete the julia fractal set, is the concrete application of the fractal, Friend of the credits should be shaped to help)
    2008-07-10 12:29:03下载
    积分:1
  • radon
    radon算法opencv实现,能够很好的实现图像的水平旋转矫正。( implementing the radon by opencv.)
    2021-04-21 16:58:50下载
    积分:1
  • RanSacCode
    该代码用于对错误匹配点进行过滤操作,即去除错误的匹配点(The code is used to remove the wrong match points,and make sure the right matching.)
    2014-12-31 11:17:07下载
    积分:1
  • DyBMPMovie
    实现“动态”的位图动画,VC++经典编程学习源码,很好的参考资料。(The realization of "dynamic" bitmap animation, VC++ classic learning programming source code, a good reference.)
    2013-11-25 12:37:28下载
    积分:1
  • LSB
    C++语言实现的LSB数字水印算法,Visual C++亲测可用。(C++ language LSB digital watermarking algorithm, the Visual C++ pro-measurement available.)
    2020-10-20 20:07:24下载
    积分:1
  • image_carrying_code
    利用位图图像中的冗余数据位,将小文件嵌入到大的图像文件中,并保持原图像不变。(The use of bitmap images in the redundant data bit will be embedded in small files to large image files, and to maintain the original image unchanged.)
    2009-03-03 03:22:30下载
    积分:1
  • Grid
    基于OpenCV实现的图像切割程序,通过程序中参数设置分块的数量和大小(The project is uesd to break an image into block)
    2013-12-01 22:31:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载