Convert to grayscale with arbitrary weights :
here
↓元画像
↓r+g+b/3
↓r*0.2989+g*0.5970 + b*0.1140 (cf.
stackoverflow
)