Essays.club - Ensayos gratis, notas de cursos, notas de libros, tareas, monografías y trabajos de investigación
Buscar

Array diseño de filtros de Gabor

Enviado por   •  24 de Octubre de 2018  •  959 Palabras (4 Páginas)  •  229 Visitas

Página 1 de 4

...

coeff = pca(X);

feature2DImage = reshape(X*coeff(:,1),numRows,numCols);

figure

imshow(feature2DImage,[])

Es evidente en esta visualización que hay suficiente variación en la información de la característica Gabor para obtener una buena segmentación de esta imagen. El perro es muy oscuro en comparación con el suelo debido a las diferencias de textura entre el perro y el suelo.

Gabor clasificar Textura Características utilizando KMeans

Repita k-means clustering cinco veces para evitar los mínimos locales en la búsqueda de medios que minimizan la función objetivo. La única información antes asumida en este ejemplo es como están presentes en la imagen que se está segmentado muchas regiones distintas de la textura. Hay dos regiones distintas en este caso. Esta parte del ejemplo requiere de Estadística y Aprendizaje de Máquinas Herramientas.

L = kmeans(X,2,'Replicates',5);

Visualize segmentation using label2rgb.

L = reshape(L,[numRows numCols]);

figure

imshow(label2rgb(L))

Visualizar la imagen segmentada usando imshowpair. Examine las imágenes frontal y de fondo que resultan de la BW máscara que se asocia con la matriz de etiqueta L.

Aseg1 = zeros(size(A),'like',A);

Aseg2 = zeros(size(A),'like',A);

BW = L == 2;

BW = repmat(BW,[1 1 3]);

Aseg1(BW) = A(BW);

Aseg2(~BW) = A(~BW);

figure

imshowpair(Aseg1,Aseg2,'montage');

_______________________--

2D GABOR-http://www.mathworks.com/matlabcentral/fileexchange/20709-2d-gabor-wavelets/content/Gabor/GaborExample.m

% Example : Show the Gabor Wavelet

% Author : Chai Zhi

% e-mail : zh_chai@yahoo.cn

close all;

clear all;

clc;

% Parameter Setting

R = 128;

C = 128;

Kmax = pi / 2;

f = sqrt( 2 );

Delt = 2 * pi;

Delt2 = Delt * Delt;

% Show the Gabor Wavelets

for v = 0 : 4

for u = 1 : 8

GW = GaborWavelet ( R, C, Kmax, f, u, v, Delt2 ); % Create the Gabor wavelets

figure( 2 );

subplot( 5, 8, v * 8 + u ),imshow ( real( GW ) ,[]); % Show the real part of Gabor wavelets

end

figure ( 3 );

subplot( 1, 5, v + 1 ),imshow ( abs( GW ),[]); % Show the magnitude of Gabor wavelets

end

_________________________________-----

Gabor filtering on an image-http://www.mathworks.com/matlabcentral/fileexchange/28751-gabor-filtering-on-an-image/content/gab/gabor_program.m

% program by Deepak Kumar Rout

% vssut Burla

clc;

clear all;

close all;

I=imread('katrina.jpg');

I=rgb2gray(I);

I=imresize(I,[64 64],'bilinear');

[N N]=size(I)

imshow(I)

I=im2double(I);

sigma=input('Enter the value of sigma ');

psi=input('Enter the value of psi ');

gamma=input('Enter the value of gamma ');

n1=input('Enter the number of lambda you want to take ');

lambda=input('Enter the different values of lambda ');

n2=input('Enter the number of theta you want to take ');

theta=input('Enter the different values of theta');

for i=1:n1

l=lambda(i);

figure

for j=1:n2

t=theta(j);

g1=gabor_fn(sigma,t,l,psi,gamma);

display('value of lambda');display(l);

display('value of theta ');display(t);

display('output of gabor filter will be');display(g1);

% figure

subplot(1,n2,j);

...

Descargar como  txt (7.5 Kb)   pdf (56.6 Kb)   docx (16.5 Kb)  
Leer 3 páginas más »
Disponible sólo en Essays.club