Liste des Groupes | Revenir à cl c |
On Tue, 19 Mar 2024 11:57:53 +0000
Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
>On 19/03/2024 11:18, Michael S wrote:
>On Mon, 18 Mar 2024 22:42:14 -0700
Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
>Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
Here is the refinement that uses a resizing rather than
fixed-size buffer.
I did a little more investigation gradually modifying Tim's code
for improved performance without changing the basic principle of
the algorithm. [...]
So far, this algorithm is fastest among all "local" algorithms
that I tried. By "local" I mean algorithms that don't try to
recolor more than one pixel at time.
>
"Non-local" algorithms i.e. yours and my recursive algorithm that
recolors St. George cross, are somewhat faster, [...].
The nice thing about Tim's method is that we can expect that
performance depends on number of recolored pixels and almost
nothing else.
The second nice thing is that it is easy to understand. Not as
easy as original recursive method, but easier than the rest of
them.
>
If you or somebody else is interested, here is [micro]optimized
variant: [...]
Les messages affichés proviennent d'usenet.