Powered by Blogger.

Tuesday, September 8, 2009

Compile Opencv with Mac os Snow Leopard 10.6

Today i try install OpenCv in my MacOs Snow Leopard 10.6 and have this error:

error: CPU you selected does not support x86-64 instruction set

The searching in google have the solution

go to opencv folder and edit configure file, searchi prescott and replace the line

DEFAULT_CXXFLAGS="-g -march=prescott -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"

with this:

DEFAULT_CXXFLAGS="-g -march=i686 -m32 -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"

But when i try to compile i have other error i now looking for how to resolve it

Now i can install opencv lib with macport!!!
Published: By: David Millán Escrivá - 5:47 PM

Thursday, July 16, 2009

Exuberant CTags and OpenCV with Vim. Thanks Piponazo!!

Piponazo have a wonderful spanish tutorial explianing how use Exuberant CTags in vim with a opencv as example and some tips for correct import ctags of opencv.

Exuberant Ctags tutorial. "La plaga Tux"


Thanks Piponazo.
Published: By: David Millán Escrivá - 2:02 PM

Wednesday, March 25, 2009

The basics of background substraction

This tutorial explain the basics of background substraction. First of all we need define what is a background and what is a foreground.

We consider a background the pixels of image without motion. And a foreground the pixels with motion. Then the simplest background model assume each background pixel his brightness varies independently with normal distribution. Then we can calculate our statistical model of background by accumulating several dozens of frames and his squares, this is:

$latex \displaystyle{S(x,y)=\sum_{f=1}^N p(x,y)}$
$latex \displaystyle{Sq(x,y)=\sum_{f=1}^N p(x,y)^2}$

Published: By: David Millán Escrivá - 5:20 PM