Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
inovisao
pynovisao
Commits
c711d7f5
Commit
c711d7f5
authored
Dec 06, 2017
by
Hemerson Pistori
Browse files
depurado e funcionando ... aumentei quantidade de filtros usados no Gabor
parent
12cef20d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/extraction/gabor.py
src/extraction/gabor.py
+4
-5
No files found.
src/extraction/gabor.py
View file @
c711d7f5
...
...
@@ -66,8 +66,7 @@ class GABOR(Extractor):
image_grayscale
=
ImageUtils
.
image_grayscale
(
image
,
bgr
=
True
)
shrink
=
(
slice
(
0
,
None
,
3
),
slice
(
0
,
None
,
3
))
image_float
=
img_as_float
(
self
.
image_grayscale
)[
shrink
]
image_float
=
img_as_float
(
image_grayscale
)
#Prepare filter bank kernels
...
...
@@ -75,10 +74,10 @@ class GABOR(Extractor):
values
=
[]
kernels
=
[]
index
=
0
for
theta
in
range
(
4
):
theta
=
theta
/
4
.
*
np
.
pi
for
theta
in
range
(
8
):
theta
=
theta
/
8
.
*
np
.
pi
for
sigma
in
(
1
,
3
):
for
frequency
in
(
0.0
5
,
0.25
):
for
frequency
in
(
0.0
1
,
0.10
,
0.25
,
0.5
,
0.9
):
kernel
=
np
.
real
(
gabor_kernel
(
frequency
,
theta
=
theta
,
sigma_x
=
sigma
,
sigma_y
=
sigma
))
kernels
.
append
(
kernel
)
...
...
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