ISAN-DSP GROUP 168 442 Introduction to Image Processing The First Semester of Class 2546 Dr. Nawapak Eua-Anant Department of Computer Engineering Khon.

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Optics and Human Vision The physics of light
Study the mathematical relations between corresponding image points.
Computer vision: models, learning and inference
Camera Calibration. Issues: what are intrinsic parameters of the camera? what is the camera matrix? (intrinsic+extrinsic) General strategy: view calibration.
Announcements. Projection Today’s Readings Nalwa 2.1.
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Announcements Mailing list (you should have received messages) Project 1 additional test sequences online Talk today on “Lightfield photography” by Ren.
CS485/685 Computer Vision Prof. George Bebis
The Human Eye and Vision 2 (Processing The Image)
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
Announcements Mailing list Project 1 test the turnin procedure *this week* (make sure it works) vote on best artifacts in next week’s class Project 2 groups.
Computer Vision : CISC4/689
Calibration Dorit Moshe.
Lecture 12: Projection CS4670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
The Pinhole Camera Model
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Visualization- Determining Depth From Stereo Saurav Basu BITS Pilani 2002.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
Asma Kanwal Lecturer Department of Computer Science, GC University, Lahore Dr. Wajahat Mahmood Qazi Assistant Professor Department of Computer Science,
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Image formation & Geometrical Transforms Francisco Gómez J MMS U. Central y UJTL.
CSE 6367 Computer Vision Stereo Reconstruction Camera Coordinate Transformations “Everything should be made as simple as possible, but not simpler.” Albert.
1 Formation et Analyse d’Images Daniela Hall 19 Septembre 2005
1 THE EYE Bushong Ch. 29 p Appendix #1 State Fluoro Syllabus pg 77 Reference: Ch. 14 Carltons.
Camera Geometry and Calibration Thanks to Martial Hebert.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Digital Image Processing CCS331
© by Yu Hen Hu 1 Human Visual System. © by Yu Hen Hu 2 Understanding HVS, Why? l Image is to be SEEN! l Perceptual Based Image Processing.
Shape from Stereo  Disparity between two images  Photogrammetry  Finding Corresponding Points Correlation based methods Feature based methods.
Human Visual Perception The Human Eye Diameter: 20 mm 3 membranes enclose the eye –Cornea & sclera –Choroid –Retina.
Digital Image Fundamentals. What Makes a good image? Cameras (resolution, focus, aperture), Distance from object (field of view), Illumination (intensity.
University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction to computer vision Chapter 2: Image.
Math 3360: Mathematical Imaging Prof. Ronald Lok Ming Lui Department of Mathematics, The Chinese University of Hong Kong Lecture 1: Introduction to mathematical.
SUBJECT CODE:CS1002 DEPARTMENT OF ECE. “One picture is worth more than ten thousand words” Anonymous.
CS654: Digital Image Analysis Lecture 8: Stereo Imaging.
Digital Image Processing & Analysis Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
Dr. Engr. Sami ur Rahman Digital Image Processing Lecture 2: Visual System.
Miguel Tavares Coimbra
CSE 185 Introduction to Computer Vision Stereo. Taken at the same time or sequential in time stereo vision structure from motion optical flow Multiple.
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Radial Distortion (Extrinsic Calibration?) 1.
Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.
stereo Outline : Remind class of 3d geometry Introduction
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
ISAN-DSP GROUP Digital Image Fundamentals ISAN-DSP GROUP What is Digital Image Processing ? Processing of a multidimensional pictures by a digital computer.
Week 4 Functions and Graphs. Objectives At the end of this session, you will be able to: Define and compute slope of a line. Write the point-slope equation.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
Introduction to Image Processing Course Notes Anup Basu, Ph.D. Professor, Dept of Computing Sc. University of Alberta.
Human Visual System.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
Lecture 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
Digital Image Processing CCS331 Camera Model and Imaging Geometry 1.
CSE 185 Introduction to Computer Vision
EE663-Digital Image Processing & Analysis Dr. Samir H
Lecture 13: Cameras and geometry
Announcements Midterm out today Project 1 demos.
The Pinhole Camera Model
Announcements Midterm out today Project 1 demos.
Presentation transcript:

ISAN-DSP GROUP Introduction to Image Processing The First Semester of Class 2546 Dr. Nawapak Eua-Anant Department of Computer Engineering Khon Kaen University

ISAN-DSP GROUP Course Syllabus Date and Time : MW EN 4510, LAB1 TU17-20, LAB2 TH17-20 Assessments: Attendance & Homework5% Lab and Homework35% Midterm30% Final30% Grading: % A, 75-85% B+, 70-75% B, 65-70% C+, 60-65% C, 55-60% D+, 50-55% D, 0-50% F References: 1.Rafael C. Gonzalez and Richard E. Woods, “Digital Image Processing”, Addison Wesley, Anil K. Jain, “Fundamentals of Digital Image Processing”, Prentice-Hall, Inc., William K. Pratt, “Digital Image Processing”, 2 nd Edition, Wiley & Sons, Inc., 1991.

ISAN-DSP GROUP Course Outline 1. Introduction 2. Digital Image Fundamentals 3. Image Transforms 4. Image Enhancement 5. Image Segmentation 6. Image Compression 7. Image Morphology

ISAN-DSP GROUP Chapter 1 Introduction to Image Processing

ISAN-DSP GROUP What is Digital Image Processing ? Processing of a multidimensional pictures by a digital computer การประมวลผลสัญญาณรูปภาพโดยใช้ดิจิตอลคอมพิวเตอร์ Why we need Digital Image Processing ? 1. เพื่อบันทึกและจัดเก็บภาพ 2. เพื่อปรับปรุงภาพให้ดีขึ้นโดยใช้ กระบวนการทางคณิตศาสตร์ 3. เพื่อช่วยในการวิเคราะห์รูปภาพ 4. เพื่อสังเคราะห์ภาพ 5. เพื่อสร้างระบบการมองเห็นให้กับ คอมพิวเตอร์

ISAN-DSP GROUP Digital Image Digital image = a multidimensional array of numbers (such as intensity image) or vectors (such as color image) Each component in the image called pixel associates with the pixel value (a single number in the case of intensity images or a vector in the case of color images).

ISAN-DSP GROUP Visual Perception: Human Eye (Picture from Microsoft Encarta 2000)

ISAN-DSP GROUP Chapter 2: Digital Image Fundamentals

ISAN-DSP GROUP Visual Perception: Human Eye (cont.) 1.The lens contains 60-70% water, 6% of fat. 2.The iris diaphragm controls amount of light that enters the eye. 3.Light receptors in the retina - About 6-7 millions cones for bright light vision called photopic - Density of cones is about 150,000 elements/mm 2. - Cones involve in color vision. - Cones are concentrated in fovea about 1.5x1.5 mm 2. - About millions rods for dim light vision called scotopic - Rods are sensitive to low level of light and are not involved color vision. 4. Blind spot is the region of emergence of the optic nerve from the eye.

ISAN-DSP GROUP Chapter 2: Digital Image Fundamentals

ISAN-DSP GROUP Image Formation in Human Eye

ISAN-DSP GROUP Chapter 2: Digital Image Fundamentals

ISAN-DSP GROUP Brightness Adaptation of Human Eye Position Intensity Intensities of surrounding points effect perceived brightness at each point. In this image, edges between bars appear brighter on the right side and darker On the left side.

ISAN-DSP GROUP In area A, brightness perceived is darker while in area B is brighter. This phenomenon is called Mach Band Effect. Brightness Adaptation of Human Eye (cont.) Position Intensity A B

ISAN-DSP GROUP Brightness Adaptation of Human Eye (cont.) Simultaneous contrast. All small squares have exactly the same intensity but they appear progressively darker as background becomes lighter.

ISAN-DSP GROUP Imaging Geometry: Perspective Transformation Lens center x,X y,Y (x,y)(x,y) z,Z (X,Y,Z) = world coordinate (x,y,z) = Camera coordinate system (X,Y,Z) = focal length Image plane Eq. 1.1

ISAN-DSP GROUP Imaging Geometry: Perspective Transformation (cont.) Question: How can we project the real world object at (X,Y,Z) onto the image plane (such as photographic film)? Answer: Relation between camera coordinate (x,y,z) and world coordinate (X,Y,Z) are given by Since on the image plane z is always zero, z=0, we consider only (x,y) while z is neglected. Eq. 1.2

ISAN-DSP GROUP Imaging Geometry: Perspective Transformation (cont.) Equation 1.2 is not linear because of Z in the dividers so we introduce the homogeneous coordinate to solve this problem. Cartesian coordinate Homogeneous coordinate k = nonzero constant To convert from the homogeneous coordinate w h to the Cartesian coordinate w, we divide the first 3 components of w h by the fourth component.

ISAN-DSP GROUP Imaging Geometry: Perspective Transformation (cont.) The perspective transformation matrix for the homogeneous coordinate: Perspective transformation becomes: Eq. 1.3

ISAN-DSP GROUP Imaging Geometry: Perspective Transformation (cont.) From homogeneous coordinate We get camera coordinate in the image plane:

ISAN-DSP GROUP Imaging Geometry: Inverse Perspective Transformation where Eq. 1.4

ISAN-DSP GROUP For an image point (x 0,y 0 ), since on the image plane z=0, we have Inverse Perspective Transformation (cont.) We get the world coordinate : Since the perspective transformation maps 3-D coordinates to 2-D Coordinates, we cannot get the inverse transform unless we have additional information.

ISAN-DSP GROUP To find the solution, let Inverse Perspective Transformation (cont.) We get Eq. 1.5

ISAN-DSP GROUP Inverse Perspective Transformation (cont.) From Eq. 1.5, We get Eq. 1.6 Substituting Eq. 1.6 into Eq.1.5, we get Eq. 1.7 Equations 1.7 show that inverse perspective transformation requires information of at least one component of the world coordinate of the point.

ISAN-DSP GROUP Inverse Perspective Transformation (cont.) These equations: show that points on Line L in the world coordinate map to a single point in the image plane. Lens center x,X y,Y z,Z (x,y)(x,y) Image plane (X 2,Y 2,Z 2 ) (X 3,Y 3,Z 3 ) Points (X 1,Y 1,Z 1 ), (X 2,Y 2,Z 2 ), and (X 3,Y 3,Z 3 ) map to Point (x,y) in the image plane. (X 1,Y 1,Z 1 ) Line L

ISAN-DSP GROUP y x Stereo Imaging: How we get depth information from 2 eyes Left lens center (x2,y2)(x2,y2) Image 2 y x right lens center B World point (X,Y,Z) Optical axis Image 1 (x1,y1)(x1,y1)

ISAN-DSP GROUP Stereo Imaging: How we get depth information from 2 eyes (cont.) Problem: we know camera coordinates of the object on left and right image planes (x 1,y 1 ) and (x 2,y 2 ) and want to how far from the camera the object is located. Note: when y-axis is parallel to the ground, we have y 1 = y 2 (x2,y2)(x2,y2) (x1,y1)(x1,y1) B w Z Image 2 Image 1 Plane of constant Z X Origin of world coordinate system

ISAN-DSP GROUP 1. From the inverse perspective transform, we compute X 1 and X 2 : 3. Since left and right lenses are separated by distance B, we have 2. Z 1 and Z 2 must be equal, we get Stereo Imaging: How we get depth information from 2 eyes (cont.) 4. From 1, 2 and 3, we get Solving Z yields

ISAN-DSP GROUP Stereo Imaging: How we get depth information from 2 eyes (cont.) We can locate the object if we know positions of the object in left and right image planes using Equation: Question: While the equation is so simple but why it is very difficult to built an automatic stereo vision system that can reconstruct 3-D scene from images obtained from 2 cameras? Answers: for a computer, locating the corresponding points on left and right images is the most difficult task.

ISAN-DSP GROUP Imaging Geometry : Affine Transformations 1. Translation 2. Scaling 3. Rotating

ISAN-DSP GROUP Image Geometry: Translation of Object Y Z X Displace the object by vector (X 0,Y 0,Z 0 ) with respect to its old position. (X+X0,Y+Y0,Z+Z0)(X+X0,Y+Y0,Z+Z0) (X,Y,Z)(X,Y,Z) (X0,Y0,Z0)(X0,Y0,Z0)

ISAN-DSP GROUP Image Geometry: Translation of Frame Y Z X (0,0,0) Translate the origin point of the frame by (X 0,Y 0,Z 0 ) with respect to the old frame Y  ZZ X  (X0,Y0,Z0)(X0,Y0,Z0) The object still stays at the same position. Only the frame is moved.

ISAN-DSP GROUP Image Geometry: Scaling Scale by factors S x, S y, S z along X, Y, and Z axes. a b c d e f g A B C DE F G Note: Origin point is unchanged.

ISAN-DSP GROUP  Image Geometry: Rotating an object about X-axis Rotate an object about X-axis by  x in a counterclockwise direction. Y Z X=X  xx Note : In this case the object is moved. Only y and z are changed while x stills the same.

ISAN-DSP GROUP  Image Geometry: Rotating a frame about X-axis Rotate the frame about X-axis by  x in a counterclockwise direction. Y Z xx Y  ZZ Note : In this case the object is not moved. The frame is rotated instead. X=X 

ISAN-DSP GROUP Image Geometry: Rotating an object about Y-axis Rotate an object about Y-axis by  y in a counterclockwise direction. Z X yy Note : In this case the object is moved. Only x and z are changed while y stills the same.  Y= Y 

ISAN-DSP GROUP Image Geometry: Rotating a frame about Y-axis Rotate the frame about Y-axis by  y in a counterclockwise direction. Y= Y  Z X yy Note : In this case the object is not moved. The frame is rotated instead.  ZZ X 

ISAN-DSP GROUP Image Geometry: Rotating an object about Z-axis Rotate an object about Z-axis by  z in a counterclockwise direction. Y Z X zz Note : In this case the object is moved. Only x and y are changed while z stills the same. 

ISAN-DSP GROUP Image Geometry: Rotating a frame about Z-axis Rotate the frame about Z-axis by  z in a counterclockwise direction. Y Z= Z  X zz Y  Note : In this case the object is not moved. The frame is rotated instead. X  

ISAN-DSP GROUP X Y Z World Coordinate System Image Geometry: How to compute a point on an image plane from the world coordinate Problem: we know the location of the object and want to know where it will be projected on the film (image plane). y z x Camera Coordinate System Answer: 1. Transform the world coordinate to the camera coordinate 2. Perform the perspective transformation

ISAN-DSP GROUP Image Geometry: How to compute a point on the image plane from the world coordinate (cont.) Lens center x y (x,y)(x,y) z (x,y,z) = Camera coordinate, (X,Y,Z) = World coordinate Image plane (z=0) Before using the perspective transformation, the world axes X-Y-Z must coincide with the camera axes x-y-z, (we need some transformations). (X,Y,Z) X Z Y

ISAN-DSP GROUP Image Geometry: Compute the camera coordinate from the world coordinate X Y Z World Coordinate System y z x Camera Coordinate System 2 3 Gimbal center 1. Translate* by w 0 Note : *perform on the frame 2. Pan the camera* (rotate about Z-axis) 4. Translate* by z = r Steps from Gonzalez’s book 3. Tilt the camera* (rotate about X-axis) 5. Compute the perspective Tr. 1 w0w0 4 r

ISAN-DSP GROUP Formula from Gonzalez’s book Perspective tr. Translate to the image plane Center by z = r Translate to the gimbal center w 0 World coordinate Camera coordinate Image Geometry: Compute the camera coordinate from the world coordinate (cont.) Rotate by Pan (  z ) and Tilt (  x )

ISAN-DSP GROUP X Y Z World Coordinate System y z x Camera Coordinate System Gimbal center 1. Translate* by w 1 2. Pan the camera* 3. Tilt the camera* Note : *perform on the frame General case 4. Twist the camera* (rotate about Y-axis) 5. Compute the perspective Tr. w1w1 1 Image Geometry: Compute the camera coordinate from the world coordinate (cont.)

ISAN-DSP GROUP Image Geometry: Compute the camera coordinate from the world coordinate (cont.) General case Perspective tr. Translate to the image plane center w 1 World coordinate Camera coordinate Rotate by Pan (  z ), Tilt (  x ), Twist (  y )