Skip to content

Commit 390b2a8

Browse files
committed
Avoid circular import
1 parent ea7afcb commit 390b2a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/skimage/feature/corner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from ..util import img_as_float
1313
from ._hessian_det_appx import _hessian_matrix_det
1414
from .corner_cy import _corner_fast, _corner_moravec, _corner_orientations
15-
from .peak import peak_local_max
1615
from .util import _prepare_grayscale_input_2D, _prepare_grayscale_input_nD
1716

1817

@@ -1204,6 +1203,8 @@ def corner_peaks(
12041203
if np.isinf(num_peaks_per_label):
12051204
num_peaks_per_label = None
12061205

1206+
from .peak import peak_local_max
1207+
12071208
# Get the coordinates of the detected peaks
12081209
coords = peak_local_max(
12091210
image,

0 commit comments

Comments
 (0)