登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • jm5.0c
    视频编解码技术,在有限带宽的情况下,能够大幅度的压缩编码比特数,图像的质量没有丝毫的下降。(Video codec technology, in the case of limited bandwidth can be substantial coding bits, the image quality is not the slightest decline.)
    2010-08-23 13:34:24下载
    积分:1
  • SLIC_mex
    SLIC超像素分割matlab版本,主要算法为C++与matlab算法联动(SLIC super pixel segmentation matlab version, the main algorithm is C++ and matlab algorithm linkage)
    2018-10-09 14:51:36下载
    积分:1
  • shade1
    检测视频中的运动目标以及阴影,并消除阴影,基于opencv,将RGB颜色空间根据一定的转换关系转换到HSV空间,最后消除阴影, 可以在vc6.0和vs2008上正常运行(Shadow detection algorithm based on HSV color space)
    2012-08-20 21:22:09下载
    积分:1
  • FingerPrintDlg
    指纹图像处理包括梯度处理、方向场处理、平滑处理、智能增强处理等(The fingerprint image processing including gradient processing, direction field processing, smooth processing and intelligent enhancement processing, etc)
    2011-04-30 19:28:34下载
    积分:1
  • image
    可以打开各种图像格式,并显示,很好很强大(Can open a variety of image formats)
    2012-05-18 22:18:42下载
    积分:1
  • Image-texture-analysis
    对图像进行纹理处理,为图像识别、目标跟踪创造条件。主要分析:惯性矩、熵以及局部平衡性。(The image texture processing for image recognition, target tracking and create conditions. Main analysis: moment of inertia, entropy, and local balance.)
    2011-05-18 09:14:03下载
    积分:1
  • MatlabSIFT
    MATLAB 计算医学图像的配准,融合 基于SIFT方法的配准()
    2007-08-03 21:49:20下载
    积分:1
  • IFC读写代码
    说明:  IFC文件格式读取和写出源码,目前该源码是1.0版本(IFC file format reads and writes the source code, which is currently version 1.0)
    2020-09-16 14:17:55下载
    积分:1
  • DecodeString
    根据指定字符分割字符串,VC++精选编程源码,很好的参考。(According to the specified character segmentation character string, VC++ select programming source code, a good reference.)
    2013-12-03 10:56:22下载
    积分:1
  • seisplot
    SEISPLOT 可以弥补FIMAGE软件带来的不足,即可以实时地显示更多剖面。而且还可以进行其它格式的转换。(seisplot is a software for seismic profile viewing.)
    2010-06-06 17:30:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载