mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01: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