登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • RLE
    RLE压缩算法,对.bmp格式文件进行操作。使用MFC编制界面,可读入位图,压缩后保存位图并显示。(RLE compression algorithm, bmp format file operation. Use the MFC preparation interface, readable into the bitmap compressed to save a bitmap display.)
    2021-03-25 22:49:13下载
    积分:1
  • Itxxhm
    图像细化注意,本程序的细化算法要应用于于含线条的黑白二值图像才可以看出细化效果。 (The thinning Note refinement algorithm of this program is to be applied to black and white binary image containing lines can be seen that the refinement effect.)
    2012-08-05 18:16:42下载
    积分:1
  • Laplasse
    拉普拉斯算法的实现,程序是用vc++编写的(Laplasse algorithm)
    2011-12-28 15:43:07下载
    积分:1
  • openvc2.4.10配置方法
    针对opencv的配制方法总结,适合初学者来配置开发环境(For the preparation of opencv summary, suitable for beginners to configure the development environment)
    2017-07-18 17:14:19下载
    积分:1
  • BMP1
    说明:  编程实现对bmp图像最大值,最小值,标准差,熵,各灰度值频率的计算(Programming to calculate the maximum value, minimum value, standard deviation, entropy and gray value frequency of BMP image)
    2020-05-02 17:30:16下载
    积分:1
  • Canny
    Canny边缘检测算法,已经试过,可以用。能较好的检测边缘。(Canny edge detection algorithm, has been tried, you can use. To better edge detection.)
    2010-09-28 14:42:46下载
    积分:1
  • calibration
    摄像头的标定,作为一般图像处理的第一步,显得尤为重要(Calibration of the camera, as a first step in the general image processing, it is particularly important)
    2013-03-17 20:25:05下载
    积分:1
  • Cpp1
    说明:  基于opencv的小面积区域的去除.可以去除面积小于指定面积的无兴趣区域.(Opencv-based small area of the region to remove. Can remove an area of less than the specified area is not interested in the region.)
    2008-12-04 11:17:17下载
    积分:1
  • 135475202135
    画图源程序-图像数据显示,可以对数据进行时间轴的曲线显示,也可以是空间轴的多维显示 (Paint source- the image data, the data can be curve shows the time axis, it can be multi-dimensional display space axis)
    2014-02-08 12:55:53下载
    积分:1
  • doublefunction
    * 说明: 该函数将对图象进行(成对函数匹配)操作。需要注意的是,此程序先要求对图像进行特征提取及形态学操作等,使其成为二值图像。(* Note: This function will be images (paired function matching) operation. Note that this procedure require image feature extraction and morphological operations, making it a binary image.)
    2008-04-13 21:56:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载