To consult the algorithm of photocopy filter

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

To consult the algorithm of photocopy filter

luming@shangyuekeji.com
Dear all developers:
    I want to consult the algorithm details  of photocopy filter in photocopy.c, especially the paper or description. I don't understand the algorithm although I have read the description in photocopy.c.
    Thank you.



[hidden email]
_______________________________________________
gimp-developer-list mailing list
List address:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list
Reply | Threaded
Open this post in threaded view
|

Re: To consult the algorithm of photocopy filter

Liam R E Quin
On Mon, 2019-07-15 at 10:57 +0800, [hidden email] wrote:
> Dear all developers:
>     I want to consult the algorithm details  of photocopy filter in
> photocopy.c, especially the paper or description. I don't understand
> the algorithm although I have read the description in photocopy.c.
>     Thank you.

Note, this is a gegl fillter; i don't know if there is a specific
paper.

it looks like it does (more or less)

(1) make two blurred copies of the input with different radii
(2) use these to make a histogram to count values & determing a
threshhold
(3) for each input pixel, if the corresponding blurred value is less
than the computed threshold, make it black (0 value) else make it
brighter.

Liam (slave ankh)


--
Liam Quin - web slave for https://www.fromoldbooks.org/
with fabulous vintage art and fascinating texts to read.
Click here to have the slave beaten.

_______________________________________________
gimp-developer-list mailing list
List address:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list