I wanted to create a simple but mesmerising mobile game, after graduated from my Master degree. But I decided to put everything in back burner, since I struggled to create art style and music myself (yes, I tried to code, draw, and compose everything on my own as part of the learning process). Continue reading

# coding

# Calculating angle and direction between two vectors

Standard

Normally, if we were to find the angle between two vectors, say **up-vector** and **dir-vector**, what we would do is to do a dot product between them. Since

and

However, since the calculated angle is the smallest / nearest angle between the two vectors, we can’t derive the (rotational) direction of one vector from the other. Thus in the following figure, it’s hard to figure out whether the **direction vector** is on the left or right of the **up vector**. The angle between two vectors calculated using dot product is always between 0° to 180°, thus we are not able to derive the direction from it. Continue reading

# Simple and fast Gamma Correction on OpenCV

Standard*Sorry for the shilling, but here’s my upcoming project:*

*https://plusplusone.herokuapp.com*

*Please register your email address if you’re interested in it.*

I’m amazed at how hard it is to find a simple and fast gamma correction code on OpenCV.

# Object segmentation using back projection

StandardI was frustrated while trying many ways to train my SVM and translating math equations into computer programs so that I could detect human in better ways. So I decided to do something random, like this:

# 3D Flock Simulation

StandardA small 3D flock simulation developed by my friend and I. It’s an extension of normal 2D flock simulation, done in Processing.

# Simple head tracking

StandardThis is a very simple head-tracking using OpenCV and only Viola Jones’ face detection framework.

Basically the idea is to use face / head tracking to create an immersive 3D experience. This, is of course is still a very early prototype.

I whipped this up in less than an hour, so it’s very dirty and lack of any optimization. You can make the whole thing faster using CamShift algorithm, and some cleanup on the OpenGL codes.

Have fun ! Continue reading

# Visualizing trade connections

StandardAnother one of my projects, used to visualize trade connections between countries using data from UN

It should be easy to be modified to visualize other data which involves several countries.

You can find the source code here