


















Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!



















image_file = 'casa.jpg'; fig = true;
%PARAMETERS OF THE FILTER
kern_size = 150; lambda = 10; phi = 0; sigma = 12; gamma = 12; orientations = [0 pi/4 pi/2 3/4*pi];
%Apply gabor for each orientation;
gabor_template(image_file,kern_size, lambda,phi,sigma,gamma,fig,orientations);
image_file = 'casa.jpg'; fig = true;
%PARAMETERS OF THE FILTER
kern_size = 50;
In this second example we have a kernel_size=50 instead of 150. We can notice how the higher kernel_size,
the more homogenious and plane picture we will get. In the second one we can observe more the lines that
form the picture and also the everything more clearly.
Now, we change the lambda and phi to a higher value:
image_file = 'casa.jpg'; fig = true;
%PARAMETERS OF THE FILTER
kern_size = 75; lambda = 100; phi = 0; sigma = 12; gamma = 12; orientations = [0 pi/4 pi/2 3/4*pi];
%Apply gabor for each orientation;
gabor_template(image_file,kern_size, lambda,phi,sigma,gamma,fig,orientations);
Here we set the lambda to 100, so this makes the frequency lower. That is, that the filter will respond to lower
frequencies in the image, making it more sensitive to larger structures and less sensitive to smaller details. As a
result, we get a very blurred and unclear image than the original.
Now we change phi:
image_file = 'casa.jpg'; fig = true;
%PARAMETERS OF THE FILTER