Esempio n. 1
0
 def test_load_swans(self):
     out = im.LinearOperations(tu.get_test_data_path("swans.jpg"))
     self.assertEqual(out.get_image().shape, (600, 600))
Esempio n. 2
0
 def test_load_artwork(self):
     out = im.LinearOperations(
         tu.get_test_data_path("M-C-font-b-Escher-b-font-Optical-illusion"
                               "-artworks-geometry-animals-chameleon-"
                               "poster-60x60CM-Print.jpg"))
     self.assertEqual(out.get_image().shape, (600, 600))
Esempio n. 3
0
 def test_load_day_and_night(self):
     out = im.LinearOperations(tu.get_test_data_path("day_and_night.jpg"))
     self.assertEqual(out.get_image().shape, (902, 1566))
Esempio n. 4
0
 def test_load_pencil_sketch(self):
     out = im.LinearOperations(
         tu.get_test_data_path("escher_pencil_sketch_by_psion005.jpg"))
     self.assertEqual(out.get_image().shape, (768, 1024))
Esempio n. 5
0
 def test_load_relativity(self):
     out = im.LinearOperations(
         tu.get_test_data_path("220px-Escher's_Relativity.jpg"))
     self.assertEqual(out.get_image().shape, (209, 220))