Вы находитесь на странице: 1из 16

a) Segmentación de las imágenes.

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

c) Area de cada una de las partes de la figura.


f = imread('foto01.jpg');
T = graythresh(f);
fbin = im2bw(f,T);
[L,n]= bwlabel(fbin,4);
D=regionprops(L,'all');
w1 = [D.Area]
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
w1 =

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

107 175 172 36 26 52 41

Columns 57 through 63

105 12 119 1 2 12 104

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

Columns 99 through 105


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

1 2 3 74 13 1 30

Columns 106 through 112

22 1 32 2 2 2 19

Columns 113 through 119

2 2 2 1 49 65 28

Columns 120 through 126

9 41 5 159 6 10 11

Columns 127 through 133

63 19 5 16 3 1 169

Columns 134 through 140

1 8 14 1 3 2 7

Columns 141 through 147

140 13 224 3 89 49 1

Columns 148 through 154

35 3 1 2 54 3 1

Columns 155 through 161

6 44 10 7 23 6 3

Columns 162 through 168

7 14 2 7 60 1 233

Columns 169 through 175

26 1 1 16 64 18 2

Columns 176 through 182

254 7 31 61 48 52 27

Columns 183 through 189


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

106 40 69 1 1 2 52

Columns 190 through 196

27 2 21 18 3 5 35

Columns 197 through 203

2 7 7 42 52 8 53

Columns 204 through 210

149 63 6 9 2 75 5

Columns 211 through 217

1 6 1 6 1 27 51

Columns 218 through 224

17 36 4 1 134 1 35

Columns 225 through 231

1 9 1 4 1 9 9

Columns 232 through 238

317 127 1 1 7 1 281

Columns 239 through 245

14 1 39 52 103 5 28

Columns 246 through 252

1 107 1 2 54 87 2

Columns 253 through 259

103 121 1 3 55 13 1

Columns 260 through 266

1 17 3 183 11 2 7

Columns 267 through 273


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

115 63 1 5 1 14 143

Columns 274 through 280

14 7 63 35 1 17 5

Columns 281 through 287

2 5 22 2 73 15 2

Columns 288 through 294

60 25 36 12 8 21 1

Columns 295 through 301

4 10 4 73 5 32 1

Columns 302 through 308

16 114 326 51 7 163 1

Columns 309 through 315

3 2 8 1 6 3 2

Columns 316 through 322

5 2 1 3 499 12 34

Columns 323 through 329

25 13 62 21 2 3 32

Columns 330 through 336

2 11 26 15 1 3 5

Columns 337 through 343

2 41 40 41 9 30 377

Columns 344 through 350

4 256 41 9 4 18 103

Columns 351 through 357


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

17 6 2 1 2 1 54

Columns 358 through 364

5 1 5 1 1 1 1

Columns 365 through 371

6 15 1 1 4 15 63

Columns 372 through 378

4 3 13 11 3 16 42

Columns 379 through 385

1 5 10 7 11 15 2

Columns 386 through 392

10 13 1 5 4 147 22

Columns 393 through 399

28 84 20 10 79 137 11

Columns 400 through 406

38 29 45 21 49 50 55

Columns 407 through 413

63 15 8 6 90 17 77

Columns 414 through 420

6 1 20 7 40 9 18

Columns 421 through 427

1 1 1 1 8 6 85

Columns 428 through 434

51 122 26 6 6 33 2

Columns 435 through 441


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

138 1 59 119 2 6 32

Columns 442 through 448

24 247 92 4 66 1 10

Columns 449 through 455

1 34 13 37 1 4 6

Columns 456 through 462

87 34 26 7 52 2 1

Columns 463 through 469

9 1 2 2 2 3 1

Columns 470 through 476

1 1 1 3 2 1 303

Columns 477 through 483

6 3 5 1 1 2 53

Columns 484 through 490

27 39 1 4 90 6 4

Columns 491 through 497

1 8 1 2 1 1 1

Columns 498 through 504

1 4 114 4 12 1 1

Columns 505 through 511

312 54 1 17 20 2 1

Columns 512 through 518

1 25 1 17 99 3 25

Columns 519 through 525


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

3 217 25 1 26 2 2

Columns 526 through 532

22 2 137 55 1 24 13

Columns 533 through 539

1 1 2 1 2 1 3

Columns 540 through 546

1 6 6 40 9 4 2

Columns 547 through 553

182 8 2 1 21 1 1

Columns 554 through 560

126 5 37 9 6 44 4

Columns 561 through 567

2 4 11 1 12 2 1

Columns 568 through 574

13 3 1 2 35 1 7

Columns 575 through 581

1 1 2 6 1 1 3

Columns 582 through 588

116 1 1 1 7 3 21

Columns 589 through 595

41 11 8 1 6 19 79

Columns 596 through 602

7 3 15 43 13 4 6

Columns 603 through 609


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

5 2 3 4 6 22 1

Columns 610 through 616

52 4 6 6 1 1 2

Columns 617 through 623

2 1 4 70 1 2 13

Columns 624 through 630

1 68 6 1 1 1 6

Columns 631 through 637

7 1 11 3 8 48 2

Columns 638 through 644

1 26 1 2 6 176 15

Columns 645 through 651

6 23 16 4 5 2 1

Columns 652 through 658

20 2 2 11 1 1 1

Columns 659 through 665

3 4 2 1 3 3 5

Columns 666 through 672

6 1 8 1 29 2 2

Columns 673 through 679

38 3 3 2 1 10 24

Columns 680 through 686

7 1 4 4 3 1 37

Columns 687 through 693


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

1 10 1 33 59 20 24

Columns 694 through 700

48 3 4 12 19 1 37

Columns 701 through 707

64 1 16 1 18 23 111

Columns 708 through 714

2 10 8 42 1 6 35

Columns 715 through 721

1 5 86 53 2 3 30

Columns 722 through 728

3 76 1 10 1 7 1

Columns 729 through 735

87 2 18 15 12 1 4

Columns 736 through 742

24 10 13 20 10 14 15

Columns 743 through 749

1 9 8 7 4 14 13

Columns 750 through 756

1 8 3 15 3 1 7

Columns 757 through 763

1 2 27 69 19 1 7

Columns 764 through 770

2 14 4 112 2 1 6

Columns 771 through 777


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

1 2 35 4 2 10 34

Columns 778 through 784

1 7 1 2 6 2 19

Columns 785 through 791

13 7 104 26 17 3 4

Columns 792 through 798

1 1 20 2 1 29 5

Columns 799 through 805

3 5 10 8 84 7 27

Columns 806 through 812

195 27 157 18 29 2 116

Columns 813 through 819

6 22 18 1 2 5 30

Columns 820 through 826

11 5 28 6 2 1 66

Columns 827 through 833

10 2 9 2 19 37 14

Columns 834 through 840

29 53 4 2 1 10 9

Columns 841 through 847

64 173 1 5 17 11 16

Columns 848 through 854

9 4 56 8 4 4 1

Columns 855 through 861


Estudiante: Guillermo Rojas Bridger Aldo 8vo semestre 15/16/18

8 1 14 2 1 4 13

Columns 862 through 868

4 2 1 69 11 2 3

Columns 869 through 875

86 41 6 11 3 1 1

Columns 876 through 882

26 8 10 1 1 135 12

Columns 883 through 889

1 1 23 45 82 1 8

Columns 890 through 896

36 2 1 1 2 17 6

Columns 897 through 903

2 13 12 285 5 1 4

Columns 904 through 910

2 44 3 20 3 1 22

Columns 911 through 917

16 85 2 3 4 4 3

Columns 918 through 924

19 3 24 4 150 11 2

Columns 925 through 931

2 2 25 11 2 2 2

Columns 932 through 938

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

Вам также может понравиться

  • Los elementos de la composición artística
    Los elementos de la composición artística
    Документ1 страница
    Los elementos de la composición artística
    Aldo Guillermo Rojas
    Оценок пока нет
  • Collage Ciencias Sociales
    Collage Ciencias Sociales
    Документ10 страниц
    Collage Ciencias Sociales
    Aldo Guillermo Rojas
    Оценок пока нет
  • Conformidad - Mes de Marzo
    Conformidad - Mes de Marzo
    Документ2 страницы
    Conformidad - Mes de Marzo
    Aldo Guillermo Rojas
    Оценок пока нет
  • Actividades Cuidar Una Cuenca
    Actividades Cuidar Una Cuenca
    Документ1 страница
    Actividades Cuidar Una Cuenca
    Aldo Guillermo Rojas
    Оценок пока нет
  • Pase Vehicular Vqxhe4z4g A05 PDF
    Pase Vehicular Vqxhe4z4g A05 PDF
    Документ1 страница
    Pase Vehicular Vqxhe4z4g A05 PDF
    Aldo Guillermo Rojas
    Оценок пока нет
  • Declaracion Jurada
    Declaracion Jurada
    Документ2 страницы
    Declaracion Jurada
    Aldo Guillermo Rojas
    Оценок пока нет
  • Plan de Pruebas de Software
    Plan de Pruebas de Software
    Документ6 страниц
    Plan de Pruebas de Software
    Aldo Guillermo Rojas
    Оценок пока нет
  • Acta de Acuerdo Familiar
    Acta de Acuerdo Familiar
    Документ1 страница
    Acta de Acuerdo Familiar
    Aldo Guillermo Rojas
    0% (1)
  • Tarea Domiciliaria - Formatos
    Tarea Domiciliaria - Formatos
    Документ14 страниц
    Tarea Domiciliaria - Formatos
    Aldo Guillermo Rojas
    Оценок пока нет
  • Iso 27002
    Iso 27002
    Документ6 страниц
    Iso 27002
    Aldo Guillermo Rojas
    Оценок пока нет
  • Presupuesto y Cronograma Del Proyecto Minp
    Presupuesto y Cronograma Del Proyecto Minp
    Документ9 страниц
    Presupuesto y Cronograma Del Proyecto Minp
    Aldo Guillermo Rojas
    Оценок пока нет
  • SUNAT - Menú SOL
    SUNAT - Menú SOL
    Документ2 страницы
    SUNAT - Menú SOL
    Aldo Guillermo Rojas
    Оценок пока нет
  • Presupuesto y Cronograma Del Proyecto Minp
    Presupuesto y Cronograma Del Proyecto Minp
    Документ9 страниц
    Presupuesto y Cronograma Del Proyecto Minp
    Aldo Guillermo Rojas
    Оценок пока нет
  • Plan de PPP
    Plan de PPP
    Документ7 страниц
    Plan de PPP
    Aldo Guillermo Rojas
    Оценок пока нет
  • CANVAS Cuaderno Trabajo PDF
    CANVAS Cuaderno Trabajo PDF
    Документ49 страниц
    CANVAS Cuaderno Trabajo PDF
    Anonymous Fc8eWQ8Q3g
    Оценок пока нет
  • Examen Maquera
    Examen Maquera
    Документ2 страницы
    Examen Maquera
    Aldo Guillermo Rojas
    Оценок пока нет
  • Acta
    Acta
    Документ1 страница
    Acta
    Aldo Guillermo Rojas
    Оценок пока нет
  • Plan de PPP
    Plan de PPP
    Документ5 страниц
    Plan de PPP
    Aldo Guillermo Rojas
    Оценок пока нет
  • NMAP
    NMAP
    Документ4 страницы
    NMAP
    Aldo Guillermo Rojas
    Оценок пока нет
  • Estatuto Rectificado Por Rigo Inga
    Estatuto Rectificado Por Rigo Inga
    Документ7 страниц
    Estatuto Rectificado Por Rigo Inga
    Aldo Guillermo Rojas
    Оценок пока нет
  • Collage Ciencias Sociales
    Collage Ciencias Sociales
    Документ10 страниц
    Collage Ciencias Sociales
    Aldo Guillermo Rojas
    Оценок пока нет
  • Poco Work
    Poco Work
    Документ13 страниц
    Poco Work
    Aldo Guillermo Rojas
    Оценок пока нет
  • Poco Work
    Poco Work
    Документ13 страниц
    Poco Work
    Aldo Guillermo Rojas
    Оценок пока нет
  • PLan de Practicas Pre Profesionales
    PLan de Practicas Pre Profesionales
    Документ4 страницы
    PLan de Practicas Pre Profesionales
    Aldo Guillermo Rojas
    100% (1)
  • Hoja de Supervision Semanal
    Hoja de Supervision Semanal
    Документ9 страниц
    Hoja de Supervision Semanal
    Aldo Guillermo Rojas
    Оценок пока нет
  • Acta recepción devolución laboratorio
    Acta recepción devolución laboratorio
    Документ2 страницы
    Acta recepción devolución laboratorio
    Aldo Guillermo Rojas
    Оценок пока нет
  • Ecomerce Ejemplos
    Ecomerce Ejemplos
    Документ3 страницы
    Ecomerce Ejemplos
    Aldo Guillermo Rojas
    Оценок пока нет
  • Random
    Random
    Документ2 страницы
    Random
    Aldo Guillermo Rojas
    Оценок пока нет
  • Centro de Tutoria y Seguimiento Del Egresado
    Centro de Tutoria y Seguimiento Del Egresado
    Документ1 страница
    Centro de Tutoria y Seguimiento Del Egresado
    Aldo Guillermo Rojas
    Оценок пока нет