登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • A微波遥感编程实习
    微波遥感集中实习SAR影像几何校正,微波遥感几何校正(geometric correction of SAR)
    2020-06-28 19:00:01下载
    积分:1
  • souhan_v32
    esprit算法对有干扰的信号频率进行估计,一种基于多文档得图像合并技术,搭建OFDM通信系统的框架。( esprit algorithm signal frequency interference can be assessed Based on multi-document image obtained combining technique, Build a framework OFDM communication system.)
    2017-04-28 19:14:03下载
    积分:1
  • 相机采集、控制、、坐标计算、坐标显示等功能的小软件 WProject
    做项目时写的关于相机图像采集、控制、图像处理、坐标计算、坐标显示等功能的小软件(Do item written on the camera image acquisition, control, image processing, coordinates of the calculation, the coordinates show features such as small software)
    2020-07-08 11:28:57下载
    积分:1
  • retinex
    图像增强的算法,但是有一定的局限性……但是对于一般比较典型的问题效果还是不错的……(Image enhancement algorithms, but there are some limitations ... but for a typical effect is good ...)
    2012-06-27 12:30:47下载
    积分:1
  • Transfortion
    计算机图形学中实现多边形平移,旋转,缩放变换。(Polygons in computer graphics to achieve translation, rotation, scaling transformation.)
    2020-11-11 20:29:44下载
    积分:1
  • MARK_Dehaze
    2009年CVPR最佳论文《Single image haze removal using dark channel prior》暗原色图像去雾的算法实现。与原文不同的是本程序没有完成最后matting细化效果的部分,但仍能够达到视觉上可以接受的去雾效果。计算机视觉课程作业。工程运行于VS2008环境,需要OpenCV支持。Debug目下exe文件可以直接双击运行查看结果。(CVPR 2009 Best Paper " Single image haze removal using dark channel prior" to the dark fog of the primary image algorithm. The difference is that with the original program did not complete the final matting refinement part,yet haze-removal result is visually acceptable. Visual course work. This project runs under VS2008 with OpenCV. Double click the exe file under Debug folder to check the final result.)
    2011-08-10 16:46:35下载
    积分:1
  • MedFDTD
    计算电磁波辐射的FDTD程序源码,基于C++编写,支持MUR和PML边界条件,能计算SAR及天线辐射方向图(FDTD source code based on C++.Various absorbing boundary, include PEC, Mur, PML Calculate Specific Absorption Rate (SAR) Antenna radiation simulation, calculate radiation power.)
    2012-05-27 14:10:16下载
    积分:1
  • vfxhw2
    图像拼接源码实现,包括多频率图像融合,sift特征点配准算法(Image Stitching source implementation, including multi-frequency image fusion, sift feature points matching algorithm)
    2010-03-16 14:22:04下载
    积分:1
  • TextAnalysis
    图像的纹理分析应用实例,主要可用于模式识别当中(image texture analysis application, which can be used for pattern recognition)
    2007-04-21 17:13:24下载
    积分:1
  • GraphCut
    图像分割经典算法GraphCut的实现代码,亲测可用。(An implementation of GraphCut Algorithm, which is a classical method in image segmentation field.)
    2020-09-29 17:27:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载