登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • 10165101220 于文梦
    说明:  解决一些图像处理的小问题,具体的划分和问题,文件里有提到(Solve some small problems in image processing)
    2018-12-30 20:33:10下载
    积分:1
  • Match
    匹配算法,可以完美运行,对于初学者有着很好的参考价值(Matching algorithm, can be a perfect run, has a very good reference for beginners)
    2013-12-13 23:14:37下载
    积分:1
  • cpp
    用halcon编写的代码实例,用来给初学者学习(Use halcon code examples, for beginners learning )
    2014-10-21 09:56:24下载
    积分:1
  • Region-Dense
    基于区域的稠密立体匹配方法(论文) 关键词:种子点;区域增长;稠密匹配(Based on Region Dense Three—dimensional Match Method)
    2012-03-16 11:24:09下载
    积分:1
  • MedFDTD
    计算电磁波辐射的FDTD程序源码,基于C++编写,支持MUR和PML边界条件,能计算SAR及天线辐射方向图(FDTD source code based on C++.Various absorbing boundary, include PEC, Mur, PML Calculate Specific Absorption Rate (SAR) Antenna radiation simulation, calculate radiation power.)
    2012-05-27 14:10:16下载
    积分:1
  • ImageProcessing
    说明:  用C语言实现图像的平滑,锐化及双线性内插算法的实现,效果很好(Using C language to achieve image smoothing, sharpening and bilinear interpolation algorithm to achieve good results)
    2008-11-25 19:10:19下载
    积分:1
  • GaborTexture
    使用MFC以及Gabor小波处理进行图像的特征纹理提取(Using MFC and Gabor wavelet to extract texture features for image)
    2011-10-07 08:46:32下载
    积分:1
  • PicViewerDemo
    说明:  很有用的图像显示的源程序,是图像处理方面比较好用的程序!(very useful images of the source, the image processing is more user-friendly procedures.)
    2005-11-29 21:19:38下载
    积分:1
  • MedianFilter_GPU
    该VC++程序是基于CUDA架构的中值滤波程序,GPU加速,并且使用了opencv函数库(The VC++ program is based on the CUDA architecture median filtering program, GPU acceleration, and use the opencv library)
    2014-10-27 18:29:32下载
    积分:1
  • c_code_2d_3d
    说明:  打包的二维三维图形图像处理源代码 稀有资源(packed 2D and 3D graphics processing source of scarce resources)
    2006-05-05 08:09:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载