Skip to content

Commit

Permalink
Corrected determination of sensor size
Browse files Browse the repository at this point in the history
  • Loading branch information
jabriffa committed Jun 13, 2018
1 parent 96fea75 commit dc4a3ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions raw_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ def main():

# convert lossless JPEG encoded input file to raw data
a, components = jbcr2.decode_lossless_jpeg(args.input)
height,width = a.shape

# obtain required parameters from RAW file
assert height,width == tiff.get_sensor_size()
width,height = tiff.get_sensor_size()
slices = tiff.get_slices()
# make a list of the width of each slice
slice_widths = [slices[1]] * slices[0] + [slices[2]]
Expand Down

0 comments on commit dc4a3ab

Please sign in to comment.