mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 13:40:25 +08:00
0ca7933a7d
Make bilinear_interpolation function callable by other cython code and change fast_homography to use this function. Also, improve performance of some functions by making them inline and fix broken test of fast_homography.
12 lines
439 B
Cython
12 lines
439 B
Cython
cimport numpy as np
|
|
import numpy as np
|
|
|
|
|
|
cdef inline double bilinear_interpolation(double* image, int rows, int cols,
|
|
double r, double c, char mode,
|
|
double cval=*)
|
|
|
|
cdef inline double get_pixel(double* image, int rows, int cols, int r, int c,
|
|
char mode, double cval=*)
|
|
|
|
cdef inline int coord_map(int dim, int coord, char mode) |