-
chenggongchengxu
rgb to HSV,很有用,调试成功,可以应用(rgb to HSV,#include "stdafx.h"
#include <iostream.h>
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)
- 2011-12-02 10:09:24下载
- 积分:1
-
QMcoder
这是我研究生期间,用QM Coder做图像和图片压缩的源代码。希望能帮助大家(This is the QM Coder for video/image compression. Hopefully, it will be useful for you. )
- 2020-09-20 22:37:52下载
- 积分:1
-
infusimage
红外图像的亚像素边缘检测,检测边缘,用于图像配准。(Infrared image of the sub-pixel edge detection, edge detection for image registration.)
- 2010-09-29 10:18:15下载
- 积分:1
-
lane-detect
canny边缘检测,还有车道线检测。效果还可以。(canny edge detection, and lane detection. The effect can be.)
- 2014-01-14 16:44:00下载
- 积分:1
-
SparseMatrixOfExamples
稀疏矩阵的实例,讲述如何用稀疏矩阵进行实际的编程。本例是以超市购物为实际背景。(Examples of sparse matrix)
- 2010-07-29 09:57:15下载
- 积分:1
-
Image-Processing
VC++图像程序处理 是由杨淑莹老师编写的 对于计算机视觉 等课程有重要作用 (VC++ image processing program written by Yang Shuying teacher courses for computer vision plays an important role)
- 2011-11-07 17:27:35下载
- 积分:1
-
1111222223333334444445533332345554
VC计算机图形学原理及算法教程
VC计算机图形学入门教程(VC theory and algorithms of computer graphics computer graphics tutorial Tutorial VC)
- 2013-11-18 15:30:26下载
- 积分:1
-
stereo
立体视觉代码。主要过程包括:harris角点检测,zncc最优策略匹配,扩散得到更多特征对应,计算disparity和对应颜色值。另外提供了两幅图片以及对应的特征匹配的结果和disparity图像。(Three-dimensional visual codes. The main process includes: harris corner detection, zncc optimal strategy for matching, the proliferation of more features of the corresponding calculation of disparity and the corresponding color value. Also provides a picture and two corresponding feature matching results and disparity images.)
- 2020-06-29 14:40:02下载
- 积分:1
-
pca
说明: 利用c++实现的PCA算法,直接对数据进行处理,适合初步学习(C++ implementation using PCA algorithm to process the data directly)
- 2011-03-01 16:07:23下载
- 积分:1
-
jpeg2k
说明: JPEG2000 的一个实现,期中,wavelet.dll是提供的功能接口。(An implementation of JPEG2000, period, wavelet.dll is to provide a functional interface.)
- 2010-05-04 17:00:01下载
- 积分:1