登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • snaketest
    snake算法的c源代码,一般snake算法可以用于图像的边缘检测,是一种比较新的方法(snake algorithm c source code, the general snake algorithm can be used to image edge detection, is a relatively new approach)
    2008-06-02 11:34:44下载
    积分:1
  • yuandaima
    用VC实现Canny算子提取图像边缘,提高图像质量(Using VC realize Canny operator extracts image edge to improving image quality.)
    2012-03-02 22:04:27下载
    积分:1
  • KMP
    图像处理的KMP算法源程序,KMP算法是一种基本的、实用的字符串比较算法,广泛应用于图像处理和模式识别。(Image processing algorithms source KMP, KMP algorithm is a basic, practical string comparison algorithm, widely used in image processing and pattern recognition.)
    2011-09-23 19:46:43下载
    积分:1
  • 2019DSP实验
    说明:  锐化图片 拉普拉斯算法 两种方法 一种是自己写的一种是用了matlab里面自带的函数(ruihua picture Laplace there are two mechof a fi [as fs aflasl;nvb)
    2019-05-28 21:51:24下载
    积分:1
  • Mirror_DImageProcess
    这个实例就像一个魔镜一样,能把原始图像照出各种变换效果,是基于MFC的多文档应用程序(This example is like a mirror,which can convert original image according to a variety of effects)
    2013-11-29 16:23:24下载
    积分:1
  • DSP
    程序是基于DSP的数字图像处理技术,可以实现军事滤波,中值滤波和维纳滤波,实现效果较好(The program is a DSP-based digital image processing technology, the military filtering, median filtering and Wiener filtering, better )
    2012-03-18 08:30:46下载
    积分:1
  • PS
    说明:  讲述PS技术的抠图经典问题,帮助你快速熟悉抠图的精华!(PS about the classic problem of technology, matting, matting to help you quickly familiar with the essence!)
    2011-05-13 23:58:48下载
    积分:1
  • vcphotoboth
    VC++处理图像模糊或柔化的效果示例源程序,类似Photoshop中的图像高斯模糊效果,每点击一次鼠标右键,程序为模糊一次,直到你满意为止。注意程序仅实现了模糊的功能,其它功能比如程序优化和效率方面的考虑还比较少,因此程序运行速度方面可能会欠缺一些(VC++ deal with image blur or soften the effect of sample source code, similar to Photoshop' s image Gaussian Blur effect, each click the right mouse button, the procedures for fuzzy time until you are satisfied. Note that the program is only vague functions, other functions such as process optimization and efficiency considerations is still relatively small, the speed of the program is running may lack some of the)
    2012-06-25 15:06:57下载
    积分:1
  • 12.2
    (1)在工具栏中点击“打开”功能出现文件打开窗口,用户选择一幅bmp图片后在指定区域居中显示该图片,若图片尺寸小于指定区域则按原始大小显示;若大于则按合适比例显示。 (2)鼠标指针在图片上停留时显示为十字形,同时在控件下方固定位置显示鼠标所在的图像x坐标和y坐标(如:50,100),以图片左上为坐标原点。 (3)在工具栏中可以点击控件实现在图片上绘制一次直线、矩形或圆等图形,在绘图过程中要求图片和图形一直可见,不能出现刷新痕迹,绘制的图形可以任意修改形状。 (4)可以任意选择图形线条的类型(虚线或直线)、颜色(三种)及粗细(三种),要求选择方式可以叠加,绘制过程要求可任意连续执行。 (5)在工具栏中点击“保存”功能出现文件保存窗口,用户可以选择保存路径来保存当前图片操作结果(包括图片和图形)。 (6)点击“关闭”功能,关闭当前图片,若操作结果尚未保存则必须弹出对话框提示用户进行保存。 ((1) in the tool bar, click on Open function has the file open window, the user selects a bmp image to center the picture in the designated area, if the image size is smaller than the specified area press the original size if more than press the appropriate scale display. (2) is shown as a cross when the mouse pointer over the image, while displaying an image x and y coordinates of the mouse cursor in a fixed position below the control (eg: 50,100) to image the upper left of the coordinate origin. (3) in the toolbar you can click controls to achieve a draw straight lines, rectangles or circles and other graphics on the picture, the requirements of pictures and graphics in the drawing process has been seen, it can not appear refreshed traces drawn graphics can be modified shape. (4) can choose the type of graph line (dashed or straight), color (three kinds) and thickness (three kinds), asked to choose the way can be superimposed, can arbitrarily draw process requires continuous exe)
    2015-10-23 12:16:41下载
    积分:1
  • SHUZITUXIANGCHULIYUANDAIMA
    数字图像处理源码,包含数字图像处理的诸如边缘检测等多个功能程序(C++)(Source digital image processing, including digital image processing such as edge detection and many other functional procedures (C++))
    2008-06-01 10:59:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载