MCPcopy Create free account
hub / github.com/geekcomputers/Python / findThreshold

Function findThreshold

Colors/pixel_sort.py:92–95  ·  view source on GitHub ↗
(lst, add)

Source from the content-addressed store, hash-verified

90
91# Threshold set for avoiding extreme sorting of the pixels
92def findThreshold(lst, add):
93 for i in lst:
94 add.append(sum(i))
95 return (max(add) + min(add)) / 2
96
97
98def makeVideo():

Callers 1

mainFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected