Beispiel #1
0
 def test_temperature(self):
     img = SingleImage()
     img.load_without_label('../data/custom/12.jpg')
     img.add('exposure', 0.2)
     img.run()
     img.display()
Beispiel #2
0
 def test_single_image(self):
     img = SingleImage()
     #img.load_without_label('../data/custom/1.jpg')
     img.add('crop', 100, 200)
     img.add('resize', 200, 300)
     img.run()
Beispiel #3
0
 def test_hue(self):
     img = SingleImage()
     img.load_without_label('../data/custom/12.jpg')
     img.add('hue', 100)
     img.run()
     img.display()
Beispiel #4
0
 def test_temperature(self):
     img = SingleImage()
     img.load_without_label('../data/custom/10.jpg')
     img.add('color_temperature', 200)
     img.run()
     img.display()
Beispiel #5
0
 def test_lightness(self):
     img = SingleImage()
     img.load_without_label('../data/custom/9.jpg')
     img.add('lightness', -80)
     img.run()
     img.display()
Beispiel #6
0
 def test_saturation(self):
     img = SingleImage()
     img.load_without_label('../data/custom/9.jpg')
     img.add('saturation', -80)
     img.run()
     img.display()
Beispiel #7
0
 def test_fragment(self):
     img = SingleImage()
     img.load_without_label('../data/custom/11.jpg')
     img.add('fragment', 5)
     img.run()
     img.display()
Beispiel #8
0
 def test_sharpen(self):
     img = SingleImage()
     img.load_without_label('../data/custom/11.jpg')
     img.add('USM_sharpen')
     img.run()
     img.display()
Beispiel #9
0
 def test_noise(self):
     img = SingleImage()
     img.load_without_label('../data/custom/9.jpg')
     img.add('Gaussian_noise', 0, 3, 0.99)
     img.run()
     img.display()