https://github.com/alkasm/padded-transformations
Padded warping functions
https://github.com/alkasm/padded-transformations
Last synced: 8 months ago
JSON representation
Padded warping functions
- Host: GitHub
- URL: https://github.com/alkasm/padded-transformations
- Owner: alkasm
- License: mit
- Created: 2017-07-12T12:09:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T07:07:33.000Z (over 5 years ago)
- Last Synced: 2025-02-01T12:11:14.624Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 7.23 MB
- Stars: 21
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## padded-transformations
Providing padded versions of OpenCV's `warpAffine()` and `warpPerspective()` functions.

## usage
```python
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](https://stackoverflow.com/questions/44457064/displaying-stitched-images-together-without-cutoff-using-warpaffine/44459869#44459869) which inspired this repository.
The images used to produce `example.png` are from [Oxford's Visual Geometry Group](http://www.robots.ox.ac.uk/~vgg/data/affine/).