Part 0 - Introduction to OpenCV, Image Processing and Computer ...

beeuppityAI and Robotics

Oct 19, 2013 (3 years and 11 months ago)

114 views

OpenCV



Intel
®

OPEN SOURCE COMPUTER VISION
LIBRARY

Iran University of Science and Technology

Machine Vision and Image Processing Conference 2011

November 2011

Ehsan Adeli Mosabbeb

Bahareh

Torkman

Karambakhsh

Ebrahim

Emami


Overview

Introduction
(C++, CV, Image and Video)

Running
OpenCV

Simple Examples

Image Filtering and Processing

Video and Camera

Machine Learning Algorithms

OpenCV

and C++

Further Information

2

هناخباتک اب ییانشآ هاگراک
OpenCV

3

Features


Image data manipulation


allocation, release, copying, setting, conversion


Image and video I/O


file and camera based input, image/video file output


Matrix and vector manipulation, and linear algebra routines


products, solvers, eigenvalues, SVD


Various dynamic data structures


lists, queues, sets, trees, graphs


Basic image processing


filtering, edge detection, corner detection, sampling and
interpolation, color conversion, morphological operations,
histograms, image pyramids

هناخباتک اب ییانشآ هاگراک
OpenCV

4

Features
(
cont’d
)


Structural analysis


connected components, contour processing, distance transform, various
moments, template matching, Hough transform, polygonal
approximation, line fitting, ellipse fitting, Delaunay triangulation


Camera calibration


finding and tracking calibration patterns, calibration, fundamental
matrix estimation,
homography

estimation, stereo correspondence


Motion analysis


optical flow, motion segmentation, tracking


Object recognition


eigen
-
methods, HMM


Basic GUI


display image/video, keyboard and mouse handling, scroll
-
bars


Image labeling


line, conic, polygon, text drawing

هناخباتک اب ییانشآ هاگراک
OpenCV

Modules


Basic data structures,

core


Linear and non
-
linear image filtering, transformations, conversion, and …

imgproc


Motion estimation, background subtraction, and object tracking

Video


Basic multiple
-
view geometry algorithms,

calib
3
d


Salient feature detectors, descriptors, and descriptor matchers.

features
2
d


Detection of objects and instances of the predefined classes.

objdetect


Video capturing, image/video
codecs
, and simple UI capabilities.

highgui


GPU
-
accelerated algorithms from different
OpenCV

modules.

gpu


Machine learning algorithms

ml

5

اب ییانشآ هاگراک
هناخباتک

OpenCV

Image Processing and
Computer Vision


Image Acquisition


Compression


Image/Video Formats


Feature Detection


Low Level Processing


Segmentation


Filtering


Conceptual Reconstruction


Extracting
Meaninful

Concept


Recognition


Machine Learning

هناخباتک اب ییانشآ هاگراک
OpenCV

6

C/C++


statically typed


free
-
form


multi
-
paradigm


compiled


general
-
purpose


An intermediate
-
level language,

هناخباتک اب ییانشآ هاگراک
OpenCV

7

Image Data Types

Raster

ANI ANIM APNG ART BEF BMF BMP BSAVE CAL CIN CPC CPT DPX
ECW EXR FITS FLIC FPX GIF
HDRi

ICER ICNS ICO CUR ICS ILBM
JBIG JBIG2 JNG JPEG
JPEG

2000 JPEG
-
LS JPEG
-
HDR JPEG XR
MNG MIFF PBM PCX PGF PGM
PICtor

PNG PPM PSD PSB PSP
QTVR RAD RGBE SGI TGA TIFF (TIFF/EP TIFF/IT
Logluv

TIFF)
WBMP
WebP

XAR XBM XCF XPM

Raw

CIFF DNG ORF

Vector

AI CDR CGM DXF EVA EMF Gerber HVIF IGES PGML SVG VML
WMF

Compound

CDF
DjVu

EPS PDF PICT PS SWF XAML

Related

Exchangeable image file format (
Exif
) Extensible Metadata
Platform (XMP)

هناخباتک اب ییانشآ هاگراک
OpenCV

8

OpenCV

Supported
Image Formats

䉍BⰠ䑉䈬,䩐䕇Ⱐ䩐JⰠ,偅Ⱐ偎PⰠ偂,Ⱐ假MⰠ偐MⰠ
SRⰠ,䅓Ⱐ呉FFⰠ呉F

Video

هناخباتک اب ییانشآ هاگراک
OpenCV

9


Video
codecs

and file containers


divx video in AVI file container


Color Space and Color Depth


RBG,
8
bits/channel


YCbCr

or YUV


Chroma

Subsampling


4
:
2
:
2
,
4
:
2
:
0


Video
(cont’d)

Container

FourCC

Name

Description

AVI

'DIB '

RGB(A)

Uncompressed RGB, 24 or 32 bit

AVI

'I420'

RAW I420

Uncompressed YUV, 4:2:0 chroma
subsampled

AVI

'IYUV'

RAW I420

identical to I420


Recommended
Codecs
:

هناخباتک اب ییانشآ هاگراک
OpenCV

10



هناخباتک اب ییانشآ هاگراک
OpenCV

11