登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • EDLines 快速直线检测算子
    EDLines是一种快速直线检测算子,2012年在ICCV上提出,也是目前处理直线检测最快的算法之一,该算法包含三个步骤:(1)边缘提取:利用Edge Drawing (ED)算法[28,29]从灰度图像中提取边缘片段;(2)线段检测:利用最小二乘法提取直线段;(3)线段确认:遵循Helmholtz定律,从已提取的直线段中摒弃虚假线段。EDLines算法的优越性得益于Edge Drawing (ED)算法能够从灰度图像中准确、快速、稳定地提取出光滑、完整的边缘片段。Edge Drawing (ED)算法包含以下步骤: (1)采用size=5*5,σ=1的高斯核对灰度图像进行平滑滤波,去除噪声; (2)采用一种常用的梯度算子,如Prewitt、Sobel或Scharr等计算平滑后图像中每个像素点的梯度幅度和梯度方向; (3)将梯度图中邻域内幅度最大的像素点标记为锚点,这些锚点成为图像边缘点(edge elements)的概率很大; (4)将相邻的锚点连接成边缘线。从一个锚点起始,ED利用相邻像素的梯度幅度和方向在梯度为最大值的锚点之间游走。 (Edge Drawing (ED) is our recently-proposed, novel, fast edge detection algorithm. What makes ED stand out the existing edge detectors, e.g., Canny, is the following: While the other edge detectors give out a binary edge image as output, where the etected edge pixels are usually independent, discontinuous entities ED produces a set of edge segments, which are clean, contiguous, i.e., connected, chains of edge pixels. Thus, while the output of the other edge detectors requires urther processing to generate potential object boundaries, which may not even be possible or result in inaccuracies ED not only produces perfectly connected object boundaries by default, but it also achieves this in blazing speed compared to other edge detector.)
    2021-03-22 16:29:16下载
    积分:1
  • IPLib
    基于VC++的RGB-IHS 变换实现过程和主成分分析 PCA 实现过程 .(The implementation process based on VC++ RGB-the IHS transform and principal component analysis PCA implementation process.)
    2021-01-07 22:58:53下载
    积分:1
  • 20100808
    经典的文本水印算法,实现了别人实现不了的功能,希望大家有所用!(The classic text watermarking algorithm to achieve the functions of others fail to realize, I hope you all have a use!)
    2021-03-19 16:49:19下载
    积分:1
  • houseDetect
    小型图像处理平台,包括滤波,边缘提取,边缘优化以及图像匹配功能(Small image processing platform, including filtering, edge detection, edge optimization and image matching function)
    2009-05-13 21:05:30下载
    积分:1
  • MeanShiftSegMent
    根据D. Comaniciu, P. Meer: Mean Shift: A robust approach toward feature space analysis 以及 C. Christoudias, B. Georgescu, P. Meer: Synergism in low level vision.这两篇文献提供的方法编写的图像分割代码,作者是 Chris M. Christoudias, Bogdan Georgescu,代码经我看了后加了丰富的中文注释,希望可以给各位带来阅读上的方便。 基于meanshift的聚类分割方法包括滤波、区域融合等操作,通过调整sigma和sigmar来调整分割效果。(According to D. Comaniciu, P. Meer: Mean Shift: A robust approach toward feature space analysis, and C. Christoudias, B. Georgescu, P. Meer: Synergism in low level vision. These two documents prepared by the methods provided by image segmentation code , the author is Chris M. Christoudias, Bogdan Georgescu, after I read the code, add a rich Chinese notes, hoping to bring you the convenience of reading. Segmentation method based on clustering meanshift including filtering, regional integration and other operations, and by adjusting the sigma sigmar to adjust segmentation results.)
    2013-07-30 19:01:52下载
    积分:1
  • SPA
    连续投影算法的Matlab程序 下载后可以直接使用(Successive projections algorithm )
    2020-12-07 09:59:21下载
    积分:1
  • binary-image-processing
    二值图像处理运算是从数学形态学下的集合论方法发展起来的,尽管它的基本运算很简单,但是却可以产生复杂的效果。常用的二值图像处理操作有许多方法,如腐蚀、膨胀、细化、开运算和闭运算等等。本文对这些内容作些研究探讨, 希望对爱好图像处理的朋友有所帮助。(Binary image processing algorithms are developed set theory in mathematical morphology. Although its basic operation is simple, it can produce complex effects. Commonly used binary image processing operations there are many ways, such as corrosion, expansion, refinement, open operation and closed operation and so on. In this paper, some of these studies to explore, I hope to love image processing friends help.)
    2016-11-06 21:33:55下载
    积分:1
  • 91738645WaterShed
    分水岭算法的实现,用VC++语言实现,构成可靠的算法实现(the implement of the watershed)
    2013-07-17 09:19:23下载
    积分: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
  • K-maens
    K均值聚类算法对图像进行分割,实验用程序,亲测可用。(K-means clustering algorithm for image segmentation, experimental procedures, pro-test is available.)
    2013-07-20 16:43:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载