padded-transformations
padded-transformations copied to clipboard
Padded warping functions
padded-transformations
Providing padded versions of OpenCV's warpAffine()
and warpPerspective()
functions.
usage
import padtransf
src_warped, dst_padded = padtransf.warpPerspectivePadded(src, dst, homography)
src_warped, dst_padded = padtransf.warpAffinePadded(src, dst, affine_transf)
sources
Read my Stack Overflow answer which inspired this repository.
The images used to produce example.png
are from Oxford's Visual Geometry Group.