Академический Документы
Профессиональный Документы
Культура Документы
figure(16);
f = imread('foto01.jpg');
f1=rgb2gray(f);
[h1,t1]=edge(f1,'sobel');
[h2,t2]=edge(f1,'prewitt');
[h3,t3]=edge(f1,'roberts');
[h4,t4]=edge(f1,'log');
[h5,t5]=edge(f1,'canny');
subplot(2,3,1)
imshow(f1);
title('original')
subplot(2,3,2)
imshow(h1);
title('sobel');
subplot(2,3,3)
imshow(h2);
title('prewitt')
subplot(2,3,4)
imshow(h3);
title('roberts');
subplot(2,3,5)
imshow(h4);
title('log');
subplot(2,3,6)
imshow(h5);
title('canny')
Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18
b) Filtrado de la imagen.
FILTROS ESPECIALES
figure(12)
subplot(2,2,1)
f = imread('foto01.jpg')
f1=rgb2gray(f);
imshow(f)
AGREGANDO RUIDO
subplot(2,2,2)
g = imnoise(f1,'salt & pepper', 0.2);
imshow(g);
FILTRO MEDIA
subplot(2,2,3)
m1 = fspecial('average',3);
f_med=imfilter(g,m1);
imshow(f_med);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(2,2,4)
FILTRO F_MEDIANA
f_mediana=medfilt2(g,[3 3]);
imshow(f_mediana)
Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18
Columns 1 through 7
201 37 2 759160 6 9 6
Columns 8 through 14
1 2 95 38 12 57 17
Columns 15 through 21
Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18
26 17 11 36 74 58 47
Columns 22 through 28
8 18 4 4 2 36 8
Columns 29 through 35
28 10 175 34 5 12 14
Columns 36 through 42
18 4 2 87 128 47 12
Columns 43 through 49
37 122 3 6 7 63 13
Columns 50 through 56
Columns 57 through 63
Columns 64 through 70
2 1 1 23 10 25 7
Columns 71 through 77
2 4 1 2 51 1 2
Columns 78 through 84
23 1 35 1 12 13 1
Columns 85 through 91
55 107 71 32 11 364 25
Columns 92 through 98
70 75 1 528 2 6 114
1 2 3 74 13 1 30
22 1 32 2 2 2 19
2 2 2 1 49 65 28
9 41 5 159 6 10 11
63 19 5 16 3 1 169
1 8 14 1 3 2 7
140 13 224 3 89 49 1
35 3 1 2 54 3 1
6 44 10 7 23 6 3
7 14 2 7 60 1 233
26 1 1 16 64 18 2
254 7 31 61 48 52 27
106 40 69 1 1 2 52
27 2 21 18 3 5 35
2 7 7 42 52 8 53
149 63 6 9 2 75 5
1 6 1 6 1 27 51
17 36 4 1 134 1 35
1 9 1 4 1 9 9
14 1 39 52 103 5 28
1 107 1 2 54 87 2
103 121 1 3 55 13 1
1 17 3 183 11 2 7
115 63 1 5 1 14 143
14 7 63 35 1 17 5
2 5 22 2 73 15 2
60 25 36 12 8 21 1
4 10 4 73 5 32 1
3 2 8 1 6 3 2
5 2 1 3 499 12 34
25 13 62 21 2 3 32
2 11 26 15 1 3 5
2 41 40 41 9 30 377
4 256 41 9 4 18 103
17 6 2 1 2 1 54
5 1 5 1 1 1 1
6 15 1 1 4 15 63
4 3 13 11 3 16 42
1 5 10 7 11 15 2
10 13 1 5 4 147 22
28 84 20 10 79 137 11
38 29 45 21 49 50 55
63 15 8 6 90 17 77
6 1 20 7 40 9 18
1 1 1 1 8 6 85
51 122 26 6 6 33 2
138 1 59 119 2 6 32
24 247 92 4 66 1 10
1 34 13 37 1 4 6
87 34 26 7 52 2 1
9 1 2 2 2 3 1
1 1 1 3 2 1 303
6 3 5 1 1 2 53
27 39 1 4 90 6 4
1 8 1 2 1 1 1
1 4 114 4 12 1 1
312 54 1 17 20 2 1
1 25 1 17 99 3 25
3 217 25 1 26 2 2
22 2 137 55 1 24 13
1 1 2 1 2 1 3
1 6 6 40 9 4 2
182 8 2 1 21 1 1
126 5 37 9 6 44 4
2 4 11 1 12 2 1
13 3 1 2 35 1 7
1 1 2 6 1 1 3
116 1 1 1 7 3 21
41 11 8 1 6 19 79
7 3 15 43 13 4 6
5 2 3 4 6 22 1
52 4 6 6 1 1 2
2 1 4 70 1 2 13
1 68 6 1 1 1 6
7 1 11 3 8 48 2
1 26 1 2 6 176 15
6 23 16 4 5 2 1
20 2 2 11 1 1 1
3 4 2 1 3 3 5
6 1 8 1 29 2 2
38 3 3 2 1 10 24
7 1 4 4 3 1 37
1 10 1 33 59 20 24
48 3 4 12 19 1 37
64 1 16 1 18 23 111
2 10 8 42 1 6 35
1 5 86 53 2 3 30
3 76 1 10 1 7 1
87 2 18 15 12 1 4
24 10 13 20 10 14 15
1 9 8 7 4 14 13
1 8 3 15 3 1 7
1 2 27 69 19 1 7
2 14 4 112 2 1 6
1 2 35 4 2 10 34
1 7 1 2 6 2 19
13 7 104 26 17 3 4
1 1 20 2 1 29 5
3 5 10 8 84 7 27
6 22 18 1 2 5 30
11 5 28 6 2 1 66
10 2 9 2 19 37 14
29 53 4 2 1 10 9
64 173 1 5 17 11 16
9 4 56 8 4 4 1
8 1 14 2 1 4 13
4 2 1 69 11 2 3
86 41 6 11 3 1 1
26 8 10 1 1 135 12
1 1 23 45 82 1 8
36 2 1 1 2 17 6
2 13 12 285 5 1 4
2 44 3 20 3 1 22
16 85 2 3 4 4 3
19 3 24 4 150 11 2
2 2 25 11 2 2 2
30 4 3 14 9 6 1
IMAGEN ORIGINAL
Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18
a) Matrices RGB.
>> figure(1)
j = imread('foto01.jpg');
subplot(2,2,1)
imshow(j)
J_R=j(:,:,1);
subplot(2,2,2)
imshow(J_R);
J_G=j(:,:,2);
subplot(2,2,3)
imshow(J_G);
J_B=j(:,:,3);
subplot(2,2,4)
imshow(J_B);
Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18