Matlab implementation of Haar feature extraction - matlab

Does anyone know of a (purely) matlab implementation of Haar feature extraction (the kind used in Viola&Jones object detection algorithm)?
(I ran across a matlab binding to Opencv's implementation but this is not what I am looking for)

I came across this code published as part of a Google Summer of Code 2007 project under GNU GPLv2 license.
Face detection for F-spot
Note that I haven't tested it myself, just thought it could be useful for you..

Related

Problems in OpenModelica v1.19.2 when installing OpenHydraulics v1.0.1 with Modelica Standard Lib v3.2

Greeting Everyone, I am a new one here.
I'm a brand new Modelica user. I'm trying to learn the language with OpenModelica. I'd like to use OpenHydraulics which is in github link in OpenModelica (specifically in the OMEdit Connection Editor).
I downloaded OpenModelica v1.19.2 and Modelica Standard Lib v3.2 to browse and run the library OpenHydraulics v1.0.1. However, when I open the Excavator example and try to Instantiate or Simulate the model I get many errors of the form:
[OpenHydraulics.Basic.VariableRestriction: 51:3-54:64]: Function ReynoldsNumber_m_flow not found in scope VariableRestriction.
Could you help me with this problem?
Thanks in advance.
there are a couple of things you need to take into consideration:
The current version of OpenHydraulics is still the original release from almost 10 years ago.
The library was developed using Dymola which at the time also supported a couple of non-standard Modelica, Dymola-specific constructs that other tools struggle to work with.
The example you are trying to run is the most complex one utilizing almost all of the power of the library and hence has quite a high degree of complexity.
Taking all this together means that OpenModelica is bound to struggle with that example. But all is not lost. If you actually look at the more simple circuit examples (under Circuit) you'll find that they work just fine. And depending on your application area they might already demonstrate a usage that will fit your needs.
I hope this helps.

How to implement fixed point operations without Fixed Point Designer Library in Matlab?

I am supposed to work with an existing code in my work and at some places the previous programmer has extensively used Fimath function. Unfortunately, I am not having the license for the Fixed Point Designer toolbox and was looking for some alternatives.
I tried getting the fimath.m file from another source but it is referencing to some embedded libraries in the toolbox.
Is there some other way in which I can bypass this problem?
Thank You

Integrating Matlab with C++

I need to localize facial landmarks as a part of my research project and planning to use Supervised Descent Method (SDM) for that. Both the C++ and Matlab versions are available at the following site and when I contacted them they said C++ version is not going to be available until they secure it. So, I had no other option and had to opt for Matlab version.
http://www.humansensing.cs.cmu.edu/intraface/download_functions_matlab.html
The problem is that My project is in C++ and OpenCV. I wonder whether there is a way to access Matlab version of SDM in Visual C++ . I mean, is there an integration mechanism available for that ?
And, the next issue is when executing the "Facial Feature Detection" code available at the above site I get the following error.
I executed it as given below.
[detected_points] = xx_track_detect(Model,[],image,[],options);
and, it says "undefined function or variable named 'model' "
anyone have a solution to this ?
It seems like you need to use Matlab engine to be able to execute Matlab commands from C++. The engine interface allows you to do just so.
Regarding the model variable - it is probably a representation of the learned model for facial landmarks, it should be supplied with the packge or you need to tune it by yourself. Without additional information I suggest you contact the publishers of the package for more information.

How to train latent SVM model for object detection ? It crashes using Matlab 2012b, Windows 64bit OS

How can I train my own detector under Windows 7 in C++ or Matlab2012b? I do not have Linux or I do not have Mac OSX.
I actually searched for it a lot before writing here. What I got is:
I would like to train my own latent SVM model and use it in C++. I checked out the OpenCV sample, cpp/latentsvm_multidetect.cpp. It works with the existing models.
Authors' website : http://www.cs.berkeley.edu/~rbg/latent/index.html . It is mentioned that the software is tested using matlab2011a under linux and mac osx. However, I run matlab2012b under Windows7 64 bit. The code crashes very often, and I tried to fix the bugs, but I cannot cope anymore.
Is there any other source code which I can use under Windows 7 64bit?
OpenCV : http://docs.opencv.org/modules/objdetect/doc/latent_svm.html . There is no code implementation for training. Only detector can be used to detect the objects with existing models.
On the other hand, somebody else asked the same question. opencv latent svm . However, The question was closed without being answered. Sad!
Also, OpenCV and Latent SVM Detector is similar to my question. I am not satisfied with the answer, I read the same in the README file in the source code in Matlab. It does not help me to overcome the bugs in the source code, if I run under Windows 7. For this question, I wanted to add a comment to ask further, I cannot add because of my reputation (I am new here).
I think, Latent SVM is fascinating and something new to detect the objects. Also, I think this should be a general issue to train our own model easily. It would be nice if anyone can guide.
Anyway, I do not understand why the training part is not implemented in OpenCV with the detector part!
some c++ ones:
http://www.dubout.ch/en/coding.html
http://www.uco.es/~in1majim/proyectos/libpabod/
I have had both working in windows 7 64bit, but does require a little tweaking here and there, the first less than the later.
Also as an aside, you could always try the opencv hog detector first, to see if it is sufficient for your application, you can train it with opencv svm. I found it to be quite good for simple objects that have a well defined and distinct shape.
Cheers
EDIT: Sorry the libpabod is only test time, only the the 1st link has the training code.

free MATLAB environment

I'm learning the MATLAB language and would like to have some kind of free environment to experiment with. The MATLAB environment provided by MathWorks is commercial. There appears to be a trial available, but I can't figure out how to get the trial license.
For the moment, all I need is a command-line and the "standard libraries".
Octave is mostly compatible with matlab: http://www.gnu.org/software/octave/
If you are just starting with MATLAB I would strongly suggest to go the Python path instead (unless there is some very specific reason why you must use MATLAB). The basics (like array / matrix operations) are very similar to MATLAB.
In my current area of work (neuroscience) there is a strong migration from MATLAB to Python. Many groups are making the switch because Python is free and generally more powerful.
The basic packages you will probably need to get started would be numpy (basic array numerics), scipy (more algorithms) and matplotlib (plotting). Since you want to work on the command line I suggest IPython as well.
As already mentioned in another answer there are also some Python distributions which include many packages, like PythonXY, the Enthought Python Distribution, or Anaconda.
There are many tutorials available on the web, search a little and pick one you like.
Look into these:
Scilab
Octave
Sage
Read this blog entry from Ryan Morlok for more info on open source Matlab alternatives.
I'm a big fan of R, but it's not a substitute for Matlab... it's an alternative. There's a big difference!
I was recently enamoured of Python XY. It's not exactly like Matlab but it has many of the same functions and copies the look and feel. I would personally use it if I didn't want to buy a Matlab license though - not if I wanted to practice with a Matlab stand-in.
www.pythonxy.com
Other users have given you the examples that I would have suggested - Octave and Scilab. Of the two, I would say that Scilab is more powerful BUT Octave tries really hard to be source compatible with standard MATLAB and Scilab does not.
So, if your aim is to experiment with a MATLAB like language and learn skills that you will eventually be able to transfer over to MATLAB then I suggest that you stick with Octave.
If you're interested in trying things out in MATLAB directly, there was a recent blog entry on The MathWorks website regarding free trial downloads of MATLAB and its various toolboxes. If you haven't tried contacting them already, the blog links to this page where you can request product trials or, if you already have a licensed product, you can sign in and downloads trials of toolboxes.