jwagner / smartcrop.js

Content aware image cropping

Home Page:http://29a.ch/2014/04/03/smartcrop-content-aware-image-cropping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CIE Transformation: Why are custom values used

jrast opened this issue · comments

As I understand the Code, the cie function is used to transform the RGB image to grayscale. Why are custom values used and not the default ones, for example provided on the wikipedia page, which would be

0.2126 * R + 0.7152 * G + 0.0722 * B

return 0.5126 * b + 0.7152 * g + 0.0722 * r;

https://en.wikipedia.org/wiki/Grayscale

Sorry, just seen issue #77 which asks exactly the same question...