登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • Quadtree
    完成对视频帧的四叉树分割,在纹理复杂处分割块较小,在纹理平坦处分割较大(Complete quadtree segmentation of video frames, complex area in texture segmentation smaller, flat larger regional segmentation block in texture)
    2021-01-28 16:58:34下载
    积分:1
  • GDAL
    GDAL影像显示 建立金字塔通过i移动图像 进行图像的放大缩小 多波段显示影像金子塔显示 (GDAL image creates pyramid)
    2012-12-21 23:29:55下载
    积分:1
  • Kmeans
    说明:  基于Kmeans算法的图像分割,一般Kmeans是数据挖掘中用来聚类的,本试验利用图像中的灰度值作为Kmeans算法的原始点,进行图像分割(Kmeans algorithm based on image segmentation, data mining in general Kmeans is used to clustering, the trial use of the image gray value as the original algorithm Kmeans spots for Image Segmentation)
    2021-04-06 16:49:03下载
    积分:1
  • 1111222223333334444445533332345554
    VC计算机图形学原理及算法教程 VC计算机图形学入门教程(VC theory and algorithms of computer graphics computer graphics tutorial Tutorial VC)
    2013-11-18 15:30:26下载
    积分:1
  • Labeling
    对于二值图像进行labeling,求的对象个数,每个对象的像素数,中心点,长宽高矮值等(labeling for bianry image)
    2011-05-09 13:54:15下载
    积分:1
  • ji
    说明:  基于图像变换的火炮身管膛线参数检测技术研究(Based on image transform the Gun Barrel rifling parameter detection technology)
    2013-03-07 09:16:32下载
    积分:1
  • band-selection
    基于图像对比度和波段相关性的波段选择算法,适用于高光谱图像的特征选择(Bands selection algorithm based on image contrast and correlation of bands for hyperspectral image feature selection)
    2020-10-09 11:47:34下载
    积分:1
  • HALCON_CIRCLE
    一个简单的HALCON计算圆心坐标的例子,C++代码格式,初学者适用!(A simple example of calculating coordinates HALCON, c++ code format, for beginners!)
    2021-03-23 10:19:15下载
    积分:1
  • gray
    读取图像,将RGB图像转化为灰度图像,显示并保存(The RGB image is transformed into gray image)
    2017-07-12 14:53:14下载
    积分:1
  • 1235
    主要是用于雷达目标跟踪中的数据融合,有很好的作用(It is mainly used for data fusion in radar target tracking.)
    2021-04-27 03:58:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载