Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | utils/rotate.py: Fix two bugs which cause wrong results | Aaron LI | 2016-10-26 | 1 | -4/+13 |
| | | | | | | | * Fix the wrong output shape: wrongly swap the row and column * Fix the area mapping method, which may give zero values when the index of the input is integer, which cause problem to calculate the overlapping areas. | ||||
* | Add utils/rotate.py: Implement basic image rotation | Aaron LI | 2016-10-26 | 1 | -0/+131 |
The "rotate_center()" function rotates a gray-scale image by a given angle about its center, using the area mapping method or simple nearest neighbor. This function is `numba` JIT-optimized, and can replace the `scipy.ndimage.rotate()` function. |