Quote:
Originally posted by scharfis_brain
I don't see any solution!
upsize using with something better than pointresize to 2x & 2y.
then shift by the desired vector and to a point-downsize to the original resolution.
|
I've already tried something like this with (1/2,1/2--> too much) and then with (1/4,1/4--> closer):
ox = clip.width
oy = clip.height
qx = clip.width * 4
qy = clip.height * 4
orig = clip.ConvertToRGB()
clp = orig.Lanczos4Resize(qx, qy).crop(0,1,-1,0).addborders(0,1,1,0).ConvertToYV12().LanczosResize(ox, oy)
shift = orig.Lanczos4Resize(qx, qy).crop(1,0,0,-1).addborders(0,1,1,0).ConvertToYV12().LanczosResize(ox, oy)
...but still I can't find the right vector (that maybe has different components, like (x,y) ) and the speed loss is already excessive.
I suppose that a fast "shiftVector()" plugin doesn't already exist, isn't it?