warping.rst 8.67 KB

Image Warping

cuda::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.

cuda::resize

Resizes an image.

cuda::warpAffine

Applies an affine transformation to an image.

cuda::buildWarpAffineMaps

Builds transformation maps for affine transformation.

cuda::warpPerspective

Applies a perspective transformation to an image.

cuda::buildWarpPerspectiveMaps

Builds transformation maps for perspective transformation.

cuda::buildWarpPlaneMaps

Builds plane warping maps.

cuda::buildWarpCylindricalMaps

Builds cylindrical warping maps.

cuda::buildWarpSphericalMaps

Builds spherical warping maps.

cuda::rotate

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

cuda::pyrDown

Smoothes an image and downsamples it.

cuda::pyrUp

Upsamples an image and then smoothes it.