mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 20:50:07 +08:00
Change flipud/fliplr to array indexing.
This commit is contained in:
@@ -102,7 +102,7 @@ def match_template(np.ndarray[float, ndim=2, mode="c"] image,
|
||||
|
||||
# when `dtype=float` is used, ascontiguousarray returns ``double``.
|
||||
corr = np.ascontiguousarray(fftconvolve(image,
|
||||
np.flipud(np.fliplr(template)),
|
||||
template[::-1, ::-1],
|
||||
mode="valid"),
|
||||
dtype=np.float32)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user