登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • display_video
    对视频进行基本的处理,例如载入视频,显示视频,控制播放(Basic video processing, such as loading the video, show video, control playback)
    2011-08-28 16:14:12下载
    积分:1
  • CV-SURF
    基于vc++6.0的SURF算法的程序代码,可以直接运行(Based on the SURF algorithm for vc++6.0 program code can be run directly)
    2011-05-18 10:45:18下载
    积分:1
  • ASED
    在自动化生产线VC开发的运动控制机器视觉程序,XYZ三个轴有PCI板卡控制,视频卡采集图像后经算法处理找到图像的点,VC控制步进电机到加胶位置加胶,在机器上运行每日点胶100000次无故障(VC development in automated production lines motion control machine vision program, XYZ three-axis control with a PCI card, video card capture images after processing algorithm to find the image of the point, VC controlled stepper motor to position plus plus glue glue on the machine run the daily dispensing 100,000 times without failure)
    2020-09-10 05:38:04下载
    积分:1
  • paint
    对于vc++中经典的画线画图示例程序.对于类的控制和画线算法的实现.代码简洁明了(For vc++ in a classic example of procedures for drawing a line drawing. The type of control and painting line algorithm. Concise code)
    2009-04-13 21:09:16下载
    积分:1
  • shuangmushijue
    双目视觉经验总结,希望后面的不要犯错误。(Binocular visual experience summary, make no mistake behind.)
    2012-11-07 11:04:15下载
    积分:1
  • sarMatch
    说明:  基于边缘特征的SAR图像与光学图像匹配,测度为Hausdorff距离(SAR images based on edge features and optical image matching, for the Hausdorff distance measure )
    2020-10-12 09:57:32下载
    积分: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
  • gdcm-2.2.0
    医用图像处理程序,处理dicom文件。开源软件,参考dcmtk(dicom process soft)
    2012-04-11 15:17:34下载
    积分:1
  • photo_cut
    图形裁剪,实现对画的线,多边形,交点进行剪裁,实现图形的规范化(Graphic cutting, to achieve the painting line, polygon, tailoring intersection, graphics standardization)
    2014-04-12 09:34:12下载
    积分:1
  • Image-zooming
    实现bmp位图的图像放大缩小,包含整个mfc的源码文件。(Achieve bmp bitmap image zoom, contains the entire mfc source files.)
    2014-02-13 10:17:26下载
    积分:1
  • 696516资源总数
  • 106405会员总数
  • 10今日下载