mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 22:30:30 +08:00
21 lines
946 B
Cython
21 lines
946 B
Cython
|
|
cdef inline double nearest_neighbour_interpolation(double* image, int rows,
|
|
int cols, double r,
|
|
double c, char mode,
|
|
double cval)
|
|
|
|
cdef inline double bilinear_interpolation(double* image, int rows, int cols,
|
|
double r, double c, char mode,
|
|
double cval)
|
|
|
|
cdef inline double cubic_interpolation(double x, double[4] f)
|
|
|
|
cdef inline double bicubic_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)
|