mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 07:10:51 +08:00
Use in-place sort
This commit is contained in:
parent
76cf31bee7
commit
d9c5b85671
@ -387,7 +387,7 @@ def main():
|
|||||||
focals = []
|
focals = []
|
||||||
for cam in cameras:
|
for cam in cameras:
|
||||||
focals.append(cam.focal)
|
focals.append(cam.focal)
|
||||||
sorted(focals)
|
focals.sort()
|
||||||
if len(focals) % 2 == 1:
|
if len(focals) % 2 == 1:
|
||||||
warped_image_scale = focals[len(focals) // 2]
|
warped_image_scale = focals[len(focals) // 2]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user