Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Artifact ID: | 7dc3c04a0c8be161b7e9922eb478a17e404786ca |
---|---|
Page Name: | Greyscale |
Date: | 2013-08-31 13:59:55 |
Original User: | user |
Mimetype: | text/x-markdown |
Parent: | 054e11907061ef47aacb9d33ba55350362cce694 (diff) |
Content
Greyscale
The idea is simple too. We should change original pixel color with the another RGB, - (c, c, c) instead of original (r, g, b) components, - but with the same RGB vector length. Formula for this conversion is:
c = RGB_length * sqrt(3), where
RGB_length = sqrt(r*r + g*g + b*b)