Wednesday, February 11, 2009

Video screen shots in Linux

I recently had to do a video of a rotating 3D reconstruction.

The simplest thing that worked out of the box was a utility called recordMyDesktop:

http://recordmydesktop.sourceforge.net

Easy to install & use, at least in Gentoo. The way I used it was simple:

recordmydesktop -x X_pos -y Y_pos -width WIDTH -height HEIGHT -o foo.ogv

play it with

mplayer foo.ogv

Mplayer/Mencoder can also be used to convert it to any other video format if you want, e.g. to AVI:

mencoder -idx input.ogv -ovc lavc -lavcopts vcodec=mjpeg -oac mp3lame -o output.avi

I also need to generate an animated GIF. Here's how:

mplayer input.ogv -vo gif89a:output=output.gif:fps=5 -vf crop=850:562:17:99 -frames 999

If you use the input from the OGV file (not AVI), the quality will likely be better.

You can nonlinearly edit the video by opening the GIF in GIMP and deleting the frames you don't want as layers, then saving it. If you want to alter the speed, make sure you set this during the export and make sure you check the box that tells GIMP to override the default frame delays. You can also use GIMP to crop your video further.

To play your GIF animation, just open it in firefox or any browser.

Friday, January 23, 2009

Ignoring Mortality We Worship Mediocrity

This video is a good inspiration for us to gain courage to be innovative and bold I'm trying to build up the courage to grow a mohawk -:^) Only then I will feel like I'm truly living up to my ideals.

Tuesday, January 13, 2009

Happy 2009

Got married in December! I am now a man with responsibilities, another reason I've been studying for my prelims now. Need to finish my PhD! Among the subjects, I've picked differential geometry and complex analysis as a minor. Reviewing math after some motivation from research feels really productive. And, man, times have changed - during my PhD years I've witnessed the rise of core information technologies such as Youtube & Wikipedia (sounds already like grandpa talk!). What great tools to study math with. Check out this video on mobius transformations (related to homographies in projective geometry): Which goes back to support an old point of mine: computer technologies have an explosive (exponential) effect in improving society.

Tuesday, December 09, 2008

Optimal 3D Triangulation Code

The source code (in C) for a recently published optimal 3D triangulation / reconstruction algorithm can be found at:

http://www.iim.ics.tut.ac.jp/~sugaya/public-e.html

The method supposedly does not have the singularities of the widely-used Hartley-Sturm algorithm, and was developed by K. Kanatani, Y. Sugaya, and H. Niitsuma.

Thursday, December 04, 2008

Monday, December 01, 2008

VxL code browsing in ViM

When working with a huge codebase, its nice to be able to browse
through the code lying in different directories.
Most other sites about ctags only deal with files in the same
directory, though.
I use vxl.sf.net, which consists of a huge source tree of C++
libraries, headers, and templates.
Here is my solution:

I installed exuberant-ctags (make sure this is the one in your system),

then I issued the following command:

ctags -R vxl lemsvxlsrc

from the directory containing the vxl source tree 'vxl' and the
internal Brown 'lemsvxlsrc' tree.
This generates a tags file. Now, tell VIM to always use that by
setting a tags search path:


" Set the tag file search order
set tags=./tags,tags,~/tags,/home/rfabbri/cprg/vxlprg/tags

You can add the above line to your ~/.vimrc or, even better, to a file
in ~/.vim/ftplugins/cpp_xxx.vim, where xxx is a custom extension you
choose.

Tuesday, October 28, 2008

Windows partition deleted.

Never used it, never needed it, never respected it. Now let me pump up my Linux environment with the Windows carcass left in my harddrive :-)

Pós-doc e Pós-grad na USP

Altamente recomendado!
Sem duvida o melhor grupo cientifico em que ja estive :)

==========================
OPORTUNIDADES PARA PÓS-GRADUÇÃO E PÓS-DOUTORADO
GRUPO DE COMPUTAÇÃO INTERDISCIPLINAR, IFSC-USP
Outubro de 2008 a Maio de 2009

Comunicamos diversas possibilidades para pesquisa, a nível de
pós-graduação e pós-doutorado, no Grupo de Computação Interdisciplinar (GCI)
do IFSC-USP. As principais áreas de pesquisa incluem mas não se limitam a:
1. VISÃO E IMAGENS
2. INTELIGÊNCIA ARTIFICIAL
3. REDES COMPLEXAS
3. BIOINFORMÁTICA E BIOLOGIA DE SISTEMAS
4. COMPUTAÇÃO DE ALTO DESEMPENHO
5. SISTEMAS DISTRIBUÍDOS E GRIDS
6. REDES DE COMPUTADORES
Os candidatos poderão ter formação anterior em computação, informática,
física, matemática, engenharia, estatística, química ou bioinformática.
Os trabalhos de pesquisa serão desenvolvidos nas respectivas áreas de formação
dos candidatos. As possibilidades de pós-graduação incluem o IFSC (nível 7
CAPES) e Bioinformática da USP (nível 5 CAPES).

PARA INFORMAÇÕES ADICIONAIS, visite a página
http://cyvision.if.sc.usp.br/~francisco/comp_inter/index.html

Thursday, October 16, 2008

John Maeda talk at Brown

The new RISD president, and former MIT Media-Labber John Maeda spoke
today at Brown.

It was an interesting experience, more of a light sequence of simple
facts that did the job of kepping people entertained; I feel nobody
was profoundly illuminated.
But maybe that's exactly the message - life simple facts and tidbits
can be more important than they seem. But at the same time it does
bring a sense of unfulfilment and apathy towards getting
anything explained, nailed down, or thoroughly illuminated. I had a
simple mild positive reaction to it. Simplicity and mediocrity
inevitably must have something in common. Its much like short Tao
wisdom.

One of his little ideas that really shook me was the fact that
technology is kind of saturating in the 21st century, and that what we
really need is more human reality, sensibility, and creativity into
our lives.
That's pretty much true. As a computer vision scientist, I think we
already threw hardware at problems a lot, and although it does bring
insights and immediate results, what we really feel the need for is
some human spark, human care, and human design to actually get
algorithms to be smarter, faster, and solve the innumerous problems
that fundamentally weren't solved before. Yes, like the vision
problem.

Friday, July 18, 2008

Pics of my dog, Eve.

She's a Beagle mix, but a very beautiful one probably a Beagador.

Wednesday, July 02, 2008

Congrats to my Angie

Angie just told me she scored straight A's this semester. A great feat!

Sunday, May 18, 2008

Augmented Virtual Reality in your Phone

Another awesome application of computer vision being materialized - point your cellphone's camera into the environment, and have it augment the video stream by tagging the buildings, restaurants, and attactions for you:
Enkin on Vimeo.

Wednesday, May 14, 2008

[linux] CVS server issue + solution

I was trying to use my computer to serve a CVS repository. Should be
simple as connecting through SSH,
but I was getting the error "unknown command server" whenever I typed
"cvs up -d"

The solution in Gentoo Linux was to re-emerge CVS with the server flag
enabled, which can be done by adding the line "dev-util/cvs server" to
/etc/portage/package.use

Monday, April 28, 2008

The Rise of Computer Vision

Computer vision, automatic image analysis applications, panoramic and
3D reconstructions, face recognition...
all this has attracted more and more attention in the press. Its is
always good to remind readers that this area remains largely unsolved,
and that it is very easy to claim something can be done and to talk
about it, but actually get it working is really really hard.

Some recent major news articles (on basic stuff without details)

A Google Prototype for a Precision Image Search
http://www.nytimes.com/2008/04/28/technology/28google.html?_r=2&oref=slogin&oref=slogin

Next-Generation CAPTCHA Exploits the Semantic Gap
http://tech.slashdot.org/article.pl?sid=08/04/23/0044223&from=rss

Lyrics of the day

Operation Ivy - Healthy Body Sick Mind

Expensive vitamin pills and wheat germ on your windowsill
Your schedule's hectic and you've got no time to kill
Earning money and you're spending it the right way
Just in such a rush you don't know if it's night or day
5:30 get up, run, run, run
Then you work eight hours slaving under the gun
Your little world's based on lies lies lies
Always rushing but you're never ever satisfied
Healthy body, Sick mind (working overtime)
Healthy body, Sick mind (Too hectic too hectic)
Healthy body, Sick mind (why don't you just survive)
Its just a matter of time sick body sick mind
The money you spend on running shoes could feed me for a week
Your plans are laid so well you can't even sleep
Pursuit of happiness got your life locked up under martial law
You got everything to lose so you're paranoid about some fatal flaw
5:30 get up and you run, run, run
Then you work eight hours slaving underneath the gun
Your little world's based on lies lies lies lies lies lies lies
Always rushing but you're never ever satisfied
Healthy body, Sick mind (working overtime)
Healthy body, Sick mind (Too hectic too hectic)
Healthy body, Sick mind (why don't you just survive)
Its just a matter of time Sick body Sick mind

Tuesday, April 01, 2008

True Happiness

This is a really inspiring video. It is pretty much the way I like to intuitively think about deep things in life, but hearing such a reasonable person speaking about it really made an impact on me. You should really watch the whole thing!

Tuesday, February 19, 2008

Just a funny pic

This is my niece Sara