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
ba32dba9
Commit
ba32dba9
authored
Dec 05, 2017
by
Hemerson Pistori
Browse files
Adicionado extrator de Gabor ... erro no import gabor_kernel
parent
db1c9930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/extraction/__init__.py
src/extraction/__init__.py
+7
-2
No files found.
src/extraction/__init__.py
View file @
ba32dba9
...
@@ -5,13 +5,15 @@ from .glcm import GLCM
...
@@ -5,13 +5,15 @@ from .glcm import GLCM
from
.hog
import
HOG
from
.hog
import
HOG
from
.image_moments
import
RawCentralMoments
,
HuMoments
from
.image_moments
import
RawCentralMoments
,
HuMoments
from
.lbp
import
LBP
from
.lbp
import
LBP
from
.gabor
import
GABOR
__all__
=
[
"extractor"
,
__all__
=
[
"extractor"
,
"color_summarizer"
,
"color_summarizer"
,
"glcm"
,
"glcm"
,
"hog"
,
"hog"
,
"image_moments"
,
"image_moments"
,
"lbp"
]
"lbp"
,
"gabor"
]
from
collections
import
OrderedDict
from
collections
import
OrderedDict
...
@@ -24,7 +26,9 @@ _extractor_list = OrderedDict( [
...
@@ -24,7 +26,9 @@ _extractor_list = OrderedDict( [
[
"hog"
,
Config
(
"Histogram of Oriented Gradients"
,
True
,
bool
,
meta
=
HOG
)],
[
"hog"
,
Config
(
"Histogram of Oriented Gradients"
,
True
,
bool
,
meta
=
HOG
)],
[
"hu_moments"
,
Config
(
"Hu Image Moments"
,
False
,
bool
,
meta
=
HuMoments
)],
[
"hu_moments"
,
Config
(
"Hu Image Moments"
,
False
,
bool
,
meta
=
HuMoments
)],
[
"rc_moments"
,
Config
(
"Image Moments (Raw/Central)"
,
False
,
bool
,
meta
=
RawCentralMoments
)],
[
"rc_moments"
,
Config
(
"Image Moments (Raw/Central)"
,
False
,
bool
,
meta
=
RawCentralMoments
)],
[
"lbp"
,
Config
(
"Local Binary Patterns"
,
True
,
bool
,
meta
=
LBP
)]
[
"lbp"
,
Config
(
"Local Binary Patterns"
,
True
,
bool
,
meta
=
LBP
)],
[
"gabor"
,
Config
(
"Gabor Filter Bank"
,
True
,
bool
,
meta
=
GABOR
)]
]
)
]
)
def
get_extractor_config
():
def
get_extractor_config
():
...
@@ -37,3 +41,4 @@ def set_extractor_config(configs):
...
@@ -37,3 +41,4 @@ def set_extractor_config(configs):
_extractor_list
[
"hu_moments"
]
=
Config
.
nvl_config
(
configs
[
"hu_moments"
],
_extractor_list
[
"hu_moments"
])
_extractor_list
[
"hu_moments"
]
=
Config
.
nvl_config
(
configs
[
"hu_moments"
],
_extractor_list
[
"hu_moments"
])
_extractor_list
[
"rc_moments"
]
=
Config
.
nvl_config
(
configs
[
"rc_moments"
],
_extractor_list
[
"rc_moments"
])
_extractor_list
[
"rc_moments"
]
=
Config
.
nvl_config
(
configs
[
"rc_moments"
],
_extractor_list
[
"rc_moments"
])
_extractor_list
[
"lbp"
]
=
Config
.
nvl_config
(
configs
[
"lbp"
],
_extractor_list
[
"lbp"
])
_extractor_list
[
"lbp"
]
=
Config
.
nvl_config
(
configs
[
"lbp"
],
_extractor_list
[
"lbp"
])
_extractor_list
[
"gabor"
]
=
Config
.
nvl_config
(
configs
[
"gabor"
],
_extractor_list
[
"gabor"
])
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