Showing posts with label Programmation. Show all posts
Showing posts with label Programmation. Show all posts

Wednesday, September 1, 2010

Popcode AR for mobile phone


"Popcode is what is known in the trade as a Markerless Augmented Reality platform. That means you can add additional content onto any image (providing it has enough texture). You do not need to print large black-and-white markers to be able to add Augmented Reality (AR) content to the world using Popcode." The product was realized by Extra Reality Ltd.



For the tech side :
The founder are Simon Taylor, Dr. Tom Drummond (The thesis supervisor of Simon) and Connell Gauld (Mobile platform coder expert).

=> They used Fast corder detector, HIPS matching.
I let you see the SDK !

And the demos :

Monday, August 30, 2010

Cardiod lovers


Here the equation of the 3D Cardiod : Cardiod
Let's trying yourself !

Friday, August 27, 2010

OpenCL™ Optimization Case Study: Simple Reductions

This study show that even on the GPU the naive implementation works but a clever scheme could improve the effectiveness of the approach.

The article is well explained with illustration to show each clever idea to use the full SMID machine. It explain how to implement parallel Reduction operation on GPU (A reduce operation with a given predicat => find a min, max ...).

Associative Reduction Tree and SIMD Mapping


Commutative Reduction and SIMD Mapping
Two-stage Reduction
Final code :

__kernel
void reduce(__global float* buffer,
__const int block,
__const int length,
__global float* result) {

int global_index = get_global_id(0) * block;
float accumulator = INFINITY;
int upper_bound = (get_global_id(0) + 1) * block;
if (upper_bound > length) upper_bound = length;
while (global_index < upper_bound) {
float element = buffer[global_index];
accumulator = (accumulator < element) ? accumulator : element;
global_index++;
}
result[get_group_id(0)] = accumulator;
}

Source : AMD

Friday, November 27, 2009

C++ reference, C reference

How obtain a good overview of C and C++ native library. The response is simple search information on good website :

cplusplus Purpose an overview with sample of how use the C/STL functions.

http://cplusplus.com/reference/

You have excellent graph that show the dependencies of each STL module. A forum to ask question, It's pretty cool !

cppreference

This website cannot replace the first one but come in complement. You can see the references in your language if already people have contributed.. It's pretty nice.

Also you have a guide that come in complement to cplusplus.com you have a section General Topics that allow to cover the subjects: Pre-processor commands, Operator Precedence, Escape Sequences, ASCII Chart, Data Types,Keywords, Header Files.

So if you do not know what you can choose between use deque, vector, list, or use which algorithm to perform sort/find operation in array do not hesitate, take a look to this website. You will become a more effective programmer by using the good tools and the algorithm that fit the best the data. ( set container is very usefull after you know for what it is done !).