SlideShare una empresa de Scribd logo
1 de 38
Descargar para leer sin conexión
Chapter 1 Introduction
*   What is Computer Vision?
*   Applications
*   Relations with other fields
*   Resources
1.1 What is Computer Vision?

Computer vision is a field that includes methods
for acquiring, processing, analyzing, and
understanding one or more images from the real
world in order to produce and communicate
numerical or symbolic information to users or
other systems.

How to acquire images?
Why we need to process and analyze images?
Why we want the computer to understand the images?
1.2 Applications
Industrial inspection and quality control – detect
cracks in bottle
Reverse engineering – generate 3D object model
from images
Face/gesture recognition – security
Track and count humans – surveillance, human-
computer interaction
Track and count vehicles – road monitoring
Image database query – automatic image retrieval
Medical image analysis – assist diagnosis, surgery
1.3 Related disciplines
computer vision = machine vision = image understanding




  Computer               Image
   Vision              Processing




           noise filtering, edge detection, etc.
Many computer vision methods use and extend
  signal processing techniques
  Pattern recognition can be considered as part of
  computer vision
  Computer vision is, in some ways, the inverse
  of computer graphics.


                 CV                  CG




original image         3D model           synthetic image
1.4 To know more about Computer Vision

1.4.1 conference

• International Conference on Computer Vision
  (ICCV)
• International Conference on Computer Vision
  and Pattern Recognition (CVPR)
• European Conference on Computer Vision
  (ECCV)
1.4.2 journal
• International Journal of Computer Vision
• IEEE Transactions on Pattern Analysis and
  Machine Intelligence
• Computer Vision and Image Understanding
• Machine Vision and Applications

1.4.3 internet
• CVonline
  (http://homepages.inf.ed.ac.uk/rbf/CVonline)
• Numerical Recipes
  (http://apps.nrbook.com/empanel/index.html#)
1.5 Overview of MATLAB
1.5.1 The MATLAB environment

• when you start MATLAB, the command window
  will open with the prompt >>
• user can enter commands or data in the
  command window
• for each command typed in, you get the result
  immediately
• if you do not assign the result to a variable,
  MATLAB will assign it to ans
1.5.2 Assignment

• assign value(s) to variable name(s)

scalar variable
>> a = 4            >> a = 4, A = 6
a=                  a=
       4                  4        Separate
>>                  A=             multiple
                          6        commands by
>> a = 4;           >>             comma
>>
                   Case sensitive
No echo print
array
• a collection of values represented by one
   variable name
• one-dimensional array – vector
• two-dimensional array – matrix

>> a = [1 2 3 4 5]
a=
   1 2 3 4           5       Row vector
>>
>> a = [1;2;3;4;5]     >> a = [1 2 3 4 5]'
a=                     a=
   1                      1 Use single quote
   2                      2 as transpose
   3                      3 operator
   4                      4
   5                      5
>>                     >>

             Column vector
>> A = [1 2 3; 4 5 6; 7 8 9]     >> A = [1 2 3
A=                                      456
   1 2 3                                7 8 9]
   4 5 6                         A=
   7 8 9                            1 2 3
>>                                  4 5 6
                                    7 8 9
                                 >>

                               Press Enter key
                               to separate the rows
To access individual element:

>> a(3)
ans =
   3
>>
>> A(2,3)
ans =     Column index
   6 Row index
>>
colon operator
>> A(2,:)
ans =
   4 5 6
>>
Access the entire row
      increment (If it is omitted,
start          end the default value is 1)
>> t = 1:0.5:3
t=
  1.0000 1.5000     2.0000 2.5000 3.0000
>>
negative increment

>> t = 10:-1:5
t=
  10 9 8         7    6   5
>>

To extract part of the array:

>> t(2:4)
ans =
   9 8      7
>>
1.5.3 Mathematical operations

^     exponentiation             Highest priority
-     negation
*/    multiplication, division
     left division
+-    addition, subtraction      Lowest priority

• priority order can be overridden with parentheses
>> y = -4 ^ 2
y=
 -16
>>
>> y = (-4) ^ 2
y=
  16
>>
1.5.4 M-file

• M-file provides an alternative way of using
  MATLAB to perform numerical analysis
• starts with the word function
• can have input argument(s) and output(s)
• multiple inputs - separate by comma
• multiple outputs – separate by comma,
  enclose in square brackets
• it contains a series of statements
• the file is stored with an extension .m
function outvar = funcname(arglist)
% comments
statements
outvar = value;

outvar:           name of output variable
funcname:         name of function
arglist:          argument list
comments:         information for user
1.5.5 Structured programming

• simple M-file performs command sequentially,
  from the first statement to the last
• the program is highly restrictive
• real programs usually have non-sequential
  execution paths, which can be achieved via
  decisions and loops
decision
• the branching of execution flow based on a
  decision

if condition              if condition 1
       statements                group 1 statements
end                       elseif condition 2
                                 group 2 statements
if condition                     .
       group 1 statements        .
else                      else
       group 2 statements        else statements
end                       end
• one simple form of condition is a relational
  expression that compares two values

value 1 relation value 2

operator     relation
==           equal
~=           not equal
<            less than
>            greater than
<=           less than or equal to
>=           greater than or equal to
• logical operators can be used to test more
  than one logical condition
• there is priority order, use parentheses to
  override it

operator     meaning
~            not         Highest priority
&&           and
||           or           Lowest priority
loop
• the repetition of a group of statements

for index = start:step:finish
       statements
end
for i = 1:2:5
       disp(i)   Positive step
end
for i = 5:-2:1
       disp(i)   Negative step
end
for i = 1:5
       disp(i)   Default step = 1
end
while condition
      statements
end

i = 5;
while i > 0
       i = i – 1;
       disp(i)
end
Summary
♦ scope of Computer Vision

♦ application areas

♦ relations with other fields

♦ resources and development platform of
  computer vision

Más contenido relacionado

La actualidad más candente

Functional Operations - Susan Potter
Functional Operations - Susan PotterFunctional Operations - Susan Potter
Functional Operations - Susan Potterdistributed matters
 
Matlab-Data types and operators
Matlab-Data types and operatorsMatlab-Data types and operators
Matlab-Data types and operatorsLuckshay Batra
 
Matlab solved problems
Matlab solved problemsMatlab solved problems
Matlab solved problemsMake Mannan
 
Linear Algebra and Matlab tutorial
Linear Algebra and Matlab tutorialLinear Algebra and Matlab tutorial
Linear Algebra and Matlab tutorialJia-Bin Huang
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013amanabr
 
04 control structures 1
04 control structures 104 control structures 1
04 control structures 1Jomel Penalba
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting AlgorithmsPranay Neema
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in spaceFaizan Shabbir
 
A complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projectsA complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projectsMukesh Kumar
 

La actualidad más candente (16)

Functional Operations - Susan Potter
Functional Operations - Susan PotterFunctional Operations - Susan Potter
Functional Operations - Susan Potter
 
Control statements in java programmng
Control statements in java programmngControl statements in java programmng
Control statements in java programmng
 
Matlab-Data types and operators
Matlab-Data types and operatorsMatlab-Data types and operators
Matlab-Data types and operators
 
Operators in java
Operators in javaOperators in java
Operators in java
 
Alg2 lesson 2.1
Alg2 lesson 2.1Alg2 lesson 2.1
Alg2 lesson 2.1
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Matlab solved problems
Matlab solved problemsMatlab solved problems
Matlab solved problems
 
Linear Algebra and Matlab tutorial
Linear Algebra and Matlab tutorialLinear Algebra and Matlab tutorial
Linear Algebra and Matlab tutorial
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
04 control structures 1
04 control structures 104 control structures 1
04 control structures 1
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
 
Palm m3 chapter1b
Palm m3 chapter1bPalm m3 chapter1b
Palm m3 chapter1b
 
Matlab Tutorial
Matlab TutorialMatlab Tutorial
Matlab Tutorial
 
Matlab lec1
Matlab lec1Matlab lec1
Matlab lec1
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
 
A complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projectsA complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projects
 

Destacado

реалізація зворотнього зв’язку в межах дистанційного курсу
реалізація зворотнього зв’язку в межах дистанційного курсуреалізація зворотнього зв’язку в межах дистанційного курсу
реалізація зворотнього зв’язку в межах дистанційного курсуIlona Bacurovska
 
презентация1
презентация1презентация1
презентация1mamulya20091
 
Honeywell alarmnet-internet-connectivity-test
Honeywell alarmnet-internet-connectivity-testHoneywell alarmnet-internet-connectivity-test
Honeywell alarmnet-internet-connectivity-testAlarm Grid
 
осіння подорож
осіння подорожосіння подорож
осіння подорожmolchanovanata
 
Decks by adddddaaaaaddddda #33024
Decks by adddddaaaaaddddda #33024Decks by adddddaaaaaddddda #33024
Decks by adddddaaaaaddddda #33024enrike_phph
 
мир вокруг нас
мир вокруг насмир вокруг нас
мир вокруг насanzor_30
 
2015 family club_january
2015 family club_january2015 family club_january
2015 family club_januarycpsim
 
у шевченковій світлиці
у шевченковій світлиціу шевченковій світлиці
у шевченковій світлиціОлена Бордюг
 
Екскурсія початкові класи
Екскурсія початкові класи Екскурсія початкові класи
Екскурсія початкові класи kzshn5
 
Decks by aaddadda #33008
Decks by aaddadda #33008Decks by aaddadda #33008
Decks by aaddadda #33008enrike_phph
 
Aznavour - Elard Rivera Calderon
Aznavour - Elard Rivera CalderonAznavour - Elard Rivera Calderon
Aznavour - Elard Rivera Calderonmeroga
 
Организация участка вальцевание металла
Организация участка вальцевание металлаОрганизация участка вальцевание металла
Организация участка вальцевание металлаSixSigmaOnline
 

Destacado (20)

Christmas in mexico
Christmas in mexicoChristmas in mexico
Christmas in mexico
 
реалізація зворотнього зв’язку в межах дистанційного курсу
реалізація зворотнього зв’язку в межах дистанційного курсуреалізація зворотнього зв’язку в межах дистанційного курсу
реалізація зворотнього зв’язку в межах дистанційного курсу
 
Латвия. Сигулда - пешеходные маршруты.
Латвия. Сигулда - пешеходные маршруты.Латвия. Сигулда - пешеходные маршруты.
Латвия. Сигулда - пешеходные маршруты.
 
Деловой справочник смоленской области 2015
Деловой справочник смоленской области 2015Деловой справочник смоленской области 2015
Деловой справочник смоленской области 2015
 
презентация1
презентация1презентация1
презентация1
 
Honeywell alarmnet-internet-connectivity-test
Honeywell alarmnet-internet-connectivity-testHoneywell alarmnet-internet-connectivity-test
Honeywell alarmnet-internet-connectivity-test
 
осіння подорож
осіння подорожосіння подорож
осіння подорож
 
мерзляк 2
мерзляк 2мерзляк 2
мерзляк 2
 
Decks by adddddaaaaaddddda #33024
Decks by adddddaaaaaddddda #33024Decks by adddddaaaaaddddda #33024
Decks by adddddaaaaaddddda #33024
 
Untitled 15
Untitled 15Untitled 15
Untitled 15
 
Kk 45
Kk 45Kk 45
Kk 45
 
мир вокруг нас
мир вокруг насмир вокруг нас
мир вокруг нас
 
Exam2
Exam2Exam2
Exam2
 
2015 family club_january
2015 family club_january2015 family club_january
2015 family club_january
 
Kursova
KursovaKursova
Kursova
 
у шевченковій світлиці
у шевченковій світлиціу шевченковій світлиці
у шевченковій світлиці
 
Екскурсія початкові класи
Екскурсія початкові класи Екскурсія початкові класи
Екскурсія початкові класи
 
Decks by aaddadda #33008
Decks by aaddadda #33008Decks by aaddadda #33008
Decks by aaddadda #33008
 
Aznavour - Elard Rivera Calderon
Aznavour - Elard Rivera CalderonAznavour - Elard Rivera Calderon
Aznavour - Elard Rivera Calderon
 
Организация участка вальцевание металла
Организация участка вальцевание металлаОрганизация участка вальцевание металла
Организация участка вальцевание металла
 

Similar a Test

Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshopVinay Kumar
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabVidhyaSenthil
 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptMahyuddin8
 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptghoitsun
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersMurshida ck
 
Matlab_Simulink_Tutorial.ppt
Matlab_Simulink_Tutorial.pptMatlab_Simulink_Tutorial.ppt
Matlab_Simulink_Tutorial.pptPrasenjitDey49
 
The fundamentals of regression
The fundamentals of regressionThe fundamentals of regression
The fundamentals of regressionStephanie Locke
 
Ch02 primitive-data-definite-loops
Ch02 primitive-data-definite-loopsCh02 primitive-data-definite-loops
Ch02 primitive-data-definite-loopsJames Brotsos
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLABRavikiran A
 
Operators loops conditional and statements
Operators loops conditional and statementsOperators loops conditional and statements
Operators loops conditional and statementsVladislav Hadzhiyski
 

Similar a Test (20)

Mat lab
Mat labMat lab
Mat lab
 
Matlab-1.pptx
Matlab-1.pptxMatlab-1.pptx
Matlab-1.pptx
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
Matlab ppt
Matlab pptMatlab ppt
Matlab ppt
 
Matlabch01
Matlabch01Matlabch01
Matlabch01
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Mbd2
Mbd2Mbd2
Mbd2
 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.ppt
 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.ppt
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginners
 
Python Lecture 2
Python Lecture 2Python Lecture 2
Python Lecture 2
 
Matlab_Simulink_Tutorial.ppt
Matlab_Simulink_Tutorial.pptMatlab_Simulink_Tutorial.ppt
Matlab_Simulink_Tutorial.ppt
 
The fundamentals of regression
The fundamentals of regressionThe fundamentals of regression
The fundamentals of regression
 
EPE821_Lecture3.pptx
EPE821_Lecture3.pptxEPE821_Lecture3.pptx
EPE821_Lecture3.pptx
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Ch02 primitive-data-definite-loops
Ch02 primitive-data-definite-loopsCh02 primitive-data-definite-loops
Ch02 primitive-data-definite-loops
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Operators loops conditional and statements
Operators loops conditional and statementsOperators loops conditional and statements
Operators loops conditional and statements
 

Más de Kinni MEW (18)

Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Test
TestTest
Test
 
Lec1
Lec1Lec1
Lec1
 

Test

  • 1. Chapter 1 Introduction * What is Computer Vision? * Applications * Relations with other fields * Resources
  • 2. 1.1 What is Computer Vision? Computer vision is a field that includes methods for acquiring, processing, analyzing, and understanding one or more images from the real world in order to produce and communicate numerical or symbolic information to users or other systems. How to acquire images? Why we need to process and analyze images? Why we want the computer to understand the images?
  • 3. 1.2 Applications Industrial inspection and quality control – detect cracks in bottle Reverse engineering – generate 3D object model from images Face/gesture recognition – security Track and count humans – surveillance, human- computer interaction Track and count vehicles – road monitoring Image database query – automatic image retrieval Medical image analysis – assist diagnosis, surgery
  • 4. 1.3 Related disciplines computer vision = machine vision = image understanding Computer Image Vision Processing noise filtering, edge detection, etc.
  • 5. Many computer vision methods use and extend signal processing techniques Pattern recognition can be considered as part of computer vision Computer vision is, in some ways, the inverse of computer graphics. CV CG original image 3D model synthetic image
  • 6. 1.4 To know more about Computer Vision 1.4.1 conference • International Conference on Computer Vision (ICCV) • International Conference on Computer Vision and Pattern Recognition (CVPR) • European Conference on Computer Vision (ECCV)
  • 7. 1.4.2 journal • International Journal of Computer Vision • IEEE Transactions on Pattern Analysis and Machine Intelligence • Computer Vision and Image Understanding • Machine Vision and Applications 1.4.3 internet • CVonline (http://homepages.inf.ed.ac.uk/rbf/CVonline) • Numerical Recipes (http://apps.nrbook.com/empanel/index.html#)
  • 8. 1.5 Overview of MATLAB 1.5.1 The MATLAB environment • when you start MATLAB, the command window will open with the prompt >> • user can enter commands or data in the command window • for each command typed in, you get the result immediately • if you do not assign the result to a variable, MATLAB will assign it to ans
  • 9.
  • 10.
  • 11. 1.5.2 Assignment • assign value(s) to variable name(s) scalar variable >> a = 4 >> a = 4, A = 6 a= a= 4 4 Separate >> A= multiple 6 commands by >> a = 4; >> comma >> Case sensitive No echo print
  • 12. array • a collection of values represented by one variable name • one-dimensional array – vector • two-dimensional array – matrix >> a = [1 2 3 4 5] a= 1 2 3 4 5 Row vector >>
  • 13. >> a = [1;2;3;4;5] >> a = [1 2 3 4 5]' a= a= 1 1 Use single quote 2 2 as transpose 3 3 operator 4 4 5 5 >> >> Column vector
  • 14. >> A = [1 2 3; 4 5 6; 7 8 9] >> A = [1 2 3 A= 456 1 2 3 7 8 9] 4 5 6 A= 7 8 9 1 2 3 >> 4 5 6 7 8 9 >> Press Enter key to separate the rows
  • 15. To access individual element: >> a(3) ans = 3 >> >> A(2,3) ans = Column index 6 Row index >>
  • 16. colon operator >> A(2,:) ans = 4 5 6 >> Access the entire row increment (If it is omitted, start end the default value is 1) >> t = 1:0.5:3 t= 1.0000 1.5000 2.0000 2.5000 3.0000 >>
  • 17. negative increment >> t = 10:-1:5 t= 10 9 8 7 6 5 >> To extract part of the array: >> t(2:4) ans = 9 8 7 >>
  • 18. 1.5.3 Mathematical operations ^ exponentiation Highest priority - negation */ multiplication, division left division +- addition, subtraction Lowest priority • priority order can be overridden with parentheses
  • 19. >> y = -4 ^ 2 y= -16 >> >> y = (-4) ^ 2 y= 16 >>
  • 20. 1.5.4 M-file • M-file provides an alternative way of using MATLAB to perform numerical analysis • starts with the word function • can have input argument(s) and output(s) • multiple inputs - separate by comma • multiple outputs – separate by comma, enclose in square brackets • it contains a series of statements • the file is stored with an extension .m
  • 21. function outvar = funcname(arglist) % comments statements outvar = value; outvar: name of output variable funcname: name of function arglist: argument list comments: information for user
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28. 1.5.5 Structured programming • simple M-file performs command sequentially, from the first statement to the last • the program is highly restrictive • real programs usually have non-sequential execution paths, which can be achieved via decisions and loops
  • 29. decision • the branching of execution flow based on a decision if condition if condition 1 statements group 1 statements end elseif condition 2 group 2 statements if condition . group 1 statements . else else group 2 statements else statements end end
  • 30. • one simple form of condition is a relational expression that compares two values value 1 relation value 2 operator relation == equal ~= not equal < less than > greater than <= less than or equal to >= greater than or equal to
  • 31. • logical operators can be used to test more than one logical condition • there is priority order, use parentheses to override it operator meaning ~ not Highest priority && and || or Lowest priority
  • 32. loop • the repetition of a group of statements for index = start:step:finish statements end
  • 33. for i = 1:2:5 disp(i) Positive step end for i = 5:-2:1 disp(i) Negative step end for i = 1:5 disp(i) Default step = 1 end
  • 34. while condition statements end i = 5; while i > 0 i = i – 1; disp(i) end
  • 35.
  • 36.
  • 37.
  • 38. Summary ♦ scope of Computer Vision ♦ application areas ♦ relations with other fields ♦ resources and development platform of computer vision