(1) 在window下執行DPM(deformable part models) -(檢測demo部分)
阿新 • • 發佈:2019-01-08
可以從http://www.cs.berkeley.edu/~rbg/latent/index.html獲得的原始碼,採用Matlab和C++編寫,我下載的是voc-release4.01版本,大概是因為版權的問題原始碼是在 Linux and Mac OS上執行的,考慮許多人在Linux平臺上執行該原始碼不方便,這裡將原始碼轉化到Windows平臺上執行。
檢測demo部分:
1.dt.cc中加入#define int32_t int
2.features.cc和resize.cc中加入
#define bzero(a, b) memset(a, 0, b)
int round(float
resize.cc中
alphainfo ofs[len]; 改成 alphainfo *ofs = new alphainfo[len];
同時,同一個域中加入delete []ofs;
3. compile.m中
源程式用的是0)用多執行緒,但是在Windows上跑不起來,這裡用4)
經過以上步驟,就可以編譯了,執行compile,但是事先要設定好matlab的編譯器,我的環境是Windows