CamanJS icon indicating copy to clipboard operation
CamanJS copied to clipboard

Luminance differs between Calculate.luminance and Filter.threshold

Open mknecht opened this issue 10 years ago • 0 comments

Calculate.luminance() calculates a differing luminance than Filter.threshold(), rendering either one of them unusable if used in combination.

https://github.com/meltingice/CamanJS/blob/master/src/core/calculate.coffee#L27 https://github.com/meltingice/CamanJS-Plugins/blob/master/src/threshold.coffee#L3

Please use the former in the latter. Cost me quite a bit of time to notice differing luminance calculations.

mknecht avatar Sep 26 '14 00:09 mknecht