Greyscale Approximation

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 (c, c, c)) vector (c1, c1, c1) which length is approximated by nearest level: