登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • circle
    一个会动得圆,让学习的人更好的了解C++知识,是最基本的知识,学习工程的基本入门。(Will get round a move, so who better to learn about C++ knowledge, is the most basic knowledge, basic engineering study entry.)
    2011-08-17 17:47:38下载
    积分:1
  • detection
    随着生产和工艺的进步,人们对产品的质量要求越来越高,基于机器视觉的在线 检测系统成为一种重要的质量控制手段。本文对应用于宽幅面、高精度的基于分布式 机器视觉的产品表面缺陷在线检测理论与算法进行了研究,并在此基础上以印刷品和 浮法玻璃的缺陷检测为例,完成了模式产品和非模式产品的缺陷在线检测系统。(With the progress of production and technology, people are increasingly demanding high quality products, based on machine vision for online 检测 system into one kind of Zhong Yao quality Kongzhishouduan. This article applies to wide format, high-precision machine vision products based on distributed-line surface defect detection theory and algorithms are studied, and on this basis, and float glass in print defect detection, for example, completed a model of products and non-model product line defect detection system.)
    2020-06-26 22:20:02下载
    积分:1
  • HALCON_CIRCLE
    一个简单的HALCON计算圆心坐标的例子,C++代码格式,初学者适用!(A simple example of calculating coordinates HALCON, c++ code format, for beginners!)
    2021-03-23 10:19:15下载
    积分:1
  • pipei
    改程序就代码可以找出从不同角度或区间的两幅遥感影像的同名点(Change the program code can find it from different angles of the same name point or interval of two remote sensing images)
    2014-05-17 15:48:13下载
    积分:1
  • 232
    实现运动目标的跟踪,首先用鼠标选取一个区域。之后能自动跟踪这个目标(Tracking of moving objects, first use the mouse to select a region. After automatic tracking of this objective)
    2012-05-29 22:25:21下载
    积分:1
  • IPLib
    多光谱图像出理,离散傅立叶变换,低通滤波,TM条带影像去除(multispectral image integration of remote sensing)
    2012-06-20 13:49:54下载
    积分:1
  • fenlei
    分类程序的实现,可在vc++平台中运行,方便大家对算法的熟悉与学习(Classification procedures to achieve, can be run in vc++ platform to facilitate learning of the algorithm are familiar with)
    2013-07-11 21:16:09下载
    积分:1
  • lab2
    This program draws an image from a bmp file
    2014-05-26 21:59:34下载
    积分:1
  • vc
    说明:  用c写的jpg编解码,包括jpeg2bmp和bmp2jpeg,可在vc6下调试。(With c written jpg codec, including jpeg2bmp and bmp2jpeg, may be under vc6 debugger.)
    2008-05-11 04:22:06下载
    积分:1
  • Pyramid-methods-in-image-processing
    Pyramid methods in image processing
    2013-12-05 20:08:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载