Artifact [a02fb48acd]

Artifact a02fb48acd132e05e9779b10d724d51d9ad91a8e:

Wiki page [GreyscaleApproximation] by user 2013-09-01 11:53:30.
D 2013-09-01T11:53:30.782
L GreyscaleApproximation
P 23e5fef3a95e38ea48b6a861a7a6211271fb7ed9
U user
W 591
<h1>Greyscale Approximation</h1>

This filter is based on [Greyscale] but resulting (c, c, c) RGB vector is approximated with one of N levels. Idea is to divide maximal RGB vector length to N levels and to use instead of evaluated length (of vector <b>(c, c, c)</b>) vector (c1, c1, c1) which length is approximated by nearest level:
<verbatim>
Let's use band=2 and our levels will be: 1, 3, 5, 7...
Then numbers 1, 2.7, 3, 4.2 will approximated as: 1, 3, 3, 5
</verbatim>
Example of greyscale approximation with 6 levels is:

<br/><img src="/doc/tip/out/grl.jpg" width="40%"/><br/>
Z 845dcc851019c7788455b2b7fec8635b