그레이로 만드는 방법
1. lightness : (max(R, G, B) + min(R, G, B)) / 2
2. average : (R + G + B) / 3 (가장 간단하고 저렴한)
3. luminosity : 0.21 R + 0.72 G + 0.07 B(사람의 눈이 빛에 반응하는 민감도에 따라)
- BT709 Greyscale : Red: 0.2125 Green: 0.7154 Blue: 0.0721
- RMY Greyscale : Red: 0.5 Green: 0.419 Blue: 0.081
- Y-Greyscale (YIQ/NTSC): Red: 0.299 Green: 0.587 Blue: 0.114
- 추가 : http://jscience.org/experimental/javadoc/org/jscience/computing/ai/vision/GreyscaleFilter.html
이중 가장 맘에 드는걸로 선택
Original image | ![]() |
Lightness | ![]() |
Average | ![]() |
Luminosity | ![]() |
관련 링크 -> http://www.johndcook.com/blog/2009/08/24/algorithms-convert-color-grayscale/
자세한 색상 정보
관련 링크 -> http://www.johndcook.com/blog/2009/08/24/more-on-colors-and-grayscale/