-
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
-
RectDetector
矩形检测:用霍夫直线检测方法来对图像中的矩形进行检测。开发环境:vc6,需要安装OpenCV。OpenCV只是用来读取和显示图像等简单操作。(Rectangle detection: Hough line detection method using the image of the rectangle to test. Development Environment: vc6, need to install OpenCV. OpenCV is used to read and display images such as simple operation.)
- 2010-08-08 13:06:08下载
- 积分:1
-
Lsm_match
最小二乘图像影像匹配方法,一个很详细的源码例程,有过程有结果,希望对初学者有帮助。高斯解方程,以及最小二乘匹配,里面都很详细。(Squares image image matching method, a very detailed source code routines, the outcome of the process, I hope to help beginners. Gaussian solution of equations, and least squares matching, which is very detailed.)
- 2013-07-18 16:52:41下载
- 积分:1
-
DyBMPMovie
实现“动态”的位图动画,VC++经典编程学习源码,很好的参考资料。(The realization of "dynamic" bitmap animation, VC++ classic learning programming source code, a good reference.)
- 2013-11-25 12:37:28下载
- 积分: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
-
Canny
Canny边缘检测算法,已经试过,可以用。能较好的检测边缘。(Canny edge detection algorithm, has been tried, you can use. To better edge detection.)
- 2010-09-28 14:42:46下载
- 积分:1
-
d3dle5
说明: 计算机图形学中应用VC++6.0和DirectX 8.0 SDK制作彩色旋转的金字塔和正方体的小程序(computer graphics application VC 6.0 and DirectX 8.0 SDK produced color rotating cube pyramid and the small program)
- 2005-12-14 13:49:08下载
- 积分:1
-
cpp
用halcon编写的代码实例,用来给初学者学习(Use halcon code examples, for beginners learning
)
- 2014-10-21 09:56:24下载
- 积分:1
-
dajin
itk 阈值分割 大津法分割 医学图像分割(itk Otsu threshold segmentation method segmentation medical image segmentation)
- 2011-06-21 21:28:21下载
- 积分:1
-
DIP_vc
用c语言编写的数字图像处理程序,图像读取,图像增强,图像复原,傅里叶变换,离散余弦变换都有(With the c language digital image processing, image scanning, image enhancement, image restoration, Fourier transform, discrete cosine transform has)
- 2013-11-30 20:23:27下载
- 积分:1