-
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
-
one-based
一种基于背景减法和帧差的运动目标检测算法(Based on background subtraction and frame difference moving target detection algorithm)
- 2013-07-31 09:12:36下载
- 积分:1
-
Meanshift
利用Mean-shift进行平滑处理,主要是对图像进行平滑的界面,MFC和OpenCV进行混合编程……(Mean-shift smoothing, image smooth interface, the MFC and OpenCV mixed programming ...)
- 2012-03-26 10:08:52下载
- 积分:1
-
ganxingququ
图像分割方法中有关感兴趣区域处理的程序代码(Image segmentation method for region of interest processing code)
- 2012-06-10 11:58:01下载
- 积分:1
-
Tamura纹理特征提取及应用的matlab代码 TTamura Textua
Tamura纹理特征提取及应用的matlab代码,附有介绍绍Tamura纹理的文献和测试用图片。,已通过测试。
(Tamura texture feature extraction and application of the Matlab code, accompanied by Shao Tamura texture literature and test pictures. , Has been tested.)
- 2012-06-09 11:36:52下载
- 积分:1
-
matlab
) 使用分块的主成分分析方法(PCA)对人脸图像进行压缩编码。针对PCA方法计算量大的缺点,首先把问题转化成奇异值分解(SVD)问题,然后设计了特征空间的更新算法,通过递推,简化每一步计算的计算量,达到了实时编码的要求。 4) 在Windows平台下基于Video for Windows(VFW)接口开发了人脸视频图像编码和解码的实验系统,该系统实现了图像采集、图像显示、编码、解码等功能。() The use of sub-blocks of principal component analysis (PCA) on the human face image coding. PCA method for large defects, first of all the issues into a singular value decomposition (SVD) problem, and then design a feature space of the update algorithm, recursive, simplifying the calculation of the amount calculated at each step to achieve real-time encoding requirements. 4) In the Windows platform based on Video for Windows (VFW) interfaces, the human face image coding and decoding video experimental system, the system achieved image acquisition, image display, encoding, decoding functions.)
- 2010-05-11 12:03:24下载
- 积分:1
-
pcacode
程序设计步骤:
1、去均值
2、计算协方差矩阵及其特征值和特征向量
3、计算协方差矩阵的特征值大于阈值的个数
4、降序排列特征值
5、去掉较小的特征值
6、去掉较大的特征值(一般没有这一步)
7、合并选择的特征值
8、选择相应的特征值和特征向量
9、计算白化矩阵
10、提取主分量(Programming steps: 1 to mean 2, calculation of covariance matrix and its eigenvalues and eigenvectors 3, the calculation of covariance matrix eigenvalues greater than the threshold number of 4, in descending order of eigenvalue 5, remove the smaller eigenvalue 6, remove the larger eigenvalue (usually not this step) 7, the combined choice of eigenvalues 8, select the appropriate eigenvalues and eigenvectors 9, computing whitening matrix 10, principal component extraction)
- 2008-07-14 16:25:23下载
- 积分:1
-
gmm
高斯混合模型的源代码。从文件中读取数据,用三个高斯混合模型进行处理(Gaussian mixture model of the source code. Read from the file data, using three Gaussian mixture model for processing)
- 2013-10-27 19:58:34下载
- 积分:1
-
hhh
说明: 关于图像处理技术在冬小麦测试中的应用,用VC编的软件能对小麦进行二值化处理,中值滤波和灰度变换。(On image processing technology in the winter wheat test the application of the software made by VC on wheat binarization processing, median filtering and gray-scale transformation.)
- 2008-10-23 22:42:29下载
- 积分:1
-
water-pot
基于小波变换的使用SPIHT算法进行图像压缩,并对原有的算法进行优化(Based on wavelet transform using the SPIHT algorithm for image compression, and the original algorithm to optimize)
- 2012-06-12 08:07:39下载
- 积分:1