mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Use relative imports in skimage files
This commit is contained in:
@@ -10,12 +10,12 @@ cimport cython
|
||||
from libc.math cimport abs, fabs, sqrt, ceil, atan2, M_PI
|
||||
from libc.stdlib cimport rand
|
||||
|
||||
from skimage.draw import circle_perimeter
|
||||
from ..draw import circle_perimeter
|
||||
|
||||
cdef double PI_2 = 1.5707963267948966
|
||||
cdef double NEG_PI_2 = -PI_2
|
||||
|
||||
from skimage._shared.interpolation cimport round
|
||||
from .._shared.interpolation cimport round
|
||||
|
||||
|
||||
def _hough_circle(cnp.ndarray img,
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#cython: wraparound=False
|
||||
import numpy as np
|
||||
cimport numpy as cnp
|
||||
from skimage._shared.interpolation cimport (nearest_neighbour_interpolation,
|
||||
bilinear_interpolation,
|
||||
biquadratic_interpolation,
|
||||
bicubic_interpolation)
|
||||
from .._shared.interpolation cimport (nearest_neighbour_interpolation,
|
||||
bilinear_interpolation,
|
||||
biquadratic_interpolation,
|
||||
bicubic_interpolation)
|
||||
|
||||
|
||||
cdef inline void _matrix_transform(double x, double y, double* H, double *x_,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import numpy as np
|
||||
from scipy import ndimage
|
||||
from skimage import measure, morphology
|
||||
from .. import measure, morphology
|
||||
from ._hough_transform import _hough_circle
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import math
|
||||
import numpy as np
|
||||
from scipy import ndimage
|
||||
from skimage.transform import resize
|
||||
from skimage.util import img_as_float
|
||||
from ..transform import resize
|
||||
from ..util import img_as_float
|
||||
|
||||
|
||||
def _smooth(image, sigma, mode, cval):
|
||||
|
||||
Reference in New Issue
Block a user