11.07.2015 Views

Download document (10.35 MB) - Escuela Superior de Informática ...

Download document (10.35 MB) - Escuela Superior de Informática ...

Download document (10.35 MB) - Escuela Superior de Informática ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.1. Visión por Computador 25b i t d e p t h : p r o f u n d i d a d <strong>de</strong> b i t ( 8 , 1 6 , 3 1 . . . )number of c h a n n e l s : número <strong>de</strong> c a n a l e s −m a t r i z( S |U| F ) : e l t i p o <strong>de</strong> d a t o s <strong>de</strong> b i t :S : con s i g n oU: s i n s i g n oF : f l o t a n t eCvScalar: La estructura CvScalar es simplemente un vector <strong>de</strong> cuatro elementos. Éstaes muy útil a la hora <strong>de</strong> acce<strong>de</strong>r a los píxeles <strong>de</strong> una imagen, sobre todo si es una imagenen color. La estructura CvScalar es la siguiente:C v S c a l a rdoublev a l [ 4 ] ; / / v e c t o r 4DCvPoint: Define las coor<strong>de</strong>nadas <strong>de</strong> un punto usando números enteros.t y p e d e f s t r u c t CvPoint {i n t x ; / ∗ c o o r d e n a d a x ∗ /i n t y ; / ∗ c o o r d e n a d a y ∗ /} CvPoint ;CvPoint2D32f: Define las coor<strong>de</strong>nadas <strong>de</strong> un punto usando punto flotante.t y p e d e f s t r u c t CvPoint2D32f {f l o a t x ; / ∗ c o o r d e n a d a x ∗ /f l o a t y ; / ∗ c o o r d e n a d a y ∗ /} CvPoint2D32f ;CvSize: Estructura utilizada para <strong>de</strong>finir las dimensiones <strong>de</strong> un rectángulo en píxeles.t y p e d e f s t r u c t CvSize {i n t width ; / ∗ a n c h u r a d e l r e c t á n g u l o ( v a l o r en p í x e l e s ∗ /i n t h e i g h t ; / ∗ a l t u r a d e l r e c t á n g u l o ( v a l o r en p í x e l e s ) ∗ /} CvSize ;3.1.2.3 Funciones más comunes en OpenCVAlgunas <strong>de</strong> las funciones más utilizadas y, por lo tanto, más importantes son:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!