資源簡介
基于matlab的粒子濾波經(jīng)典程序。實現(xiàn)了目標(biāo)跟蹤。初學(xué)者非常好用!
代碼片段和文件信息
#include?
#include?“mex.h“
//
//?Calculation?of?Log?Likelihood
//
int?round(double?x){
????
????if?(x?>?0){
????????
????????return?int(x?+?0.5);
????}
????else{
????????
????????return?0;
????}
}
void?mexFunction(int?nlhs?mxArray?*plhs[]?int?nrhs?const?mxArray?*prhs[]){
//?Input?Array
if?(nrhs?!=?4) mexErrMsgTxt(“Four?inputs?required.“);
double Xstd_rgb =?mxGetScalar(prhs[0]);
double* C =?mxGetPr(prhs[1]);
int C_m =?mxGetM(prhs[1]);
int C_n =?mxGetN(prhs[1]);
double* X =?mxGetPr(prhs[2]);
int X_m =?mxGetM(prhs[2]);
int X_n =?mxGetN(prhs[2]);
unsigned?char* Y =?(unsigned?char*)mxGetData(prhs[3]);
int Y_m =?mxGetM(prhs[3]);
int Y_n =?mxGetN(prhs[3]);
if?(C_m?*?C_n?!=?3) mexErrMsgTxt(“2nd
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????398??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\calc_log_likelihood.p
?????文件????????1680??2011-10-25?11:37??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\calc_log_likelihood_mex_handcoded.cpp
?????文件?????????167??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\create_particles.p
?????文件?????????867??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\main.m
?????文件?????????408??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\particle_filter_by_saved_movie.p
?????文件??????964717??2011-10-27?16:01??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\Person.wmv
?????文件?????????213??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\resample_particles.p
?????文件?????????193??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\show_particles.p
?????文件?????????267??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\show_state_estimated.p
?????文件?????????180??2013-03-16?00:27??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\update_particles.p
?????文件?????????138??2013-03-09?16:46??MATLAB——非常好用基于粒子濾波的視頻跟蹤程序\www.hslogic.com.txt
評論
共有 條評論