登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • demo
    图像拼接小程序,使用直接对比的方法进行拼接并用加权平均的方法进行融合 (a simple program for image splicing )
    2012-04-25 09:58:43下载
    积分:1
  • PT
    说明:  简单的数字图像处理程序,实现灰度化,二值化,边缘检测等(Simple digital image processing program, graying, binarization, edge detection, etc....)
    2012-02-28 18:49:50下载
    积分:1
  • RayTracer
    VB像素光影跟踪(图像渲染)工具,有需要的就下载吧。(VB Tracking pixel lighting (image rendering) tools, there is a need to download it.)
    2013-08-04 15:09:52下载
    积分:1
  • LMD
    自己编写的数字图像处理程序,包括打开bmp图像,直方图,阈值分割,形态学处理等功能。(digital image processing procedures, including open bmp image, histogram, threshold segmentation, morphological processing and other functions.)
    2013-11-14 22:17:45下载
    积分:1
  • DarkChannelPrior
    目标物与摄像机距离已知的情况下,计算白天大气能见度距离。(The distance between the object and the camera is known to calculate the visibility distance in daytime.)
    2017-01-20 14:10:32下载
    积分:1
  • kalmanPcamshift(meanshift)
    Kalman+CamShift实现视频追踪(Kalman+CamShift video track)
    2014-05-14 16:46:19下载
    积分:1
  • aam
    用AAM算法进行人脸特征点的标定,即对人脸的眼睛,眉毛,嘴巴,鼻子及脸的轮廓进行标记,此代码标记了68个特征点。(AAM algorithm for facial feature points calibration, calibration of this code is the 68 feature points, see the instance document.)
    2012-10-16 16:12:43下载
    积分:1
  • DIPDemo
    包括图像输入(打开文件、采集、捕捉图像、从剪贴板粘贴、打开扫描软件、灰度化、添加随机噪声、椒盐噪声、去噪声)、图像处理(几何变换、灰度反转、直方图均衡化、直方图统计、图像复原、边缘提取、伪彩色、二值化、图像变换)、图像输出(另存图像、打印输出、复制到剪贴板)(Including image input (open the file, capture, capture images, paste from the clipboard, open the scanning software, graying, adding random noise, Salt and pepper noise, to noise), image processing (geometric transformation, gray inversion, histogram equalization oriented, histogram statistics, image restoration, edge extraction, pseudo-color, binary, image transform), image output (save the image, print out, copy to clipboard))
    2020-12-27 22:09:03下载
    积分:1
  • opticalflow
    用光流法进行运动物体的检测和跟踪,并返回运动方向(Light flow method of moving object detection and tracking, and return to the direction of movement)
    2009-07-15 14:03:10下载
    积分:1
  • Shadow-Detection
    阴影检测,基于OpenCV用于对图像中阴影的检测(Shadow detection, OpenCV for image shadow detection)
    2021-04-11 19:08:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载