Commit b3b2f8d3 authored by Taddeus Kroes's avatar Taddeus Kroes

Reversed gaussian blur and image resizing for better results.

parent 7311582a
docs/faulty.png

454 KB | W: | H:

docs/faulty.png

425 KB | W: | H:

docs/faulty.png
docs/faulty.png
docs/faulty.png
docs/faulty.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -10,19 +10,11 @@ class NormalizedCharacterImage(GrayscaleImage):
elif data != None:
GrayscaleImage.__init__(self, data=deepcopy(data))
self.blur = blur
self.gaussian_filter()
#self.increase_contrast()
self.height = height
self.resize()
# def increase_contrast(self):
# """Increase the contrast by performing a grayscale mapping from the
# current maximum and minimum to a range between 0 and 1."""
# self.data -= self.data.min()
# self.data = self.data.astype(float) / self.data.max()
self.blur = blur
self.gaussian_filter()
def gaussian_filter(self):
GaussianFilter(self.blur).filter(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment