On Sep 24, 2006, at 5:24 PM, Theodore H. Smith wrote:

Firstly... I think you should give up.

Unless you want a slow solution.

Or do it in C, and be prepared to use some mind bending algorithms to optimise it ;)

It's not going to be fast in RB, that is all. You need low level access for it to be fast. You could petition for RB to have C-like pointers, perhaps... and to get pointer access to pictures also. And an optimising compiler that is good at optimising pointer code.

While doing this in a C Plugin would have the fastest results, I am sure that there are a lot of optimizations which can be done within REALbasic.

I was just thinking that if you sample down the two source pictures before evaluating the pixels, you would get done a lot faster (but with less accurate results). For example, the iSight camera gives output at 640x480... you could scale it down to a 256x192 picture and your code might run approximately 625% faster than the original. Scale it down to 128x96 and your code might run approximately 2500% faster than the original.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to