Emanuele Zattin <[EMAIL PROTECTED]> writes:
> my name is Emanuele Zattin and i'm developing a plug-in implementing
> a texture synthesis algorithm described in a paper ("Texture
> Synthesis by Non-parametric sampling" by Efros and Leung). Here
> attached you can see my actual implementation which works on
> grayscale images. It is anyway VERY slow, which was anyway
> predictable judging from the complexity of the algorithm. I was
> wondering if translating it to C would make it much faster or if
> there are some more speedup techniques i'm just missing.
You could try to speed it up by optimizing your pixel accessors.
Perhaps use a RowIterator as is done in the colorxhtml plug-in?
Gimp-developer mailing list