91.204.201 Computing IV - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

91.204.201 Computing IV

Description:

91.204.201 Computing IV Introduction Xinwen Fu – PowerPoint PPT presentation

Number of Views:108
Avg rating:3.0/5.0
Slides: 24
Provided by: Xinw150
Learn more at: http://www.cs.uml.edu
Category:
Tags: computing | slides

less

Transcript and Presenter's Notes

Title: 91.204.201 Computing IV


1
91.204.201 Computing IV
  • Introduction
  • Xinwen Fu

2
About Instructor
  • Dr. Xinwen Fu, associate professor of CS_at_UML
  • Homepage http//www.cs.uml.edu/xinwenfu/
  • Email xinwenfu_at_cs.uml.edu
  • Phone (978) 934-3623
  • Office 203 Olsen Hall
  • Office hours
  • Mon, Wed. MW. 330PM 500PM or by appointment

By Dr. Xinwen Fu
2
3
About TA
  • TBD
  •  
  • Office hours
  • TBD

4
Textbook and Handouts
  • Required textbook (not released yet)
  • Gary Bradski, and Adrian Kaehler, Learning
    OpenCV Computer Vision in C with the OpenCV
    Library, O'Reilly Media Second Edition edition,
    December 25, 2012, ISBN-10 1449314651, ISBN-13
    978-1449314651
  • Textbook replacement
  • The OpenCV Tutorials Release 2.4.3 at
    http//docs.opencv.org/opencv_tutorials.pdf

5
Course Objectives
  • Master OpenCV
  • Master Visual C
  • Master Debugging with Visual C
  • Master selected design patterns

6
Course Styles
  • Descriptive what is out there
  • Critical what is wrong with ...
  • Both knowledge and skill oriented
  • Interactive discussion and questions encouraged
  • Information sharing home page and message board
    in Blackboard

7
Tentative Course Outline
  • Introduction to OpenCV
  • VC 2010 examples
  • OpenCV core module. The Core Functionality
  • Basic building blocks of the library
  • Manipulate the images on a pixel level.
  • imgproc module. Image Processing
  • highgui module. High Level GUI and Media
  • Read/save image/video files
  • Use built-in graphical user interface
  • calib3d module. Camera calibration and 3D
    reconstruction
  • Find out from 2D images information about 3D
    world

8
Lab Exercises
  • Location
  • Open labs on the third floor
  • Time
  • 24/7

9
Prerequisites
  • 91.201 Computing III
  • 91.203 Computer Organization and Assembly Language

10
Grading
Attendance 10
Assignments (510) 30
Midterm Exam 20
Final Exam 20
Term Project 20
  • I reserve the rightto change thisdistribution
    during the course after notification
  • The final grades arecomputed accordingto the
    following rules

11
Policies on incomplete grades and late assignments
  • Turn in assignments on or before the due date and
    time
  • What if the campus network is down?
  • An assignment turned in up to 24-hours late will
    be reduced by 10 of the assignments worth, more
    than 24 hours late will be reduced 100
  • The due date and time for each assignment will be
    specified on assignment postings
  • All assignments are to be turned in through
    Blackboard (https//login.umassonline.net/lowell.c
    fm)

12
Policies on absences and scheduling makeup work
  • Make-up exams will only be given in case of
    serious need and only when the instructor is
    notified prior to the exam time. If this is not
    done, the grade is automatically zero for that
    exam
  • Written verification for the students inability
    to take an exam will be required
  • The make-up exams will be different from those
    given to the class

13
Academic Integrity
  • Finish assignments individually and independently
    except notified. Should two or more students turn
    in substantially the same solution or program, in
    the judgment of the instructor, the assignment
    will be given a grade of zero. A second such
    incident will result in an F grade for the course
  • All forms of academic dishonesty will result in
    an F for the course and notification of the
    Academic Dishonesty Committee
  • http//www.departments.dsu.edu/student_services/ha
    ndbook/
  • Copy from the Internet is not allowed
  • Advice put away the references and use your own
    language

By Dr. Xinwen Fu
13
14
Policy on working with students with disabilities
  • The University is committed to serving all
    students with disabilities as defined by the
    Rehabilitation Act of 1973 and the Americans with
    Disabilities Act of 1990. A qualified person with
    a disability means an individual with a
    disability who, with or without reasonable
    modifications to rules, policies, or practices,
    the removal of architectural, communication or
    transportation barriers, or the provision of
    auxiliary aids and services, meets the essential
    eligibility requirements for the receipt of
    services or the participation in programs or
    activities provided by a public entity.
  • Questions concerning services for people with
    learning and physical disabilities should be
    directed to
  • Jody Goldstein, MSSW
  • Student Disability Services
  • One University Avenue
  • Cumnock Hall C6
  • Lowell, MA 01854
  • 978-934-4574
  • E-mail Disability_at_uml.edu
  • http//www.uml.edu/STUDENT-SERVICES/disability/def
    ault.html

By Dr. Xinwen Fu
14
15
Check Blackboard for details!
16
A Survey (No Credit)
  1. What are the values of a and b?
  2. What is polymorphism?

main() int a0, b ba printf(ad
bd, a, b)
17
Polymorphism
  • One of the key features of derived classes is
    that a pointer to a derived class is
    type-compatible with a pointer to its base class
  • Polymorphism is the art of taking advantage of
    this simple but powerful and versatile feature,
    that brings Object Oriented Methodologies to its
    full potential

18
Example
  1. // pointers to base class
  2. include ltiostreamgt
  3. using namespace std
  4. class CPolygon
  5. protected
  6. int width, height
  7. public
  8. void set_values (int a, int b) widtha
    heightb
  9. virtual int area () 0
  10. class CRectangle public CPolygon
  11. public
  12. int area ()
  13. return (width height)

19
  1. class CTriangle public CPolygon
  2. public
  3. int area ()
  4. return (width height / 2)
  5. int main ()
  6. CRectangle rect
  7. CTriangle trgl
  8. rect.set_values (4,5)
  9. trgl.set_values (4,5)
  10. CPolygon ppoly rect
  11. cout ltlt ppoly-gtarea() ltlt endl
  12. ppoly trgl
  13. cout ltlt ppoly-gtarea() ltlt endl

20
namespace
  • Namespaces allow to group entities like classes,
    objects and functions under a name. This way the
    global scope can be divided in "sub-scopes", each
    one with its own name.
  • The format of namespaces is
  • namespace identifier
  • entities
  • Where identifier is any valid identifier and
    entities is the set of classes, objects and
    functions that are included within the namespace.
    For example

21
Example
  1. // namespaces
  2. include ltiostreamgt
  3. using namespace std
  4. namespace first
  5. int var 5
  6. namespace second
  7. double var 3.1416
  8. int main ()
  9. cout ltlt firstvar ltlt endl
  10. cout ltlt secondvar ltlt endl
  11. return 0

22
Example using namespace
  1. // namespaces
  2. include ltiostreamgt
  3. using namespace std
  4. namespace first
  5. int var 5
  6. namespace second
  7. double var 3.1416
  8. int main ()
  9. cout ltlt firstvar ltlt endl
  10. cout ltlt secondvar ltlt endl
  11. return 0

23
  1. // namespaces
  2. include ltiostreamgt
  3. using namespace std
  4. namespace first
  5. int var 5
  6. namespace second
  7. double var 3.1416
  8. using namespace first
  9. //using namespace second
  10. int main ()
  11. cout ltlt var ltlt endl
Write a Comment
User Comments (0)
About PowerShow.com