Vous êtes sur la page 1sur 12

EAP DE INGENIERIA ELECTRONICA Y

TELECOMUNICACIONES

2014-1

PROCESAMIENTO DIGITAL DE IMAGEN Y VOZ

EXAMEN
PARCIAL

En Nmeros

En Letras

DATOS DEL ALUMNO (Completar obligatoriamente todos los campos)

Apellidos
nombres:

UDED

KCANA ALVAREZ JESUS FERNANDO

Cdigo

AREQUIPA

Fecha:

201210021
2
19/7/2014

DATOS DEL CURSO

Docente:

Gabriel Percy Michhue Vela

Ciclo:

Mdulo:

Periodo
Acadmico:

2014-1

Estimado alumno

INDICACIO
NES PARA
EL
ALUMNO

Fjese en el puntaje anotado al lado derecho de cada pregunta para dosificar su


tiempo.
Evite borrones y enmendaduras. De presentarse el caso que no se entienda
alguna respuesta, sta no ser evaluada.
Evite el plagio. De presentarse el caso se anula el examen y la calificacin es
cero (00).
Se tomar en cuenta la ortografa.

M-EP20141

PREGUNTAS
PREGUNTA 1[10 puntos]
Dado el siguiente grafico.

1. Utilizar imfinfo para conocer las propiedades de la imagen, comentar [1 puntos]


info = imfinfo('dibujo1.jpg')

Filename: 'dibujo1.jpg'
FileModDate: '19-jul-2014 03:08:07'
FileSize: 114449
Format: 'jpg'
FormatVersion: ''
Width: 1600
Height: 931
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}
2. Generar una matriz de datos, utilice imread [1 puntos], no lo liste
a

= imread('dibujo1.jpg')
M-EP20141

3. Asegrese de que el grafico sea monocromtico, en caso contrario convertirlo.


a
= imread('dibujo1.jpg');
a_gray = rgb2gray(a);
size(a);
size(a_gray);
figure(1)
%subplot(221)
imshow(a_gray)

4. Graficar el histograma del grafico [3 puntos]


clc
fig = imfinfo('dibujo1.jpg');
M-EP20141

a
= imread('dibujo1.jpg');
a_gray = rgb2gray(a);
size(a)
size(a_gray)
figure(1)
subplot(221)
imshow(a_gray)
m1= 50;
m2=230;
factor = 255/(m2-m1);
a2 = (a_gray-m1)*factor;
subplot(222)
imhist(a_gray)
subplot(223)
imhist(a2)
subplot(224)
imshow(a2)
4

x 10
3
2
1
0
0

100

200

x 10
3
2
1
0
0

100

200

5. Ajustar el grafico para mejorar contraste [3 puntos], no utilize imadjust.


clc
fig = imfinfo('dibujo1.jpg');
a
= imread('dibujo1.jpg');
a_gray = rgb2gray(a);
size(a)
size(a_gray)
figure(1)
subplot(221)
imshow(a_gray)
m1= 50;
m2=230;
factor = 255/(m2-m1);
M-EP20141

aumentar=2;
factor=factor/aumentar;
a2 = (a_gray-m1)*factor;
subplot(222)
imhist(a_gray)
subplot(223)
imhist(a2)
subplot(224)
imshow(a2)

Resultado:
4

x 10
3
2
1
0
0

100

200

x 10

3
2
1
0
0

100

200

6. Comparar el grafico mejorado con el grafico original. [2 puntos]

M-EP20141

x 10
3
2
1
0
0

100

200

x 10

3
2
1
0
0

100

200

x 10

x 10

2.5

2.5

1.5

1.5

0.5

0.5

0
0

100

200

100

200

Para fines de calificacin enviar el archivo Word junto con el programa en


Matlab que hace la correccin global de la imagen, y la imagen de salida en
formato JPG.

M-EP20141

Nota: El grafico fue extrado de http://4.bp.blogspot.com/-6FJgBl6mVLA/T6P8sh7MXI/AAAAAAAAAeY/KUlcYT8_cRI/s1600/IMG_7049a.jpg

PREGUNTA 2[2 puntos]


Dado el siguiente grafico

M-EP20141

rosa1 =
Filename: 'rosa1.jpg'
FileModDate: '19-jul-2014 04:24:46'
FileSize: 10475
Format: 'jpg'
FormatVersion: ''
Width: 197
Height: 188
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}

rosa2 =
Filename: 'rosa2.jpg'
FileModDate: '19-jul-2014 04:25:29'
FileSize: 10583
Format: 'jpg'
FormatVersion: ''
Width: 197
Height: 188
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}

M-EP20141

rosa3 =
Filename: 'rosa3.jpg'
FileModDate: '19-jul-2014 04:25:47'
FileSize: 9873
Format: 'jpg'
FormatVersion: ''
Width: 197
Height: 188
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}

rosa4 =
Filename: 'rosa4.jpg'
FileModDate: '19-jul-2014 04:26:01'
FileSize: 9592
Format: 'jpg'
FormatVersion: ''
Width: 197
Height: 188
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}

rosa5 =

M-EP20141

Filename: 'rosa5.jpg'
FileModDate: '19-jul-2014 04:26:20'
FileSize: 8570
Format: 'jpg'
FormatVersion: ''
Width: 197
Height: 188
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}

rosa6 =
Filename: 'rosa6.jpg'
FileModDate: '19-jul-2014 04:26:36'
FileSize: 7109
Format: 'jpg'
FormatVersion: ''
Width: 197
Height: 188
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}

M-EP20141

Analice cual de los grficos tiene la misma resolucin, explique si hay diferencias en la
compresin espacial o de grises.
PREGUNTA 3 [8 puntos]

Usando la misma imagen de la pregunta uno, realice la siguiente interpolacin


interpolacin. Muestre el histograma de entrada y el de salida

Compare con la imagen original,comente.

clc
rosa = imread('rosa.jpg');
rosa_gray = rgb2gray(rosa);
size(rosa)
size(rosa_gray)
figure(1)
subplot(221)
imshow(rosa_gray)
m1= 64;
m2=220;
factor = 255/(m2-m1);
rosa2 = (rosa_gray-m1)*factor;
subplot(222)
imhist(rosa_gray)
subplot(223)
imhist(rosa2)
subplot(224)
imshow(rosa2)
figure(2)
subplot(311)
imhist(rosa(:,:,1))
subplot(132)
imhist(rosa(:,:,2))
subplot(133)
imhist(rosa(:,:,3))
colormap gray;
M-EP20141

8000
6000
4000
2000
0
0

100

200

x 10
3
2
1
0
0

100

200

8000

10000

7000

9000

6000

8000
7000

5000

6000

4000

5000

3000

4000
3000

2000

2000

1000

1000

0
0

100

200

100

200

M-EP20141

Vous aimerez peut-être aussi