Archive for January, 2012

3D Reconstruction (I)

January 25, 2012 Leave a comment

Today’s my first test on Bundler
I didn’t use the source cause there are many packages needed to be set up first, so I follow the recommendation using the binary package (
There are some error I encountered cause I carelessly NOT copying the into the the required path. Well this can be easily fixed by changing/adding the dir-path of to your LD_LIBRARY_PATH. In my case, the LD_LIBRARY_PATH is empty, so I simply create this env-variable.

export LD_LIBRARY_PATH=./bin/

This should be the directory path to the, otherwise you will get error that ‘error while loading shared libraries: cannot open shared object file: No such file or directory’.

So read carefully for the ‘Before you begin’ section. Also, if you are trying older version, e.g. v0.2, you will need to change the BASE_PATH for multiple files, such as the sift.txt. Just check if there is BASE_PATH for your ‘TO-DO’.

Find my gtk version on ubuntu
$ dpkg -s libgtk2.0-0|grep ‘^Version’

For the 3D models in Python



# [Vision] Depth estimation from Blur estimation


#Camera Calibration Toolbox for Matlab

# FIT3D”>

# OpenSceneGraph
Install OpenSceneGraph on Windows:
Install on Ubuntu:
apt-get build-dep openscenegraph
apt-get install openscenegraph

openCV and Python

January 24, 2012 Leave a comment

First few things to check out for openCV:

1. Install Open CV on Ubuntu 

2. Cookbook

3. A StackOver Link for using openCV by Python


       sudo apt-get install python-pygame
Here’s a start-up example 🙂
Categories: Image Processing, Python

Use Classic Desktop for Ubuntu 11.10

January 23, 2012 Leave a comment

Just update Ubuntu to 11.10. I was afraid that Unity desk cause I don’t like it very much. It’s so hard to find things and get installed software organized. Thanks God, you can  choose whether to use the unity desktop or the classic version. Just click the ‘gear’ button when you login into your account, change the default ‘unity’ back to classic version. Then you are all set.

I use the classic desktop for 11.04, and back that time I did install the some gnome related package. If you can’t find the ‘gear’ option. Try this:





Categories: Ubuntu

Useful links for AWS

January 20, 2012 Leave a comment

Some useful links for AWS:


  • Use Bootstrap Actions to do the configuration
  • All jobs should be mapper+reducer, no mapper only jobs in AWS, so use a ‘pass-through’ as your reducer

Distributed cache file for ElasticMapReduce

January 19, 2012 Leave a comment

The cache-file option provides a good way for using AWS Elastic MapReduce when you have extra data (rather than input data — where input data will be processed via stdin to mapper) , such as parameter file or other kind of information. Also using GZipped input in the extra arguments to let Hadoop decompress data on the fly before passing data to mapper: -jobconf stream.recordreader.compression=gzip . Here’s an example of how to specify the cache-file in boto:

mapper = 's3://<your-code-bucket>/'
reducer = 's3://<your-code-bucket>/'
input_mr = 's3://<your-input-data-bucket>'
output_mr = 's3://<your-output-bucket>' + job_name

step_args = ['-jobconf', 'mapred.reduce.tasks=1', '-jobconf', '',
             '-jobconf', 'stream.recordreader.compression=gzip']


step = StreamingStep(name = "my-step", mapper = mapper, reducer = reducer, input = input_mr, output = output_mr, step_args = step_args, cache_files= cache_files)


Using Bootstrap for AWS

January 18, 2012 Leave a comment

Some limitations of AWS:It was dated Jan, 2011, not test it for the current system. But I guess I have to pay attention to or test it a little bit.


1. Not good for input data > 5GB
2. Not running more than 20 instances.

boostrap is really a noisy thing for me, since it’s hard to predict the output. Here’s the code for installing R(randomForest), Python(simple json).

# turn on logging and exit on error
set -e -x

#Install easy_install
sudo apt-get install python-setuptools

sudo easy_install simplejson

#debian R upgrade The R version used by Amazon is really old. The solution is to update it with the following script
echo "deb lenny-cran/" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t lenny-cran install –yes –force-yes r-base r-base-dev

echo "install.packages(‘randomForest’,repos=’‘)" | sudo R –no-save

Categories: Uncategorized

The triple of Clustering

January 6, 2012 Leave a comment

PAKDD workshop on “Multi-view data, High-dimensionality, External Knowledge: Striving for a Unified Approach to Clustering”

Figure 1 – Concept map of major research themes in advanced data clustering