Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
licenseplates
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
licenseplates
Commits
b3b2f8d3
Commit
b3b2f8d3
authored
Dec 22, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reversed gaussian blur and image resizing for better results.
parent
7311582a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
docs/faulty.png
docs/faulty.png
+0
-0
src/NormalizedCharacterImage.py
src/NormalizedCharacterImage.py
+2
-10
No files found.
docs/faulty.png
View replaced file @
7311582a
View file @
b3b2f8d3
454 KB
|
W:
|
H:
425 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/NormalizedCharacterImage.py
View file @
b3b2f8d3
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment