Docsity

UPF Audiovisual Lab practice 4 Gabor filters kernel size lambda parameters, Ejercicios de Procesamiento de Imágenes Digitales

Toggle sidebar
bg1
•kern_size: This parameter determines the size of the kernel used in the filter. Increasing the value of
this parameter will increase the size of the filter and may result in a smoother output image.
•lambda: This parameter determines the wavelength of the sinusoidal factor in the filter. Increasing this
value will increase the frequency of the filter and may result in a finer output image.
•phi: This parameter determines the phase offset of the sinusoidal factor in the filter. Changing this value
will change the orientation of the filter.
•sigma: This parameter determines the standard deviation of the Gaussian envelope in the filter.
Increasing this value will increase the spread of the filter and may result in a smoother output image.
•gamma: This parameter determines the spatial aspect ratio of the Gaussian envelope in the filter.
Changing this value will change the shape of the filter.
•orientations: This parameter determines the orientations at which the filter will be applied. Changing
this value will change the number and directions of the filtered images produced.
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);
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Vista previa parcial del texto

¡Descarga UPF Audiovisual Lab practice 4 Gabor filters kernel size lambda parameters y más Ejercicios en PDF de Procesamiento de Imágenes Digitales solo en Docsity!

  • kern_size: This parameter determines the size of the kernel used in the filter. Increasing the value of this parameter will increase the size of the filter and may result in a smoother output image.
  • lambda: This parameter determines the wavelength of the sinusoidal factor in the filter. Increasing this value will increase the frequency of the filter and may result in a finer output image.
  • phi: This parameter determines the phase offset of the sinusoidal factor in the filter. Changing this value will change the orientation of the filter.
  • sigma: This parameter determines the standard deviation of the Gaussian envelope in the filter. Increasing this value will increase the spread of the filter and may result in a smoother output image.
  • gamma: This parameter determines the spatial aspect ratio of the Gaussian envelope in the filter. Changing this value will change the shape of the filter.
  • orientations: This parameter determines the orientations at which the filter will be applied. Changing this value will change the number and directions of the filtered images produced.

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