Archive

Archive for January, 2012

3D Reconstruction (I)

January 25, 2012 Leave a comment

Today’s my first test on Bundler http://phototour.cs.washington.edu/
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 (bundler-v0.3-binary.zip).
There are some error I encountered cause I carelessly NOT copying the libANN_char.so into the the required path. Well this can be easily fixed by changing/adding the dir-path of libANN_char.so 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 libANN_char.so, otherwise you will get error that ‘error while loading shared libraries: libANN_char.so: 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
http://wiki.python.org/moin/NumericAndScientific
Blender.org
http://www.vrplumber.com/py3d.py
http://make3d.cs.cornell.edu/

# http://se.cs.ait.ac.th/cvwiki/matlab:tutorial:3d_reconstruction_with_calibrated_image_sequences#section_23d_reconstruction

# http://www.timzaman.nl/?lang=en

# [Vision] Depth estimation from Blur estimation

# http://www.timzaman.nl/?p=495&lang=en
http://www.timzaman.nl/?p=179&lang=en
http://www.timzaman.nl/?p=501&lang=en

#Camera Calibration Toolbox for Matlab
http://www.vision.caltech.edu/bouguetj/calib_doc/htmls/links.html

# FIT3D
http://www.fit3d.info/”>http://www.fit3d.info/

# OpenSceneGraph
Install OpenSceneGraph on Windows: http://dwightdesign.com/2009/05/installing-openscenegraph-280/
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

pygame

       sudo apt-get install python-pygame
Here’s a start-up example 🙂
OpenEXR
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:

http://www.liberiangeek.net/2011/08/return-to-ubuntu-classic-desktop-in-ubuntu-11-10/

 

 

 

 

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>/mapper.py'
reducer = 's3://<your-code-bucket>/reducer.py'
input_mr = 's3://<your-input-data-bucket>'
output_mr = 's3://<your-output-bucket>' + job_name

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

cache_files=['s3://<your-cache-file-bucket>/randomForest-model-1.txt#rf1.txt',
              s3://<your-cache-file-bucket>/randomForest-model-1.txt#rf2.txt']

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

[Refs]
Distributed_cacheFile
http://blog.tophernet.com/2011/10/importing-custom-python-package-in.html
http://docs.amazonwebservices.com/ElasticMapReduce/latest/DeveloperGuide/DistributedCache.html

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.

Ref: http://www.vitaliykulikov.com/2011/01/hadoop-map-reduce-programming-linux_11.html

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).

#!/bin/bash
# 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 http://streaming.stat.iastate.edu/CRAN/bin/linux/debian 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=’http://cran.r-project.org‘)" | 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