-
Notifications
You must be signed in to change notification settings - Fork 8
論文メモ HoG
(論文メモ) HoG
"A Discriminatively Trained, Multiscale, Deformable Part Model", Pedro Felzenszwalb, David McAllester and Deva Ramanan,IEEE Conference on Computer Vision and Pattern Recognition, 2008.
Discriminatively Trained Multiscale Deformable Part Modelsのサンプルを動かしてみる。
MATLAB7.2b + Visual Studio 2008
- サンプルを拾って展開
- mex -setup
- compile.mを実行
- demo.mを実行
で動けば万万歳。うちの環境ではそもそもVC++が認識されずダメだった。(パスの問題かも?)
mexはMATLABとC言語を繋ぐコンパイラらしい。
ソースには一部Visual C++で対応していない個所がある。
alphainfo ofs[len];
を
alphainfo* ofs = new alphainfo[len];
とする。
bzero(dst, chan*width*dheight*sizeof(double));
を
memset(dst, '\0', chan*width*dheight*sizeof(double));
とする。
round関数が無いので
inline int round(double x)
{
return (int)(x+1-0.5);
}
とでも定義しておく。
int32_t -> int
と書換える。
-
Visual Studioのコマンドプロンプト(スタートメニューから探す)を開く
-
ソースの置かれているフォルダに移動(TABキーを駆使すれば楽に到達可能)
-
以下のコマンドを実行
mex -f "c:\Program Files\MATLAB\R2007b\bin\win32\mexopts\msvc80opts.bat" resize.cc mex -f "c:\Program Files\MATLAB\R2007b\bin\win32\mexopts\msvc80opts.bat" dt.cc mex -f "c:\Program Files\MATLAB\R2007b\bin\win32\mexopts\msvc80opts.bat" features.cc mex -f "c:\Program Files\MATLAB\R2007b\bin\win32\mexopts\msvc80opts.bat" fconv.cc
あとはMATLABからdemo.mを実行。
- 3ds_max
- Android
- Books
- Caffe
- Canvas
- Chainer
- CloudCompare
- colinux
- colmap
- Cygwin
- DeepLearning
- DICOM
- dlib
- docker
- Everun
- Excel
- EyeX
- FANN
- FDS
- Felica
- FreeBSD
- FreeNAS
- GAlib
- gnuplot
- JetsonNano
- JetsonTK1
- JetsonTX2
- Kinect
- LAPACK
- LaTeX
- LTspice
- M5Stack
- MacOSX
- MATLAB
- Memo
- MicroEnableIII
- Mono
- MSVC
- nano
- nvidia-docker
- ODE
- Open3D
- OpenCV
- OpenCVSharp
- OpenMVG
- OpenOffice
- OpenVSLAM
- OSG
- ParaView
- PCL
- Phidgets
- PlaidML
- PLplot
- POVRay
- PowerPoint
- Python
- R
- RaspberryPi
- Realsense
- ROS
- RSJ2011
- Ruby
- Scilab
- SHOGUN
- SUSE
- SVM
- Tensorflow
- TrueCrypt
- Ubuntu
- uEye
- Unix
- VMWarePlayer
- Vim
- VTK
- Windows
- WSL2
- 文書作成
- 文献調査
- 立体映像
- 論文メモ