登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • LossCompression
    C语言编程,利用矢量量化思想进行图像有损压缩和解压缩(C language programming, using vector quantization thoughts lossy image compression and decompression)
    2016-05-24 21:50:39下载
    积分:1
  • TestLMDll
    用hough变换提取直线的C++代码,效果比较好,可以灵活改变可提取直线的条数,适用于提取多条直线。(line detecting using hough tranaformation)
    2012-03-06 16:39:40下载
    积分:1
  • dashline
    一个简单的虚线类,绘制各种虚线的C++类库,请看效果截图,可绘制出各种彩色的虚线效果。画横向或竖向虚线,以及对角线的虚线框效果,都是可以的,带有一个演示程序。(A simple dashed class, draw various dashed C++ library, see the effects shots, you can draw a variety of color dotted effect. Draw horizontal or vertical dashed line, as well as the effect of diagonal dashed box, are possible with a demo program.)
    2021-05-14 14:30:02下载
    积分:1
  • Fngprnt
    采用最大方差阈值分割法,对指纹进行提取。(Using the maximum variance threshold segmentation method for fingerprint extraction.)
    2013-11-24 20:39:58下载
    积分:1
  • weighted-spatial-
    多径条件下基于加权空间平滑的阵元幅相误差校正(Multipath based on weighted spatial smoothing array element amplitude and phase error correction)
    2013-12-12 13:20:38下载
    积分:1
  • CUDA_image-denoising
    用CUDA并行处理方法改写的图像降噪算法,包括KNN,NLM,以及改进的NLM方法。配置环境适合VS2010+CUDA5.0,对使用CUDA的同学来说是很好的教材。(Image denoising algorithms including KNN,NLM and refined NLM run on CUDA, useful demo for who learns CUDA based parallel programming.)
    2014-09-15 20:55:52下载
    积分:1
  • zoom
    C语言实现bmp图像放大缩小,24位bmp图像(The C language bmp image zoom, 24 bmp image)
    2012-10-13 20:06:16下载
    积分:1
  • 3dwatershed
    用分水岭算法对三维模型进行分割处理。可以实现对三维模型的有意义分割。(Using three-dimensional model of the watershed algorithm to be dealt with separately. Three-dimensional model can achieve meaningful partition.)
    2009-01-13 20:29:26下载
    积分:1
  • HoleFilling
    利用opencv库写的一个关于图像孔洞填补的小程序,附加了效果图片(Using the opencv library to write a small program on the filling of the hole, the additional effect of the picture)
    2020-11-27 09:39:30下载
    积分:1
  • SIFTVC6
    sift角点检测及匹配,在不同尺度空间下的角点检测方法,很方便实用。(sift corner detection and matching, the corner detection methods under different scales of space, it is convenient and practical.)
    2013-12-08 17:25:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载