You are on page 1of 16

MACROPROCESO RECURSOS E INFRAESTRUCTURA Y

LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

INFORMACIÓN BÁSICA
PRÁCTICA No.:2
NOMBRE DE LA PRÁCTICA:
Segmentación y mejora de imagen.

ASIGNATURA:
Procesamiento digital de imagenes
TEMA DE LA PRÁCTICA:
Basic statistic, brightness and contrast manipulation.

LABORATORIO A UTILIZAR: Laboratorio de informática

TIEMPO: 8 (horas) TRABAJO GRUPAL: TRABAJO INDIVIDUAL:

CONTENIDO DE LA GUÍA
(Para elaborar por el Docente)
COMPETENCIAS DISCIPLINARES.

Known the basic image concepts to struct advanced knowns.

COMPETENCIAS INVESTIGATIVAS.

Search and select proper information about a specific topic.


PALABRAS CLAVE

ENHANCEMENT, LOOK UP TABLE, BRIGTHNESS, CONTRAST


INTRODUCTION.

The Biomedical Engineering provides assistance for medical diagnosis techniques based on medical

information from different modalities like medical images.


MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

The medical Images are defined as the set of techniques and processes to obtain human body images

with clinical relevance. Different types of diseases are only revealed to the physicians when

they analyze the information from a clinical image, but some signs of illness are difficult to see

or need special processing to reveal the relevant information.

THEORETICAL FRAMEWORK

Quality enhancement consists of a set of operations to reveal or restore details in the image of a
particular application. Thus, for example, a method to enhance X-ray images is not particularly useful
to ultrasound images.

Image enhancement can be divided into two main currents, spatial domain and frequency domain
methods.

OpenCV
OpenCV was started at Intel in 1999 by Gary Bradsky and the first release came out in 2000. Vadim
Pisarevsky joined Gary Bradsky to manage Intel’s Russian software OpenCV team. In 2005,
OpenCV was used on Stanley, the vehicle who won 2005 DARPA Grand Challenge. Later its active
development continued under the support of Willow Garage, with Gary Bradsky and Vadim
Pisarevsky leading the project. Right now, OpenCV supports a lot of algorithms related to Computer
Vision and Machine Learning and it is expanding day-by-day.
Currently OpenCV supports a wide variety of programming languages like C++, Python, Java etc and
is available on different platforms including Windows, Linux, OS X, Android, iOS etc. Also, interfaces
based on CUDA and OpenCL are also under active development for high-speed GPU operations.
OpenCV-Python is the Python API of OpenCV. It combines the best qualities of OpenCV C++ API
and Python language.
Take from:
https://opencv-python-
tutroals.readthedocs.io/en/latest/py_tutorials/py_setup/py_intro/py_intro.html#intro

Load a color image first:


>>> import cv2
>>> import numpy as np
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

>>> img = cv2.imread('messi5.jpg')


Splitting and Merging Image Channels
>>> b,g,r = cv2.split(img)
>>> img = cv2.merge((b,g,r))
Or
>>> b = img[:,:,0]
Take from:
https://opencv-python-
tutroals.readthedocs.io/en/latest/py_tutorials/py_core/py_basic_ops/py_basic_ops.html#basi
c-ops

GLOSSARY

Enhacement: improve the image quality.

Space Domain: the original space in which the image is captured.

Background: the ground or parts, as of a scene, situated in the rear.

Foreground: the front or parts, as of a scene, situated in the front.

Probability: the quality or fact of being probable.

Probability Density Function: A function, whose value at any given sample (or point) in the sample
space (the set of possible values taken by the random variable) can be interpreted as providing a
relative likelihood that the value of the random variable would equal that sample.

MATERIALES, EQUIPOS Y REACTIVOS A UTILIZAR (Indicar las cantidades)

Materiales y Equipos Reactivos Materiales Estudiante


Computador con
Python(Thonny)
Opencv, scikit-image, scikit-
learn, numpy (Librerias para
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

Thonny)

PRECAUCIONES Y MANEJO DE MATERIALES Y EQUIPOS. CONSULTA DE EQUIPO


ESPECIALIZADO.

Para el inicio de las actividades de la práctica de laboratorio de electrónica, recuerde las


siguientes indicaciones:

Indicaciones generales para manejo de riesgo eléctrico:

 Durante la permanencia en el Laboratorio, el practicante debe certificar que se


cumple y se sigue con el Reglamento Técnico de Instalaciones Eléctricas (RETIE),
Resolución 18 0398 de 7 de abril de 2004 y Resolución 18 1419 de 1 de Noviembre
de 2005 del Ministerio de Minas y Energía.(artículo 5. Riesgos eléctricos) RETIE
 Durante la permanencia en el Laboratorio, el practicante debe retirar de sus manos y
brazos: anillos, cadenas u otros adornos metálicos que puedan crear riesgos de
choques eléctricos.
 Revisar que el área de trabajo este despejada sin elementos ajenos a la práctica, ni
conductores sueltos o expuestos, disponer la instrumentación y materiales de forma
organizada.
 En caso de tener cabello largo, sujetarlo para evitar contacto con los componentes o
la instrumentación, de igual forma evitar prendas con elementos sueltos o que
puedan interferir.
 Cuando suministre energía eléctrica al circuito en prueba o evaluación, no entre en
contacto con partes metálicas que estén energizadas.
 No utilice cables o alambres desnudos.
 Antes de suministrar energía eléctrica (conexión de la batería, pila o fuente de poder)
a los circuitos de la práctica, se debe revisar cuidadosamente las conexiones
propuestas en el diagrama del circuito de prueba, para evitar cortos circuitos.
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

 No ingresar líquidos o alimentos al área de laboratorio, que puedan causar riesgos de


cortos o afectar los resultados de la práctica.
Indicaciones para manejo de los equipos de laboratorio de electrónica y materiales:

 Para utilizar un Multímetro verifique previamente la función que va a evaluar, así


como la escala de medida o rango, la polaridad para no causar accidentes que
puedan destruir el instrumento o causarle traumatismos físicos y económicos al
practicante.
 Utilice las herramientas propuestas en la práctica. No se permite utilizar corta uñas,
limas para las uñas u otros objetos no apropiados para la práctica de buena
ingeniería.
 Cumplir con el REGLAMENTO DE UTILIZACIÓN DE LOS LABORATORIOS DE
ELECTRÓNICA DE LA UMB.
 La fuente de poder LM 4501, está dotada de un indicador de sobre carga (PV Max.),
el cual se encenderá cuando los terminales de potencia (+5 V DC, +15VDC y -15 VDC)
presenten un corto circuito.
 Los elementos metálicos ajenos a la práctica (atornilladores, tornillos, monedas, etc.)
deben permanecer lejos de las ranuras X2, X3, X4.
 Los terminales de conexión A, B, C, Y D no deben ser conectados a ningún equipo,
deben permanecer libres.
 Este equipo puede ser sensible a electricidad estática, por lo tanto debe conectarse
la manilla anti electrostática en punto metálico localizado en la parte inferior
izquierda.
 Revise que los equipos en préstamo funcionen correctamente en el momento de
solicitarlos en el almacén, de lo contrario perderá tiempo en la realización de la
práctica o en caso más grave, hacer la reposición de un equipo que usted no averió.
 Mantenga el orden ubicándose exclusivamente en el banco de trabajo asignado por
los laboratoristas. No cambie el banco de trabajo sin la autorización de estos.
 Revise que los elementos de conexión (sondas, conectores, caimanes, etc.)
funcionen correctamente antes de usarlos en mediciones de los circuitos, de manera
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

que detecte y corrija las fallas antes de iniciar la práctica.


 Por su seguridad y la de sus compañeros, esté atento a los equipos tomados en
préstamo, así como sus propios materiales y objetos personales.
 Consulte con el docente cualquier duda que tenga respecto al uso correcto de los
equipos. Recuerde que son instrumentos sofisticados que deben ser manipulados
adecuadamente para evitar daños y fallas de funcionamiento.
 Concéntrese en el trabajo que esté realizando en la práctica de laboratorio. Las
distracciones pueden poner en riesgo su integridad física y la de sus compañeros.
 Para el resto de la instrumentación consultar los manuales de operación de los
equipos.

Otros aspectos que se deben tomar en cuenta están regidos por el Reglamento Estudiantil y
de Laboratorios Vigentes.

PROCEDIMIENTO A UTILIZAR.

SESSION ONE (Statistic information) the following functions:

1. load any image.

2. Extract the basic information from the image and show it. Compute the average from the
histogram, compute the standard deviation from the image and compare it using the histogram
too, compute the coefficient of variation, Compute the signal noise to ratio SNR from the
image.
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

SESSION TWO

1. Use the output of your previous function (histogram guide #1) to compute the probability
distribution of brightnesses and compute the cumulative density probability function of
brightnesses show it.

SESSION THREE

2. Build the different options to apply the equations of enhancement and show the resulting
image and its histogram. Compare the results, taking the last results of your image, do the
proper image histogram equalization.

SESSION FOUR

3. Normalize the image between 0 and 1 and between -1 and 1 values.

BIBLIOGRAFÍA RECOMENDADA.

Campbell, F. W. & Robson, J. G. Application of Fourier analysis to the visibility of gratings..


Journal of Physiology 197 (3): 551–566. .(1968).
Rafael C. Gonzales, Richard E. Woods.Digital Image Processing, Third edition, Prentice
Hall, Pearson. 2008.
Jhon C. Russ. Sixth Edition, The Image Processing Handbook, CRC press,2011.

Rafael C. Gonzales, Richard E. Woods. Digital Image Processing Using PYTHON, Second
edition, Gatesmark Publishing; 2009.
----------------------------------------------------------------------------------------------------------------------------
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

Tutorials Point simple easy learning, Digital image processing, Web page,
http://www.tutorialspoint.com/dip/index.htm, seeing 22/06/16
Statistics in image processing, Web page
http://www.mif.vu.lt/atpazinimas/dip/FIP/fip-Statisti.html, seeing 24/06/2016

ELABORÓ REVISÓ APROBÓ


I.E. M.Sc. Marvin Javier
Villamizar Herrera
Director de Programa de Jefatura de Laboratorios
I.B. M.Sc Jorge Andrés Alvarez Biomédica:
Triana
Margarita María Pineda
Grupo o Programa de: Romero
Fecha:
Ingeniería Biomédica. Fecha:3/12/2018

Fecha: 3/12/2018

INFORME DE LABORATORIO
(Para elaborar por el Estudiante)
ESTUDIANTES: ASIGNATURA:


GRUPO:


NOTA:



CARRERA: TRABAJO GRUPAL: TRABAJO INDIVIDUAL:

X
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

FORMULE TRES HABILIDADES QUE DESEE ADQUIRIR O DESARROLLAR A TRAVÉS DE LA


PRÁCTICA DE LABORATORIO. El estudiante formulará desde la revisión de la guía las
habilidades que desarrollará a través de la práctica

Elabore un Mapa conceptual del tema a tratar en la Práctica de Laboratorio. El estudiante


construirá un mapa conceptual a partir de las palabras claves suministradas por el docente
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

RESULTADOS.

The student has to register the obtained data and results to:

 load any image.

 Basic information from the image in to an static text. Compute the average from the histogram,
compute the standard deviation from the image and compare it using the histogram too,
compute the coefficient of variation, Compute the signal noise to ratio SNR from the image.

 Compute the probability distribution of brightness’s and compute the density probability
function of brightness’s show it.

 Apply the equations of enhancement and show the resulting image and its histogram. Compare
the results.

 Normalize the image between 0 and 1 and between -1 and 1 values.

 Adaptative equalization (clahe) (1.into a boundary window 2. For the complete image ) to
adjust the following distributions: Normal equalization, Exponential, Rayleight and Gaussian.
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

CUESTIONARIO.

1. Explain the meaning of the SNR factor in digital image processing.

2. Why a histogram is important in digital image processing?


MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

3. Explain how the Rayleight distribution works?

Formalizar el conocimiento a través de diversas preguntas (máximo 3) en donde el estudiante


estructure los conceptos a partir de los resultados obtenidos y el fundamento teórico, además se
formularán preguntas que los conduzcan al análisis de los resultados. Estas deben ser de tipo
saber-pro (abiertas o cerradas), no conceptuales.

CAUSAS DE ERROR Y ACCIONES PARA OBTENER MEJORES RESULTADOS. El estudioso


describirá las variables que a su consideración dificultaron el alcance de las habilidades propuestas
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

CONCLUSIONES. El estudiante consignará en este espacio la síntesis de los logros alcanzados a


través del desarrollo de la práctica de Laboratorio.

APLICACIÓN PROFESIONAL DE LA PRÁCTICA REALIZADA. Exponga en este espacio la


relación de las competencias y habilidades desarrolladas con el ejercicio de su futura profesión.
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

BIBLIOGRAFIA UTILIZADA. Utilizando las normas APA

ANEXOS. En este espacio presente los anexos si la práctica lo requiere


MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

RUBRICA DE EVALUACIÓN.

RUBRICA DE EVALUACIÓN
NOT
INDIVIDUAL CRITERIOS DE EVALUACIÓN
A
Estudiante 0 – 1,0 1,1 - 2,5 2,6 - 3,5 3.6 - 4,5 4,6 - 5,0

Habil 1.  
idad 2.            
3.  
NOT
GRUPAL % 0 – 1,0 1,1 - 2,5 2,6 - 3,5 3.6 - 4,5 4,6 - 5,0
A
Pr
oc
ed
im
en
ta
The program works
l The program is The program is The program works The program
The block diagram is  3 and the students have
(a not working and it working and it was and the students have accomplish with all the
pr
used to design and 5
was not design by not design by the the block diagram to
the block diagram and
requirements in a
 
explain the program. % the design to explain
en the students students explain it perfect way
it
de
r
a
ha
ce
r)
C The explanation is
The students know They are able to The principle of The design of the
og They know the clear and shows the
how the program recognize some operation of the program was made by
ni
works and each part
program and its
blocks of the program is explained
comparison between
itself and shows how it  
tiv general function the theory and the
of its components program accurately works.
a students prototype
(a
co pr
m en 35
The student is able to
pe de %  The principles of The student is able to
The student know The principles of The student is able to identify problems and
te r operation of the identify each part of
how to purge and operation of the identify each block of to propose solutions
nc a
correct errors in their algorithm are not
algorithm are clear
the algorithm in a flow
the algorithm in a
according to the
 
ia co but not how to use flow diagram and he
code. clear diagram optimization of the
n it knows how it works
program.
oc
er
)
So
ci
o
af
ec
tiv It is possible to work The students are willing
a in a positive Respect the The students are The students work in to work in a respectful
 5 Respect the rules
(a classroom
% of the lab
instruction of the willing to help each a respectful and kind and kind atmosphere  
pr atmosphere based on professor other atmosphere and to help each other
en respect and empathy to build knowledge
de
r
a
se
r)
C The work group is  1 They explain the They explain the They explain the He explain the
The explanation in
o able to explain and 5
no clear
process without principles of design of principles of design of principles of design and  
m teach how to design % technical words the algorithm using the algorithm using operation of the
MACROPROCESO RECURSOS E INFRAESTRUCTURA Y
LABORATORIOS
Nombre del Proceso:
CÓDIGO: LA-FM-007
LABORATORIOS

Nombre del Documento: VERSIÓN: 3

FORMATO PARA PRACTICAS DE LABORATORIO FECHA: 18/Marzo/2017

u and make an specific


ni program to solve an each one of its main program using each one
each one of its parts
ca digital image parts. of its parts
tiv processing problem.
a
(a
pr
en
The students use the The students explain All the report of the The english language
de The students The students try to
english technical their work using a students work was was used accurately to
r
language in a proper
explain their work use english in their
english/spanish mixed made in a proper communicate during
 
a in spanish explanation
way language english the class
co
nv
ivi
r)
In
The students use The students use The user and The students use
ve Read and look for The students look for
 1 just the just the operational manual different and serious
sti extra information to different source to
ga accomplish the
0 information given information given were used to work in
improve their own
sources to work with  
% by the teacher by the teacher in the design of the during each phase of
tiv purpose of the class knowledge
during the class the extra material machine the project
a

You might also like