wonkey_monkey
10th March 2025, 14:23
This isn't something that particularly interests me, exactly, but after stumbling on something in another thread it got me thinking so I tested it out and thought I'd share the results in case it's of any use.
https://i.imgur.com/ZQjjMLp.png
https://i.imgur.com/p2mw0bu.png
Left: original (nearest neighbour upscale)
Center: 4x JincResize with a silly number of taps (16)
Right: 4x JincResize after limiting based on surrounding pixels
Basically you do the upscale, then do this (probably only works properly on 4:4:4 images right now):
expr(jinc_resized_clip, nearest_neighbour_clip, "
x
y[-3,-3] y[3,-3] y[-3,3] y[3,3] y min min min min max
y[-3,-3] y[3,-3] y[-3,3] y[3,3] y max max max max min
")
Change the 3s to scale-1 if you try other scale factors.
Edit: Just noticed it has puts some spots in the letters which is no good.
https://i.imgur.com/ZQjjMLp.png
https://i.imgur.com/p2mw0bu.png
Left: original (nearest neighbour upscale)
Center: 4x JincResize with a silly number of taps (16)
Right: 4x JincResize after limiting based on surrounding pixels
Basically you do the upscale, then do this (probably only works properly on 4:4:4 images right now):
expr(jinc_resized_clip, nearest_neighbour_clip, "
x
y[-3,-3] y[3,-3] y[-3,3] y[3,3] y min min min min max
y[-3,-3] y[3,-3] y[-3,3] y[3,3] y max max max max min
")
Change the 3s to scale-1 if you try other scale factors.
Edit: Just noticed it has puts some spots in the letters which is no good.