RSS
 

Archive for November, 2009

OpenCV: Accessing Pixels

07 Nov

In order to access pixels, there is some ways to do that, for example:

uchar *ptr;

ptr = cvPtr2D (image, x, y);

// for 3 channels image
ptr[0] = 255; // blue
ptr[1] = 0; // red
ptr[2] = 0; // green
ptr[3] = 0; // alpha

the example above you will color your image to Blue. the same way you can read the value as:

BlueValue = ptr[0];
RedValue = ptr[1];
etc….

hope it helps somebody.

 
No Comments

Posted in OpenCV

 

An animated show folders in the Quick Look

05 Nov

Hardly one of the users of OS X do not know about the functionality of the Quick Look.
However, few people suspect that Quick Look has an interesting hidden feature that is disabled by default.

Quick Look

This hidden feature is called “regime of x-ray folders”, and it works only in OS X 10.5 and 10.6. After its activation, Quick Look, when viewing a folder, will show not only general information, but also its content.

To activate this mode, simply follow the following:

1. run terminal
2. command defaults write com.apple.finder QLEnableXRayFolders 1
3. command killall Finder

 
No Comments

Posted in MAC OS

 

Eye Detection

04 Nov

eye detection

This web page is showing how to detect eyes using OpenCV’s boosted cascade of haar-like features. Source code, XML eye classifier, and sample images are available for download.

 
1 Comment

Posted in OpenCV

 

Set Up Ubuntu Linux for OpenCV

04 Nov

opencv sample

If you want to setup correctly your OpenCV development environment on Ubuntu. It is worthy to follow the steps described in this website.

 
 

Using OpenCV on iPhone

04 Nov

OpenCV on iPhone

I found a very nice tutorial showing how to use OpenCV on iPhone.
It can be accessed from here