View Single Post
Old 14th April 2012, 09:11   #5  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by IanB View Post
PointResize implements the nearest neighbour algorithm
Something I've been meaning to point out for some time is that PointResize isn't strictly 'nearest' neigbour, as it is biased to one side.
A nearest neighbour kernel would look like this:
Code:
   --------
  |       |
  |       |
  |       |

-0.5  0  0.5
PointResize effectively has this:
Code:
  --------
 |       |
 |       |
 |       |

-1       0
Essentially, this is the root of the different behaviour between RGB and YUV with vertical PointResize.

Interestingly, in light of your other comment,
Quote:
GaussResize at it's sharpest P setting is a PointResize.
GaussResize(P=100) does provide a true nearest neighbour.
__________________
GScript and GRunT - complex Avisynth scripting made easier

Last edited by Gavino; 14th April 2012 at 10:13. Reason: amend diagrams
Gavino is offline   Reply With Quote