if binaryEncode allowed using an array (like binaryDecode(C*), the imagedata of img "myImg", outArray) instead of a predefined list of variables, then it would be possible to use array multiplication to extract and compare parts of an image e.g. multiply by [1,0,0,0] for alpha, [0,1,0,0] for red, etc. But it is not possible and running the loop to convert imageData to an array will be a major speed limitation anyway.

Some time ago I filled up an enhancement request http://quality.runrev.com/qacenter/show_bug.cgi?id=7636 . Or as said above a feasible alternative would be possibility to use arrays or at least lists in binaryDecode.

Viktoras

Alex Tweedly wrote:
Richard Gaskin wrote:
I have nothing to contribute to this thread other than to say thanks.

It's these types of discussions that make this list so valuable, in which all of us get a change to explore different algorithms and learn a lot along the way.

I've been expecting Alex Tweedly to jump in with some clever use of arrays for an order-of-magnitude speed increase, as he's done so many times before. :)

:-)

I'm on holiday - otherwise I'd be trying to contribute something to this interesting task.
Hmmm - now I need to find a way to use arrays ...

-- Alex.
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to