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