-
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
-
program
gdal读tiff图像,获取图像大小,波段信息,图像数据,写Tiff图像到固定路径。(Read and write an TIff image using GDAL)
- 2012-02-13 22:08:22下载
- 积分:1
-
Sobel-and-Prewitt-edge-detection-and-robert
Image processing using sobel operator
- 2012-05-26 02:04:51下载
- 积分:1
-
CSCA
这是用C++实现图像立体匹配的一个完整的论文代码,主要特性是提出了一种全新的跨规模代价聚合方法,适合对于图像的立体匹配有一定基础的人学习(Cross-Scale Cost Aggregation for Stereo Matching)
- 2020-12-28 17:19:01下载
- 积分:1
-
1
说明: 这是一个在vc6.0基于OpenCV的控制台程序,本例给出一个椭圆曲线拟合的例子,程序首先发现图像的轮廓,然后用椭圆逼近它。(This is a vc6.0 console based on the OpenCV procedures, in this case gives an example of elliptic curve fitting, the program first to discover the outline of the image, and then close it with an oval.)
- 2008-05-13 15:21:14下载
- 积分:1
-
Camdemo
Camshift算法,即"Continuously Adaptive Mean-Shift"算法,是一种自适应的运动跟踪算法。它主要通过视频图像中运动物体的颜色信息来达到跟踪目的。(Camshift algorithm, namely " Continuously Adaptive Mean-Shift" algorithm is an adaptive motion tracking algorithm. It is primarily the color information of the object' s movement through the video images to achieve tracking purposes.)
- 2014-01-11 19:45:29下载
- 积分:1
-
DiffStrip
傅里叶时域频域变换图形处理S参数在时域的应用(Fourier time domain frequency domain transform graphics processing S-parameters in the application of the time-domain)
- 2012-09-05 17:03:20下载
- 积分:1
-
Three-dimensional-algorithm
关于MC三维重建算法的二义性消除的文章,很好的消除了MC算法中的二义性(it s the article about Three-dimensional reconstruction algorithm to eliminate ambiguity in MC)
- 2014-01-17 13:19:26下载
- 积分:1
-
contrast
28个vc++图像处理原程序之--对比度拉伸(28 vc++ Image processing of the original procedure- contrast stretching)
- 2008-12-24 11:58:36下载
- 积分:1
-
Fngprnt
采用最大方差阈值分割法,对指纹进行提取。(Using the maximum variance threshold segmentation method for fingerprint extraction.)
- 2013-11-24 20:39:58下载
- 积分:1