warping.rst 8.67 KB

Image Warping

gpu::remap

Applies a generic geometrical transformation to an image.

The function transforms the source image using the specified map:

\texttt{dst} (x,y) =  \texttt{src} (xmap(x,y), ymap(x,y))

Values of pixels with non-integer coordinates are computed using the bilinear interpolation.

gpu::resize

Resizes an image.

gpu::warpAffine

Applies an affine transformation to an image.

gpu::buildWarpAffineMaps

Builds transformation maps for affine transformation.

gpu::warpPerspective

Applies a perspective transformation to an image.

gpu::buildWarpPerspectiveMaps

Builds transformation maps for perspective transformation.

gpu::buildWarpPlaneMaps

Builds plane warping maps.

gpu::buildWarpCylindricalMaps

Builds cylindrical warping maps.

gpu::buildWarpSphericalMaps

Builds spherical warping maps.

gpu::rotate

Rotates an image around the origin (0,0) and then shifts it.

gpu::pyrDown

Smoothes an image and downsamples it.

gpu::pyrUp

Upsamples an image and then smoothes it.