-
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
-
radarMTD
一个简单的雷达动目标检测程序,仅供学习之用。(A simple radar moving target detection procedures, for learning purposes only.)
- 2020-07-03 02:40:01下载
- 积分:1
-
基于形态学的权重自适应图像去噪
说明: 图像处理案例,本程序是用matlab基于形态学的权重完成自适应图像去噪功能(Image processing case, this program is based on the weight of MATLAB morphology to complete adaptive image denoising function.)
- 2021-03-25 16:37:20下载
- 积分:1
-
Wavelet_SL0
压缩感知CS——采用小波变换进行稀疏表示,高斯随机矩阵为观测矩阵,重构算法为SL0算法,对256*256的lena图处理,比较原图和SL0算法在不同采样比例(0.74、0.5、0.3)下的重构效果,并各运行50次,比较算法性能PSNR和每次的运行时间
(Compressed sensing CS- using wavelet transform as sparse representation, Gaussian random matrix as the observation matrix and SL0 algorithm as the reconstruction algorithm. Compare lena figure and the reconstruction results using SL0 algorithm at different sampling ratio (0.74,0.50.3),then each runs 50 times, compare the performance of PSNR and each running time)
- 2020-09-10 15:08:00下载
- 积分:1
-
final-test-code
compressed sening image compresseion
- 2014-04-29 21:48:31下载
- 积分:1
-
gfosub
应用于Adams软件的二次开发,分别为子程序文件以及目标文件(The second development of Adams software)
- 2020-11-02 15:09:53下载
- 积分:1
-
psnr
该函数是用于计算峰值信噪比和信噪比的程序(it can be used to calculate psnr and snr)
- 2009-12-22 14:56:19下载
- 积分:1
-
image-stitch
指纹识别的MATLAB程序,包含了特征点抽取,特征点匹配,识别。(Fingerprint of the MATLAB program, including the feature point extraction, feature point matching, identification)
- 2012-04-10 10:46:16下载
- 积分:1
-
FisheyeImCorr
使用matlab对图像进行处理实现鱼眼校正,效果良好(Use matlab image processing fish-eye correction, and to good effect)
- 2012-11-06 16:04:18下载
- 积分:1
-
NSCTdenoising
说明: 两种基于非下采样变换图像去噪方法,效果比contourlet变换要好(Two transform based image denoising nonsubsampled method, the effect is better than contourlet transform)
- 2011-04-09 11:24:57下载
- 积分:1