Archive
working with fastHOG; moving towards fast object detection
Although HOG calculations don’t take much portion of time when running object detectors, but the dot products do. Sending HOG pyramid to the GPU steals away all the benefits of calculating dot product on GPU, only way is to calculate HOG also on GPU for different scales of pyramid.
Therefore I am trying to fastHOG. It requires quite a bit of libraries.
one of the libray is FLTK
if you don’t want to put it in the default location (which might be restricted) the following will help make install prefix=New_Dictionary_location
or you can set up through configure file
./configure –bindir=/location/fltk/bin –libdir=/location/fltk/lib –includedir=/location/fltk/include/ –prefix=/location/fltk
matlab and OpenCV development kit
mexopencv comes from Kota Yamaguchi. It is a development kit which is collection of mex functions for bridging matlab and OpenCV. I have not used it till now, but it looks easy to use. Especially interesting to me is it provides the data conversion utility to transfer matlab data to OpenCV datatypes, so one can use them to write their own mex functions.
So do use and provide feed back.
2012 in review
The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.
Here’s an excerpt:
4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 23,000 views in 2012. If each view were a film, this blog would power 5 Film Festivals
Yi Ma’s Robust Face Recognition using Sparse Representation; matlab code
Following is a matlab version of simple Face Recognition algorithm given by Yi Ma.
</pre> %build the dictionary from training imgTrain = double(Tr_dataMatrix); imgTest = double(Tt_dataMatrix); mx = mean(imgTrain,2); D = imgTrain - repmat(mx, 1, size(imgTrain,2)); imgTest = imgTest - repmat(mx, 1, size(imgTest,2)); totalTest = size(imgTest,2); lambda2 = 3; addpath D:\mohsen\matlabCode\sparseCoding\elad\; [U S V] = svd(D); [egVal ind] = sort(diag(S), 'descend'); egV = U; egV = egV(:, ind); D = egV(:,1:200)'*D; D = D./repmat(sqrt(sum(D.^2)),size(D,1),1); imgTest = egV(:,1:200)'*imgTest; ci = zeros(size(D,2), size(imgTest,2)); ci = GetSparseFast(D,imgTest,0*zeros(size(D,2), size(imgTest,2)),500,1, 40); testImgId = []; rejectedI = []; for i=1:totalTest recEr = 0; recMinid = -1; for p=1:totalPeople recErt = norm(imgTest(:,i)-D*(ci(:,i).*(imgTrainLabel'==p))); if recErt < recEr || p == 1 recMinid = p; recEr = recErt; end end testImgId(i) = recMinid; end
Matlab and Object orientation
It’s high time to start implementing the object orientation in the matlab. If you are good in C/C++ you know how to develop classes and why to develop them.
Few caveats however, changes inside the method of any class member does not mean that object has been updated. Remember to return the object itself and re-assign it to iself. Unless you define it as subclass of ‘handle’. http://www.mathworks.com/help/techdoc/matlab_oop/brfylzt-1.html#brfylzt-2
When Pre-Allocating (i.e. array of classes )use the “empty”
have a look at http://www.mathworks.com/help/techdoc/matlab_oop/brd4btr.html#brd4nrh
cygwin/x cannot establish any listening sockets
Running cygwin/x I was facing following error
Cannot establish any listening sockets Make sure an X server isn’t already running
poked around to find what’s happening, firewall was fine and I was on the administrator account, but it appears one has to set the application it-self as “run as administrator”
i.e. go to the XWin file, right click, get the properties, go to advanced and check “Run as administrator”.
fixing MSVCR100.DLL not found
Just download Microsoft Visual C++ Redistributable Package. It will install the MSVCR100.DLL in folder windows\system32.
However I was not able to get MSVCR100D.DLL for the debugging