Files
scikit-image/skimage/transform/_project.pxd
T
Johannes Schönberger 0ca7933a7d Share bilinear interpolation function for other code
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.
2012-08-20 22:48:35 +02:00

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)