登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • yun7.1
    重要的纹理分割分类基础程序,可以进行更深入的探讨和优化,应用于遥感影像中。(Important basis for classification of texture segmentation procedure can be carried out more in-depth exploration and optimization, application of remote sensing images.)
    2007-07-13 15:01:34下载
    积分:1
  • StegoTool
    LSB替换隐写软件,该软件能把ASCII码嵌入到图像中,其载体图像是24位的BMP格式图像(LSB Steganography tool which provides hide ASCII infomation within 24-bit Bitmap images)
    2020-11-05 11:19:53下载
    积分:1
  • Voronoi
    图形voronoi图的自动生成算法,用vc做,是基于一般图形voronoi图的算法,结合数字图形处理里的轮廓跟踪算法,使一般图形voronoi图能够根据不同的生成元总动生成。(Graph voronoi diagram automatic generation algorithm, using vc do is based on the general graph voronoi diagram algorithm, combined with digital image processing in the contour tracking algorithm, the general graph voronoi diagram to the total depending on the generator automatically generated.)
    2020-12-10 21:19:19下载
    积分:1
  • TemplateTran
    用VC编写的一个图像处理的程序:它可以实现图像的增强,包括:图像的平滑、中值滤波、梯度锐化、拉普拉斯锐化和伪彩色编码(VC prepared by an image processing procedures : it can enhance the images, including : image smoothing, Median filtering, sharpening gradient, Laplacian sharpening and pseudo-color coding)
    2007-04-12 10:15:19下载
    积分:1
  • image_carrying_code
    利用位图图像中的冗余数据位,将小文件嵌入到大的图像文件中,并保持原图像不变。(The use of bitmap images in the redundant data bit will be embedded in small files to large image files, and to maintain the original image unchanged.)
    2009-03-03 03:22:30下载
    积分:1
  • chapter12
    图像处理中的数字识别代码,包括数字训练集合和训练分类算法,可以实际应用。(digital recognition)
    2015-10-11 21:25:41下载
    积分:1
  • yepian
    为了研究植物的生长规律,应用数字摄影图像处理法对山楂叶面积进行无损测量,该方法采用数码相机在田间获取山楂叶子的数字图像,对所拍图像进行背景去除、二值化及中值滤波处理,然后利用Matlab软件编程.快速计算出叶子的面积。把这一面积同常用的叶纸称重法所测面积进行比较.结果基本相同,由此可见,数字摄影图像法测量叶面积,具有简单、准确、方便快捷的特点.这对数字农业的植物信息快速采集和利用具有重要的意义。 ( In order to study the growth pattern of plants, the application of digital photography and image processing method for nondestructive measurement of hawthorn leaf area, this method using a digital camera to obtain digital images of hawthorn leaves in the field, on the film image background removal, binarization and medianfiltered, and then using the Matlab software programming. Quickly calculate the area of the leaves. This area with the common leaf paper weighing measured by the area to compare. The results are basically the same, shows, digital photographic images method to measure leaf area, with a simple, accurate, and convenient features. This rapid acquisition and use of digital agricultural plant is of great significance. In order to study the growth pattern of plants, the application of digital photography and image processing method for nondestructive measurement of hawthorn leaf area, this method using a digital camera to obtain digital images of )
    2012-02-19 11:20:50下载
    积分:1
  • count-rice
    本程序可以使用图像处理算法对图片进行处理,对于一个含有各种物体的图片,如米粒,可以计算物体的个数。使用前请配置好opencv环境。希望对大家学习图像处理和opencv有所帮助...(This procedure can use the image processing algorithm for processing images for a picture with a variety of objects, such as a grain of rice, can calculate the number of objects. Configured before use opencv environment. We would like to learn opencv image processing and help ...)
    2009-04-23 16:05:57下载
    积分:1
  • Graph
    输入一个带权无向图的顶点数、边数、各条边信息(两个顶点和权值),建立该图的邻接矩阵结构,输出该邻接矩阵。将上述无向图邻接矩阵转换为邻接表结构,输出该邻接表;根据该邻接表对无向图进行深度优先遍历序列和广度优先遍历序列,并输出遍历结果;用prim算法实现构造该带权无向图的最小生成树,并将该最小生成树的各条边信息输出。(Enter a weighted undirected graph with vertices, edges, each of the side information (two vertices and weights), the establishment of the adjacency matrix structure, the output of the adjacency matrix. The above undirected graph adjacency matrix into adjacency list structure, the output of the adjacency list according to the adjacency table undirected graph depth-first traversal sequence and breadth-first traversal sequence, and outputs through the results using prim algorithm construct the weighted undirected graph minimum spanning tree, and the minimum spanning tree information on respective sides of the output.)
    2020-12-13 15:29:15下载
    积分:1
  • FULIYE
    能够计算傅里叶描述子,并对图像进行重构,实现对目标图像和源图像的辨认(Fourier descriptors can be calculated, and the image reconstruction, image and the source image to target identification)
    2020-11-05 13:49:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载