mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format
This commit is contained in:
parent
b4cf30f7fa
commit
0ffc1a848a
|
@ -118,7 +118,7 @@ def test_g3_compression():
|
|||
assert_image_equal(reread, i)
|
||||
|
||||
def test_little_endian():
|
||||
im = Image.open('Tests/images/12bit.deflate.tif')
|
||||
im = Image.open('Tests/images/16bit.deflate.tif')
|
||||
assert_equal(im.getpixel((0,0)), 480)
|
||||
assert_equal(im.mode, 'I;16')
|
||||
|
||||
|
@ -143,7 +143,7 @@ def test_little_endian():
|
|||
# on big endian, we'll get back mode = 'I;16B' here.
|
||||
|
||||
def test_big_endian():
|
||||
im = Image.open('Tests/images/12bit.MM.deflate.tif')
|
||||
im = Image.open('Tests/images/16bit.MM.deflate.tif')
|
||||
|
||||
assert_equal(im.getpixel((0,0)), 480)
|
||||
assert_equal(im.mode, 'I;16B')
|
||||
|
|
|
@ -74,7 +74,7 @@ def test_xyres_tiff():
|
|||
|
||||
|
||||
def test_little_endian():
|
||||
im = Image.open('Tests/images/12bit.cropped.tif')
|
||||
im = Image.open('Tests/images/16bit.cropped.tif')
|
||||
assert_equal(im.getpixel((0,0)), 480)
|
||||
assert_equal(im.mode, 'I;16')
|
||||
|
||||
|
@ -89,7 +89,7 @@ def test_little_endian():
|
|||
|
||||
|
||||
def test_big_endian():
|
||||
im = Image.open('Tests/images/12bit.MM.cropped.tif')
|
||||
im = Image.open('Tests/images/16bit.MM.cropped.tif')
|
||||
assert_equal(im.getpixel((0,0)), 480)
|
||||
assert_equal(im.mode, 'I;16B')
|
||||
|
||||
|
|
|
@ -38,12 +38,12 @@ def test_8bit():
|
|||
im = Image.open('Images/lena.jpg')
|
||||
_test_float_conversion(im.convert('L'))
|
||||
|
||||
def test_12bit():
|
||||
im = Image.open('Tests/images/12bit.cropped.tif')
|
||||
def test_16bit():
|
||||
im = Image.open('Tests/images/16bit.cropped.tif')
|
||||
_test_float_conversion(im)
|
||||
|
||||
def test_12bit_workaround():
|
||||
im = Image.open('Tests/images/12bit.cropped.tif')
|
||||
def test_16bit_workaround():
|
||||
im = Image.open('Tests/images/16bit.cropped.tif')
|
||||
_test_float_conversion(im.convert('I'))
|
||||
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ def _test_img_equals_nparray(img, np):
|
|||
|
||||
|
||||
def test_16bit():
|
||||
img = Image.open('Tests/images/12bit.cropped.tif')
|
||||
img = Image.open('Tests/images/16bit.cropped.tif')
|
||||
np_img = numpy.array(img)
|
||||
_test_img_equals_nparray(img, np_img)
|
||||
assert_equal(np_img.dtype, numpy.dtype('<u2'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user