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
98c9cb74
Commit
98c9cb74
authored
Dec 21, 2011
by
Jayke Meijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented GaussianFilter class.
parent
239b4ab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/GaussianFilter.py
src/GaussianFilter.py
+15
-1
No files found.
src/GaussianFilter.py
View file @
98c9cb74
# Gaussian Filter Class for use with License Plate Recognition with
# Local Binary Patterns.
#
# Authors: Taddeüs Kroes
# Jayke Meijer
# Fabiën Tesselaar
# Richard Torenvliet
# Gijs van der Voort
from
GrayscaleImage
import
GrayscaleImage
from
scipy.ndimage
import
gaussian_filter
class
GaussianFilter
:
"""This class can apply a Gaussian blur on an image."""
def
__init__
(
self
,
scale
):
"""Create a GaussianFilter object with a given scale."""
self
.
scale
=
scale
def
get_filtered_copy
(
self
,
image
):
...
...
@@ -12,12 +23,15 @@ class GaussianFilter:
return
GrayscaleImage
(
None
,
image
)
def
filter
(
self
,
image
):
"""Apply a Gaussian blur on the image data."""
image
.
data
=
gaussian_filter
(
image
.
data
,
self
.
scale
)
def
get_scale
(
self
):
return
self
.
scale
"""Return the scale of the Gaussian kernel."""
return
self
.
scale
def
set_scale
(
self
,
scale
):
"""Set the scale of the Gaussian kernel."""
self
.
scale
=
float
(
scale
)
scale
=
property
(
get_scale
,
set_scale
)
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