This is a question for those who knows C++, Krita and QT. I’m getting negative values with a code I’m using, and I"m not seeing any possible way to fix it.
- More details here - https://phabricator.kde.org/D13383
-Equations here - http://www.pegtop.net/delphi/articles/blendmodes/quadratic.htm
See the picture. All negative values, and I do not know how to fix this issue. Freeze and Heat works just fine and dandy only in 8-bit integer. But elsewhere besides LAB? Don’t get me started.
I know that mathematically, there will be negative values, and I have tested to verify that’s the issue, but is there a way out of that? They function great on 8-bit.
On excel, I got a value of -11531356.75 with two different channel value.
If I can somehow force numbers to be at 0-255 range, and round digits to ,1. That would definitely solve the issue. There would less dark colors as a result and comes out looking a bit more like the 8-bit result.
EDIT: I believe I am one step closer to solving this. I figured out how to force numbers to be in 8-bit form. Also, I think I might create 1-bit, 2-bit, 3-bit,4-bit,5-bit… blending modes in light of this finding. I know using this will add into posterization, but that can be solved easily.
EDIT: Nope, I gotten -inf…