-
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
-
快速的Lee滤波算法
快速的Lee滤波算法,代码经过优化,修正和测试,能有效减少SAR图像中的斑点噪声。(Fast Lee filter algorithm, code optimized, modification and testing, can effectively reduce the SAR image speckle noise.)
- 2020-07-08 08:38:57下载
- 积分:1
-
kmeans
对遥感图像进行分类,使用k均值算法,对Indian_pines数据进行分类(Remote sensing image classification, using the k-means algorithm)
- 2016-08-26 10:41:06下载
- 积分:1
-
-TV-platform-
一种求解电大平台天线互耦的时域积分方程快速算法(Solving the Antenna TV platform stie fast algorithm)
- 2013-12-05 19:25:04下载
- 积分:1
-
ChangeDetect
遥感图像处理代码,遥感图像自动变化检测代码,根据不同时相的图像自动检测变化信息(Remote sensing image processing code)
- 2015-04-14 08:48:28下载
- 积分:1
-
KFCM算法MATLAB
说明: KFCM聚类算法进行图像分割,分割效果好(KFCM clustering algorithm for image segmentation, segmentation effect is good)
- 2020-04-27 11:07:33下载
- 积分:1
-
projective
2维图像的透视变换,空间变换,可对拍摄的图像进行几何校正(Perspective transformation, the two-dimensional image space transformation, the geometric correction of images taken)
- 2012-03-15 16:23:53下载
- 积分:1
-
FastTV
这是一种对TV模型算法的一种快速改进算法,C++实现,在Code::Blocks下编译成功(This is a TV model algorithm for a fast algorithm, C++ achieve, in the Code :: Blocks compile successfully under)
- 2013-09-11 22:49:48下载
- 积分:1
-
gudao
单相光伏发电并网系统在孤岛运行时的simulink仿真(Islanding operation simulation)
- 2012-05-03 09:33:08下载
- 积分:1
-
WarterShedTransform
分三种类型实现分水岭算法:一般分水岭分割、使用梯度的两次分水岭分割、使用梯度加掩模的三次分水岭算法(Realize three types of sub-watershed algorithm: a general watershed segmentation, the use of two gradient watershed segmentation, the use of gradient mask plus three watershed algorithm)
- 2008-05-21 18:08:03下载
- 积分:1