Re: SuperScale2x - Algorithm Preview
This algorythm don't work for all type of resizes. It only work for 2x, 4x and maybe 8x (if adapted).
The best algorythm is HQ2X : http://www.hiend3d.com/hq2x.html
http://www.hiend3d.com/img/mailbox_original.gif http://www.hiend3d.com/img/mailbox_nn2x.gif http://www.hiend3d.com/img/mailbox_hq2x.gif
original - neighbor resize - HQ2x
It could be better LIJI if you can use HQ2X algorythm instead of SuperScale2x :)
Demo :
http://www.hiend3d.com/img/sq_nn2x.png http://www.hiend3d.com/img/sq_scale2x.png http://www.hiend3d.com/img/sq_hq2x.png
Neighbor - scale2x (like superScale2x) - HQ2x
Re: SuperScale2x - Algorithm Preview
Wow, that does look much better, especially when you enlarge the pictures if you have old eyes ;)
Re: SuperScale2x - Algorithm Preview
That looks brilliant, Sphax!
Re: SuperScale2x - Algorithm Preview
HQ2x has its disadvantages.
The contrast is not variable and sometimes it will cause blurry images. (You can see one blurry part in the Yoshi picture, the shade of the ground)
Also HQ2x forces anti aliasing when sometimes it's un-needed and even disturbing.
P.s. SuperScale2x is my algorithm. ;)
As shown in the first examples it's much better than the original algorithm and it also does the square example better (It won't mix the colors, as if someone wanted them to be mixed he would mix the from the first place in MMF2 applications! :D
Re: SuperScale2x - Algorithm Preview
Maybe you can implement both with a property option ?
Re: SuperScale2x - Algorithm Preview
I find it easier to write my own code than using existing code when it comes to C++.
Re: SuperScale2x - Algorithm Preview
It'd really be nice to have both. SuperScale2x looks nice and I suppose it can be faster. But HQ2x looks much cleaner, and I actually like that it mixes the colors (*hint* option? *hint*).
Re: SuperScale2x - Algorithm Preview
I will try to add *hint* mixing support to the algorithm, I'll see what I can do.
Edit: Implemented :)
Re: SuperScale2x - Algorithm Preview
Re: SuperScale2x - Algorithm Preview
How will this be implemented? I mean, what are the plans for it? Will it be an extension like Image Manipulator?