RSS
 

Convert Polar image into Cartesian

26 Nov

This a simple implementation of Polar to Cartesian transformation applied to the image case. It is useful to unroll an omni image to convert it to panoramic image.

imgPol = cvCreateImage(cvSize(2*CV_PI*RadiusMax,RadiusMax-RadiusMin),IPL_DEPTH_8U,1);
cvSet(imgPol,CV_WHITE,NULL);
int x0,y0;
double Radius;
double Angle;
for(int x=1; x < imgPol->width; x++)
{
	for(int y=1; y < imgPol->height; y++)
	{
		Radius = RadiusMin + y;
		Angle = 2 * CV_PI * x / imgPol->width;
		x0 = cvRound(CenterX + Radius * cos(Angle));
		y0 = cvRound(CenterY + Radius * sin(Angle));

		cvSet2D(imgPol, y, x, cvGet2D(imgBase,y0,x0));
	}
}

cvSaveImage("imgPol.bmp",imgPol);
 
3 Comments

Posted in OpenCV

 

Solving Lenovo Thinkpad X200 audio problem

23 Nov

To solve the Lenovo Thinkpad X200 audio problem, you have to know first that it is equipped of Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03).

Following this steps solved my problem:
1. type in terminal.

gksu gedit /etc/modprobe.d/alsa-base

2.add the following to the end of the file

options snd-hda-intel enable_msi=1

I hope that helps somebody.

 
No Comments

Posted in Ubuntu

 

My own chat robot

23 Nov

My specialty is robotics, but this time I made another kind of robot: it is a chat robot.
The idea is simple. you chat with my robot in any Jabber client like Google talk.
You can try to add “kristou@bot.im” to the list of your friends and start a conversation.

For the moment, it is just simple. I made it only as a proof of concept and to have a hand on.
If you like it, or you think it is useful. just drop me a comment and I will try to implement it.

This bot also work on Twitter, Facebook, MSN messenger, Yahoo messenger, AIM…

For the moment only Jabber network is working. If you want to try it with above networks just let me know.

 
 

OpenGL tutorial

21 Nov

I like this tutorial. So I wanted to share it.

httpvh://www.youtube.com/watch?v=lTN7bDyHrfE

 
No Comments

Posted in Computer

 

Online Visio or drawing tool

19 Nov

Cacoo is a user friendly online drawing tool that allows you to create a variety of diagrams such as site maps, wire frames, UML and network charts. Multiple users can edit the same diagram in a simultaneous collaboration.

Below is an example, click on the edit icon down of the diagram and modify it. Don’t forget to save. Let ‘s see what it will be ;-)

[cacoo width="600" height="450"]https://cacoo.com/diagrams/UftbxRF0iN9CK806[/cacoo]