def test_pil_I(self): # test int image img = Image(720, 480, 1, True, Image.PIXEL_SIGNED, 4) pil_img = img.get_pil_image() img2 = Image.from_pil(pil_img) nose.tools.assert_equal(img.equal_content(img2), True)
def test_pil_1(self): # test bool image img = Image(720, 480, 1, True, Image.PIXEL_BOOL, 1) pil_img = img.get_pil_image() img2 = Image.from_pil(pil_img) nose.tools.assert_equal(img.equal_content(img2), True)
def test_pil_RGBA(self): # test RGBA image img = Image(720, 480, 4, True) pil_img = img.get_pil_image() img2 = Image.from_pil(pil_img) nose.tools.assert_equal(img.equal_content(img2), True)