Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Convolucion PDF
Convolucion PDF
Convolucion PDF
PROCEDIMIENTO:
LA IMAGEN SELECCIONADA SE MUESTRA EN
LA PARTE DE ABAJO, PROCEDEMOS PRIMERO
A APLICAR EL CODIGO DE MATLAB CON UNA
RESPUESTA A LA MUESTRA UNITARIA DE
h [n] = [1/32,1/32,1/32]
>> x=imread
x=imread('C:
imread('C:\
('C:\Dark.jpg');
% almacena en forma de matriz en la variable x el archivo de
imagen deseado.
>> h =[1/32,1/32,1/32];
% respuesta al impulso de
un filtro pasa bajas por el cual se convolucionar la
matriz de la imagen
>> y=convn
y=convn(
convn(x,h);
x,h);
% Comando que realiza la operacin de convolucin
>> imwrite(
imwrite(y,'C:
y,'C:\Darkreponse2.jpg');
% Crea el archivo de imagen, resultado de la convolucion de
la original con la muestra a la respuesta unitaria.
IMAGEN ORIGINAL
IMAGEN TRAS LA
CONVOLUCION CON
LA RESPUESTA (1/32)
>> x=imread('C:\Dark.jpg');
>> h =[1/300,1/300,1/300];
>> y=convn(x,h);
>> imwrite(y,'C:\Darkreponse3.jpg');
Imagen original
Imagen despus
del filtro (1/300)
Imagen original
Imagen despus
de la convolucin
(1/500).
>> x=imread('C:\Dark.jpg');
>> h =[1/1000,1/1000,1/1000];
>> y=convn(x,h);
>> imwrite(y,'C:\Darkreponse4.jpg');
Imagen original
Imagen tras
convolucin (1/1000).
1/32
1/300
IMAGEN ORIGINAL
1/500
1/1000
USO DE MATLAB
PARA HACER UNA
CONVOLUCION DE
UN ARCHIVO DE
SONIDO
10
12
5
x 10
Convolucion 1/2
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
10
12
5
x 10
Convolucion 1/6
0.4
0.3
0.2
0.1
0
-0.1
-0.2
-0.3
-0.4
10
12
5
x 10
Convolucion 1/20
0.1
0.08
0.06
0.04
0.02
0
-0.02
-0.04
-0.06
-0.08
-0.1
10
12
5
x 10
Convolucion 1/32
0.08
0.06
0.04
0.02
0
-0.02
-0.04
-0.06
-0.08
10
12
5
x 10
COMPARANDO SIMULTANEAMENTE
LAS GRAFICAS
subplot(4,1,1),plot(M,r'),title('Convolucion
1/2),grid;
subplot(4,1,2),plot(E,m'),title('Convolucion
1/6'),grid;
subplot(4,1,3),plot(G,b'),title('Convolucion
1/20'),grid;
subplot(4,1,4),plot(m,y'),title('Convolucion
1/32'),grid;
COMPARANDO SEALES
Convolucion 1/2
1
0
-1
10
12
5
x 10
Convolucion 1/6
0.5
0
-0.5
10
12
5
x 10
Convolucion 1/20
0.1
0
-0.1
10
12
5
x 10
Convolucion 1/32
0.1
0
-0.1
10
12
5
x 10
SUPERPONIENDO SEALES
Comparacion del Audio Original y las Convoluciones
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
10
12
5
x 10