コード例 #1
0
def LRImage_example(path):
    print "6.1"
    image = Image.open(path)
    print "6.2"
    sr_image = SRImageFactory.create_sr_image(image)
    print "6.3"
    reconstructed_sr_image = sr_image.reconstruct(4, 'iccv09')
    print "6.4"
    reconstructed_sr_image.save(
        "/Users/Mohamad/AUT/B.Sc. Thesis/SR_FR Project/high-res.png", "png")
    print "6.5"
コード例 #2
0
ファイル: sr_image_example.py プロジェクト: stjordanis/SRLab
def letter_example():
    image = Image.open("../test_data/letter.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(3, 'iccv09')
    reconstructed_sr_image.save("../test_data/letter_3x.png", "png")
コード例 #3
0
ファイル: sr_image_example.py プロジェクト: stjordanis/SRLab
def babyface_example():
    image = Image.open("../test_data/babyface_4.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(4, 'iccv09')
    reconstructed_sr_image.save("../test_data/babyface_4x.png", "png")
コード例 #4
0
def letter_example(opencv_im):
    image = opencv_im
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(3, 'iccv09')
    reconstructed_sr_image.save("/tmp/tmpabcd.png", "png")
コード例 #5
0
def letter_example():
    image = Image.open("/tmp/save.jpg")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(3, 'iccv09')
    reconstructed_sr_image.save("/tmp/tmpabcd.png", "png")
コード例 #6
0
ファイル: test_sr_image.py プロジェクト: void-main/SRLab
 def setUp(self):
     self.image = Image.open("test_data/babyface_4.png")
     self.sr_image = SRImageFactory.create_sr_image(self.image)
コード例 #7
0
 def test_create_sr_image_from(self):
     sr_image = SRImageFactory.create_sr_image_from("test_data/babyface_4.png")
     self.assertIsNotNone(sr_image.get_image())
コード例 #8
0
def colorblind_example():
    image = Image.open("../test_data/colorblind.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(2, 'iccv09')
    reconstructed_sr_image.save("../test_data/colorblind_2x.png", "png")
コード例 #9
0
def freckles2_example():
    image = Image.open("../test_data/freckles2.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(2, 'iccv09')
    reconstructed_sr_image.save("../test_data/freckles2_2x.png", "png")
コード例 #10
0
def auditorium_example():
    image = Image.open("../test_data/auditorium.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(2, 'iccv09')
    reconstructed_sr_image.save("../test_data/auditorium_2x.png", "png")
コード例 #11
0
def butterfly_example():
    image = Image.open("../test_data/butterfly.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(2, 'iccv09')
    reconstructed_sr_image.save("../test_data/butterfly_2x.png", "png")
コード例 #12
0
def sculpture_example():
    image = Image.open("../test_data/sculpture.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(2, 'iccv09')
    reconstructed_sr_image.save("../test_data/sculpture_2x.png", "png")
コード例 #13
0
 def test_create_sr_image_from(self):
     sr_image = SRImageFactory.create_sr_image_from(
         "test_data/babyface_4.png")
     self.assertIsNotNone(sr_image.get_data())
コード例 #14
0
 def test_create_sr_image(self):
     image = Image.open("test_data/babyface_4.png")
     sr_image = SRImageFactory.create_sr_image(image)
     self.assertIsNotNone(sr_image.get_data())
コード例 #15
0
ファイル: sr_image_example.py プロジェクト: ACPK/SRLab
def babyface_example():
    image = Image.open("../test_data/babyface_4.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(4, 'iccv09')
    reconstructed_sr_image.save("../test_data/babyface_4x.png", "png")
コード例 #16
0
 def test_create_sr_image(self):
     image = Image.open("test_data/babyface_4.png")
     sr_image = SRImageFactory.create_sr_image(image)
     self.assertIsNotNone(sr_image.get_image())
コード例 #17
0
ファイル: sr_image_example.py プロジェクト: ACPK/SRLab
def letter_example():
    image = Image.open("../test_data/letter.png")
    sr_image = SRImageFactory.create_sr_image(image)
    reconstructed_sr_image = sr_image.reconstruct(3, 'iccv09')
    reconstructed_sr_image.save("../test_data/letter_3x.png", "png")
コード例 #18
0
 def setUp(self):
     self.image = Image.open("test_data/babyface_4.png")
     self.sr_image = SRImageFactory.create_sr_image(self.image)