1 / 41

Formation et Analyse d’Images

Formation et Analyse d’Images. Daniela Hall 30 Septembre 2004. Course material. course slides (.pdf) http://www-prima.inrialpes.fr/perso/Hall/Courses/FAI04/ last years documents http://www-prima.inrialpes.fr/Prima/Homepages/jlc/Courses/2003/ENSI3/FAI/ENSI3.FAI.html Tensor notation

amiel
Download Presentation

Formation et Analyse d’Images

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Formation et Analyse d’Images Daniela Hall 30 Septembre 2004

  2. Course material • course slides (.pdf) • http://www-prima.inrialpes.fr/perso/Hall/Courses/FAI04/ • last years documents • http://www-prima.inrialpes.fr/Prima/Homepages/jlc/Courses/2003/ENSI3/FAI/ENSI3.FAI.html • Tensor notation • book: R. Hartley, A.Zisserman: Multiple view geometry in computer vision, Appendix 1, Cambridge University Press, 2000

  3. Course Overview • Session 1: • Homogenous coordinates and tensor notation • Image transformations • Camera models • Session 2: • Camera models • Reflection models • Color spaces • Session 3: • Review color spaces • Pixel based image analysis • Gaussian filter operators • Session 4: • Scale Space

  4. Course overview • Session 5: • Contrast description • Hough transform • Session 6: • Kalman filter • Tracking of regions, pixels, and lines • Session 7: • Stereo vision • Epipolar geometry • Session 8: exam

  5. Session Overview • Homogeneous coordinates • Tensor notation • Image transformations • Camera models

  6. Motivation How can we transform images? Apply transformation to all pixels First do translation, then rotation, then scaling

  7. Motivation • Transformation in 2D • Transformation using homogenous coordinates

  8. Session Overview • Homogeneous coordinates • Tensor notation • Image transformations • Camera models

  9. Homogenous coordinates • Allow to manipulate n-dim vectors in a n+1-dim space • A point p can be written as vector • In homogenous coordinates we add a scaling factor • To transform the homogenous coordinates in normal coordinate, divide by the n+1 coordinate.

  10. Homogenous coordinates • we note • Proof:

  11. Classic Homogenous coordinates Translation

  12. Classic Homogenous coordinates Rotation (clockwise) x p pl y

  13. Classic Homogenous coordinates Translation and rotation

  14. Classic Homogenous coordinates Translation, rotation and scaling

  15. Session Overview • Homogeneous coordinates • Tensor notation • Image transformations • Camera models

  16. Tensor notation • In tensor notation a superscript stands for a column vector • a subscript for a row vector (useful to specify lines) • A matrix is written as

  17. Tensor notation • Tensor summation convention: • an index repeated as sub and superscript in a product represents summation over the range of the index. • Example:

  18. Tensor notation • Scalar product can be written as • where the subscript has the same index as the superscript. This implicitly computes the sum. • This is commutative • Multiplication of a matrix and a vector • This means a change of P from the coordinate system i to the coordinate system j (transformation).

  19. Line equation • In R a line is defined by the equation • In homogenous coordinates we can write this as • In tensor notation we can write this as

  20. The tensor operator Eijk and Eijk • The tensor Eijk is defined for i,j,k=1,...,3 as odd even 1 2 3 2 3 1 3 1 2 3 2 1 1 3 2 2 1 3

  21. Determinant in tensor notation

  22. Cross product in tensor notation

  23. Example • Line equation in tensor notation

  24. Example • Intersection of two lines • L: l1x+l2y+l3=0, M: m1x+m2y+m3=0 • Intersection: • Tensor: • Result:

  25. Classic Tensor notation T is a transformation from the system A to B Homogenous coordinates Translation

  26. Homogenous coordinates Rotation • Classic • Tensor notation

  27. Session Overview • Homogeneous coordinates • Tensor notation • Image transformations • Camera models

  28. Tsd Destination image Source image Image transformation For each position Pd in the destination image we search the pixel color I(Pd).

  29. Tsd Destination image Source image Image transformation First we compute a position Ps in the source image.

  30. Pd Ps1 Ps0 Ps Ps3 Ps2 Image transformation • P is not integer. • How do we compute I(Pd)=I(Ps)? • Answer: by a linear combination of the neighboring pixels I(Psi) (interpolation). Tsd

  31. Interpolation methods • 0th order: take value of closest neighbor • fast, applied for binary images • 1st order: linear interpolation and bi-linear interpolation • 3rd order: cubic spline interpolation

  32. intensity I(P) Ps0 Ps1 Ps Ps3 Ps2 Ps0 Ps1 Ps position P 1D linear interpolation Gradient Pixel color

  33. 2D linear interpolation intensity I(P) y Ps0 Ps1 I(Ps) Psy Ps Ps Ps3 Ps2 Ps1 x Psx Ps0 Gradient Pixel color

  34. Bi-linear interpolation intensity I(P) y Ps0 Ps1 I(Ps) Ps3 Psy Ps Ps Ps3 Ps2 Ps1 x Psx Ps0 The bilinear approach computes the weighted average of the four neighboring pixels. Bilinear formula:

  35. Higher order interpolation • Cubic spline interpolation takes into account more than only the closest pixels. • Result: more expensive to compute, but image has less artefacts, image is smoother.

  36. Session Overview • Homogeneous coordinates • Tensor notation • Image transformations • Camera model

  37. Camera model • Physical geometry

  38. Camera model • Projective model Scene coordinates Camera coordinates Image coordinates

  39. Change of coordinate systems • Transformation from scene to camera coordinates • Projection of camera coordinates to retina coordinates • Transformation from retina coordinates to image coordinates • Composition

  40. Transformation Scene - Camera • (xs,ys,zs) is position of the origin of the camera system with respect to the scene coordinates (translation). • R is the orientation of the camera system with respect to the scene system (3d rotation).

  41. 3d rotation • Around x-axis (counter-clockwise) • Around y-axis • Around z-axis • General

More Related