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

PROGRAMA DE PROCESAMIENTO DIGITAL DE SEALES

Primer Parcial

CONVERSIN A IMAGEN BINARIA


Alex Antonio Zambrano Moreira
aazambrano8@espe.edu.ec

RESUMEN: 1. INTRODUCCIN.
En este programa se pretende realizar la lectura El manejo de imgenes dentro del rea de
carga y conversin de una imagen en formato procesamiento digital, es de mucha
tiff a una binaria 1s y 0s, imagen en tono de importancia ya que permite analizar de forma
gris, permitiendo visualizar su matriz binaria y real el comportamiento y transformacin de las
la respectiva conversin de la imagen mediante seales.
la utilizacin de MatLab.
PALABRAS CLAVE: 2. OBJETIVOS:
Manejo, imagen binaria, matriz, MatLab. Realizar la lectura, y carga de la imagen.
Realizar el cambio de formato, de jpg a
ABSTRACT. formato .tiff
In this program it is intended to read and load Hacer el respectivo manejo de las
an image in tiff format to a binary 1s and 0s, imgenes, transformando las mismas a
gray tone image, allowing to visualize its tonos de gris, matriz binaria.
binary matrix and the respective image
conversion through the use of MatLab.
3. MATERIALES:
KEY WORDS:
Computadora con Matlab.
Image binary, management, matrix, MatLab.
Imgenes
4. PROCEDIMIENTO:

IMAGEN (VARIEDAD DE COLORES_CUARTO)

PROGRAMACIN
fprintf('\nUNIVERSIDAD DE LAS FUERZAS ARMADAS ESPE LATACUNGA');
fprintf('\nINGENIERA ELECTRNICA E INSTRUMENTACIN');
fprintf('\nNombre: Alex Antonio Zambrano Moreira');
fprintf('\nPROCESOS ESTOCSTICOS');

M=imread('cuarto.tiff');

whos M

[filas,columnas,adicional] = size(M)
BW = logical(zeros(filas,columnas));
umbral=128;

for k=1:filas
for l=1:columnas

a(k,l) = (.299*M(k,l,1))+(.587*M(k,l,2))+(.114*M(k,l,3));
end
end

whos a

for i = 1:filas
for j = 1:columnas
if a(i,j) < umbral
BW(i,j) = 0;
else
BW(i,j) = 1;
end
end
end

disp(BW)
imshow(BW);

CORRIDO DEL PROGRAMA

6. RECOMENDACIONES
5. CONCLUSIONES Tener cuidado cuando se trabaja con
Se ha realizado exitosamente la imgenes con gran variedad de colores,
lectura, carga y conversin de la pueden llegar a perderse datos si no se
imagen a procesar. toman las medidas respectivas.
En esta prctica se ha llevado a cabo Realizar la transformacin de formato
la investigacin de funciones que de las imgenes a formato .tiff para que
faciliten la transformacin a escalas de sea ms fcil el tratamiento de las
gris. mismas.
7. BIBLIOGRAFIA.

http://asignatura.us.es/imagend
igital/Matlab_PID_1314.pdf
https://es.slideshare.net/lonely
113/procesamiento-digital-de-
imgenes-con-matlab
https://www.dspace.espol.edu.
ec/bitstream/123456789/10740
/14/Manejo%20basico%20de
%20imagenes_matlab.pdf

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