-
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
-
edge
对图片预处理加入高斯噪声,各种经典边缘检测算子对图像进行边缘提取(Gaussian noise on the image pre-processing, a variety of classic edge detection operator to extract image edge)
- 2013-11-25 20:50:35下载
- 积分:1
-
harriscorner
harrisconer角点检测,提取焊缝的角点位置信息,进行焊缝的特征识别(harrisconer extractionfeature extraction.The position information of the corner point of the weld is extracted and the characteristics of the weld are identified)
- 2017-12-17 16:58:09下载
- 积分:1
-
Texture_sys
彩色图像纹理合成(基于Efros-Leung算法)(matlab中应用C的接口)(Implement the non-parametric texture synthesis algorithm of Efros-Leung)
- 2009-02-17 11:59:11下载
- 积分:1
-
rat
RAT power toy (KOL)
- 2019-03-02 10:00:04下载
- 积分:1
-
RLS
说明: 基于场景的RLS的非均匀校正算法,不同均值滤波器比较。(Scene based RLS nonuniformity correction algorithm, different mean filter comparison.)
- 2020-04-26 14:46:01下载
- 积分:1
-
dtlvbo
零相位带通滤波源代码,可以对信号进行滤波处理提高信噪比.(Zero-phase band-pass filtering the source code, you can filter the signal-noise ratio improve treatment.)
- 2021-03-26 17:09:13下载
- 积分:1
-
fourier2
自己编写的二维傅里叶变换的源代码,并在变换后显示频谱。(Two-dimensional Fourier transform of the source code I have written, and displayed in the transformed spectrum.)
- 2020-08-23 14:07:54下载
- 积分:1
-
lrr
matlab版的低秩表示代码,低秩表示是低秩分解的改进型(Matlab version of low rank representation code, low rank representation is an improved low rank decomposition.)
- 2018-07-04 21:59:07下载
- 积分:1
-
gdal180doc
说明: 开源图形处理工具,可以处理图象,显示,投影转换,栅格和矢量数据处理(Open source graphics tool that can handle images, display, projection conversion, raster and vector data processing)
- 2011-03-22 15:39:35下载
- 积分:1