















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Warp Source Image
Destination Image
u v
x y
factor : x =factor * u y =factor * v
Scale0.8 u v
x y
^ x = u +
^ y = v Shear in Y by
^ x = u ^ y = v +
Shear X1.3 u v
x y Shear Y1.3 u v
x y
docsity.com
(u, v)x y = f(u, v)y (^) Fish-eye^
Swirl^
Rain
Rotate-30 u
v
x
y
Rotate-30 u
v
x
y
Many source pixelscan map to samedestination pixel
Image Warping ImplementationII Reverse mapping
for(int
x=0;^
x<xmax;
x++)^
for(int
y=0;^
y<ymax;
y++)^
float^
-1u = f x (x,y); float^
-1v = f y (x,y); dst(x,y)
=^ src(u,v); } } Source Image
Destination Image
(u, v)^
(x, y) f
docsity.com
^ Evaluate source image at arbitrary (u, v)
(u, v) does not usuallyhave integer coordinates
Source Image
Destination Image
(u, v)^
(x, y)
Input^
Output
, v) and src(u 12
, v) 22
^ b = linear interpolation of src(u
, v) and src(u 11
, v) 21
^ dst(x, y) = linear interpolation of
“a”^ and^
“b”
(u^ , v)^12 (u^ , v)^11
(u^ , v)^22 (u^ , v)^21 a (u, v) b
(u, v)
Point^
Gaussian