parent
92ce71ff8f
commit
8367ff6b5b
1 changed files with 0 additions and 4 deletions
|
|
@ -72,10 +72,6 @@ def nextPowerOf2(n):
|
|||
# Otherwise it's the binary number with a 1 followed by bit_length zeros
|
||||
return 1 << ceiln.bit_length()
|
||||
|
||||
def np2_alt(n):
|
||||
ceiln = math.ceil(n)
|
||||
if (ceiln and not(ceiln & (ceiln - 1))):
|
||||
return ceiln
|
||||
def get_cropspec(image, corners, rotation):
|
||||
t, l, r, b = corners
|
||||
w = r - l
|
||||
|
|
|
|||
Loading…
Reference in a new issue