Commit c711d7f5 authored by Hemerson Pistori's avatar Hemerson Pistori

depurado e funcionando ... aumentei quantidade de filtros usados no Gabor

parent 12cef20d
...@@ -66,8 +66,7 @@ class GABOR(Extractor): ...@@ -66,8 +66,7 @@ class GABOR(Extractor):
image_grayscale = ImageUtils.image_grayscale(image, bgr = True) image_grayscale = ImageUtils.image_grayscale(image, bgr = True)
shrink = (slice(0, None, 3), slice(0, None, 3)) image_float = img_as_float(image_grayscale)
image_float = img_as_float(self.image_grayscale)[shrink]
#Prepare filter bank kernels #Prepare filter bank kernels
...@@ -75,10 +74,10 @@ class GABOR(Extractor): ...@@ -75,10 +74,10 @@ class GABOR(Extractor):
values = [] values = []
kernels = [] kernels = []
index = 0 index = 0
for theta in range(4): for theta in range(8):
theta = theta / 4. * np.pi theta = theta / 8. * np.pi
for sigma in (1, 3): for sigma in (1, 3):
for frequency in (0.05, 0.25): for frequency in (0.01, 0.10, 0.25, 0.5,0.9):
kernel = np.real(gabor_kernel(frequency, theta=theta, kernel = np.real(gabor_kernel(frequency, theta=theta,
sigma_x=sigma, sigma_y=sigma)) sigma_x=sigma, sigma_y=sigma))
kernels.append(kernel) kernels.append(kernel)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment