Page 2 of 2

Re: Fast method for counting RGB values of an image

Posted: Mon Feb 10, 2020 2:32 am
by capellan
Just for curiosity, Could a LC Builder function works faster than Javascript?
I don't know how to use LC Builder so I could not test myself...

Al

Re: Fast method for counting RGB values of an image

Posted: Mon Feb 10, 2020 4:19 am
by [-hh]
With accessing single bytes of imageData it is even slower than LC Script...

Re: Fast method for counting RGB values of an image

Posted: Mon Feb 10, 2020 8:40 pm
by capellan
Oh... Then if we put the imagedata in a variable,
and use LCB to make the conversion of binary data
this is still slower than LCS. :shock:

When is LCB faster than LCS?

Al

Re: Fast method for counting RGB values of an image

Posted: Mon Feb 10, 2020 9:00 pm
by [-hh]
Related to images LCB is at least as fast as LCS when drawing rectangular blocks of images and is faster with deliberate affine transforms of images.
Moreover LCB has features that you don't have in LCS, e.g. (sub-pixel) drawing of affine transformed pathes, especially SVG Pathes.
LCB is still far apart from but on the way to deliver the excellent HTML5 canvas operations.