ScanTailor-Advanced / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
189 stars 7 forks source link

[Feature request] RIS #49

Open zvezdochiot opened 1 year ago

zvezdochiot commented 1 year ago

Hi @vigri and @lightsilverberryfox .

Interested in using RIS (Reverse Interpolate Scale) instead of normal scaling.

I0 = image{w0,h0}
// RIS begin
I1 = Interpolation(I0,{w0,h0}->{w1,h1})
I2 = Interpolation(I1,{w1,h1}->{w0,h0})
k = sqrt(2.0f) * 0.5f // == 0.70710678f
I0 = I0 + (I0 - I2) * k // this RIS prefilter!
// RIS end
I1 = Interpolation(I0,{w0,h0}->{w1,h1})

See also: