mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-03 12:50:25 +08:00
Change flipud/fliplr to array indexing.
This commit is contained in:
1 parent
43ed4b9fb7
commit
b2006da346
1 file changed
+1
-1
@@ -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