0xGeorgii/ImageBlendingAlgorithms

Optimize calculation for Threshold based algorithms

0xGeorgii opened this issue · 0 comments

For example

r = 0.5f + (c.R - 0.5f) * 2f;

with

r = c.r * 2f - 0.5f

note: before providing a change this code should be already covered by unit tests to verify the result.