Skip to content

Commit

Permalink
Moved method from dual iso extract
Browse files Browse the repository at this point in the history
  • Loading branch information
jabriffa committed Jun 22, 2018
1 parent 881e436 commit 3d2c8e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyshared/jbimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
import numpy as np
from PIL import Image

# determine bit depth required to hold saturation value

def get_precision(saturation):
return int(np.ceil(np.log2(saturation)))

## class to read and write PNM image files

class pnm_file():

@staticmethod
Expand Down

0 comments on commit 3d2c8e1

Please sign in to comment.