mirror of
https://github.com/opencv/opencv.git
synced 2026-07-28 23:03:03 +04:00
minor changes : Replace ndarray.ptp() with np.ptp() for NumPy 2.0 Compatibility
This commit is contained in:
@@ -62,7 +62,7 @@ def main():
|
||||
vs.append(v)
|
||||
mi = np.argmin(vs, 0)
|
||||
a += np.choose(mi, ms) * 0.025
|
||||
a = (a-a.min()) / a.ptp()
|
||||
a = (a-a.min()) / np.ptp(a)
|
||||
|
||||
if out:
|
||||
out.write(a)
|
||||
|
||||
Reference in New Issue
Block a user