Wednesday, December 30, 2009
Wednesday, November 18, 2009
Tuesday, November 17, 2009
Fixing EPS bounding box automatically
save as EPS to include into Latex.
Surprise: Matlab has an awful bounding box space around the figure.
You want to autocrop it but its a vector graphics format,
so you can't use mogrify -trim +repage <filename> as you would normally
do with an image.
Solution: epstool. It does an autocrop for the EPS file:
epstool --copy --bbox input.eps output.eps
and your final plot will still look crisp.
Another option: save as PDF in matlab. Then use ImageMagick's convert to convert it to eps:
convert file.pdf file.eps
this will keep the vector graphics intact (at least in recent versions of ImageMagick).
Of course, you can always use pdflatex instead and avoid EPS altogether.
Friday, October 02, 2009
Thursday, August 13, 2009
Website back up
www.lems.brown.edu/~rfabbri
or, during daytime, you can check:
cortex.homelinux.org
Friday, May 29, 2009
Applets - the geometry of 2 and 3 views
geometry of two and three views.
http://www.ai.sri.com/~luong/research/Meta3DViewer/EpipolarGeo.html
When you press any key, you can drag the 3D point around and sense how
the geometry changes.
Thursday, May 14, 2009
More action in twitter
Because the iphone interfaces to twitter rock. And "twittering" to blogger using gmail — like I'm doing right now — just doesn't sound as cool.
Tuesday, May 12, 2009
2 colors are enough
Monday, April 20, 2009
Google Similar Image Search
Friday, March 13, 2009
Hispanic Immigration & Graphic Design
Thursday, March 05, 2009
Wednesday, February 11, 2009
Video screen shots in Linux
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
Saturday, January 17, 2009
Tuesday, January 13, 2009
Happy 2009
Wednesday, December 10, 2008
Tuesday, December 09, 2008
Optimal 3D Triangulation Code
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
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.

