Skip to content
Snippets Groups Projects
Commit b3b2f8d3 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Reversed gaussian blur and image resizing for better results.

parent 7311582a
No related branches found
No related tags found
No related merge requests found
docs/faulty.png

454 KiB | W: | H:

docs/faulty.png

425 KiB | 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment