Skip to content

Commit

Permalink
Refactoring: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jabriffa committed Jun 13, 2018
1 parent 954f0cb commit 8cf7c7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raw_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def main():
width,height = tiff.get_sensor_size()
slices = tiff.get_slices()
# check input image parameters
assert len(I.shape) == 2 # must be a one-channel image
assert I.shape == (height,width) # image size must be exact
assert len(sensor.shape) == 2 # must be a one-channel image
assert sensor.shape == (height,width) # image size must be exact

# slice image
a = jbcr2.slice_image(I, width, height, slices)
a = jbcr2.slice_image(sensor, width, height, slices)
# encode to lossless JPEG output file
parts = jbcr2.encode_lossless_jpeg(a, args.components, args.precision, args.output)

Expand Down

0 comments on commit 8cf7c7f

Please sign in to comment.