登录
首页 » Visual C++ » chenggongchengxu

chenggongchengxu

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

  • DCTJPEG
    blkproc.m,DCHuffmanEncoding.m,ACHuffmanEncoding.m,zigzag.m,PSNR.m, 对灰度图像进行DCT变换,量化,ZigZag扫描,Huffman编解码,反量化,反DCT变换而重建图像。 其中,blkproc.m为分块DCT变换函数; DCHuffmanEncoding.m,ACHuffmanEncoding.m分别为DC和AC变换系数的Huffman码表函数; zigzag.m为ZigZag扫描函数;PSNR.m为求图像峰值信噪比函数。 Copyright 2008 Reserved @ Wang Chengyou @ Tianjin University, P.R.China. (This function tests the DCTJPEG codec)
    2013-03-24 12:06:34下载
    积分:1
  • DMC2C80-V1.1
    VC development motion control routines, vb development 12 axis motion control routines
    2013-12-08 21:55:18下载
    积分:1
  • target-tracking
    基于meanshift算法的目标跟踪,主要是基于opencv车辆跟踪!!!程序当中进行简单的图像分割(Based on the meanshift algorithm of image segmentation and target tracking.)
    2013-08-21 10:45:45下载
    积分:1
  • VC-tu-xiang-chu-li
    图形图像处理算法大全,包含各种算法的源码,只要经过简单修改就可变为程序(Daquan graphic image processing algorithms, including the source code for various algorithms, as long as you can into a program after a simple modification )
    2011-05-20 16:45:34下载
    积分:1
  • fa0d
    基于像素标记的连通区域计算程序,只针对二值图像,随附有。(Based on regional connectivity calculation procedure pixel tags, only for the binary image, comes with.)
    2013-12-13 14:51:32下载
    积分:1
  • demo
    本程序包括图像的几何变换、图像的灰度变换、图像的空域增强、图像的频域增强、图像的形态学处理、图像的分割和区域增长、还有图像的数字识别等一系列有关图像的基本操作和处理。(This procedure including the image geometric transform, the image gradation transformation, the image air zone strengthens, the image frequency range to strengthen, image morphology processing, the image division and the region grows, also has the image digital recognition and so on a series of related image elementary operation eo and processing. )
    2011-11-10 17:43:10下载
    积分:1
  • 4546
    角点检测的概述,是一篇文章,介绍了角点检测的发展和现状(coener detection)
    2012-04-25 17:01:01下载
    积分:1
  • HumanDet1
    人头检测 通过颜色分割产生人头头发部分的二值图像,计算此部分的面积和长宽比来判断是否有人头(human detection)
    2021-03-05 18:49:31下载
    积分:1
  • ImageMatch
    摄影测量中影像匹配小程序,附带两幅图片,比较实用(Photogrammetry image matching small program, with two pictures, more practical)
    2016-04-29 20:03:43下载
    积分:1
  • 2-8
    一个基于MFC窗口的具有图形图像处理的功能的MFC程序,可对图像灰度,滤波等处理好功能(MFC program has a function of image processing based on MFC window can be a good feature for grayscale images, filtering and other processing)
    2014-12-09 23:27:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载