[Digikam-devel] Adjusting filters to be deterministic

Martin Klapetek martin.klapetek at gmail.com
Thu Jun 17 13:00:27 BST 2010


Hi,

JulienN raised a good idea in comments under my blogpost. Rewrite the
filters to be deterministic and thus fully reproducible. This would help a
lot for non-destruct. editng. I would go with leaving the random init part,
but alter the filters in such way, that we can store the output values and
reuse it later with those exact same values to get an exact same output.

The benefits would be quite big for NDE as now the concept is such, that
with using any non-reproducible filter, new file must be created to preserve
this exact output and also, any edit you did prior that will be unremovable
without losing this output. Example: you use brightness, contrast and
raindrops and then some other filters. Now you see that the initial
brightness is not very good so you want to change/remove it. But if you do
so, you must reapply all the filters in the stack which are after
brightness. But since you can't reapply the raindrops, you need to lose this
and that means you will lose any other edits you did after raindrops too.

What do you think? Would it be possible to alter all the filters so they
could be reproduced to get the exact same output? I don't have very good
code knowledge of them.

Marty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20100617/e2507897/attachment.html>


More information about the Digikam-devel mailing list