1 / 30

Image Formation Fundamentals

Image Formation Fundamentals. Basic Concepts (Continued…). How are images represented in the computer?. courstey UNR computer vision course. Image digitization. Sampling means measuring the value of an image at a finite number of points.

kata
Download Presentation

Image Formation Fundamentals

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. Image Formation Fundamentals Basic Concepts (Continued…)

  2. How are images represented in the computer? courstey UNR computer vision course

  3. Image digitization • Sampling means measuring the value of an image at a finite number of points. • Quantization is the representation of the measured value at the sampled point by an integer. courstey UNR computer vision course

  4. Image digitization (cont’d) courstey UNR computer vision course

  5. Image quantization (Example) 256 gray levels (8bits/pixel) 32 gray levels (5 bits/pixel) 16 gray levels (4 bits/pixel) 8 gray levels (3 bits/pixel) 4 gray levels (2 bits/pixel) 2 gray levels (1 bit/pixel) courstey UNR computer vision course

  6. Image sampling (example) • original image sampled by a factor of 2 • sampled by a factor of 4 sampled by a factor of 8 courstey UNR computer vision course

  7. Digital image • An image is represented by a rectangular array of integers. • An integer represents the brightness or darkness of the image at that point. • N: # of rows, M: # of columns, Q: # of gray levels • N = , M = , Q = (q is the # of bits/pixel) • Storage requirements: NxMxQ (e.g., N=M=1024, q=8, 1MB) courstey UNR computer vision course

  8. Image formation • There are two parts to the image formation process: • The geometry of image formation, which determines where in the image plane the projection of a point in the scene will be located. • The physics of light, which determines the brightness of a point in the image plane as a function of illumination and surface properties. courstey UNR computer vision course

  9. A Simple model of image formation • The scene is illuminated by a single source. • The scene reflects radiation towards the camera. • The camera senses it via chemicals on film. courstey UNR computer vision course

  10. Abstract camera model - box with a small hole in it Pinhole cameras work in practice Pinhole cameras courstey Dr. G. D. Hager

  11. Real Pinhole Cameras Pinhole too big - many directions are averaged, blurring the image Pinhole too small- diffraction effects blur the image Generally, pinhole cameras are dark, because a very small set of rays from a particular point hits the screen. courstey Dr. G. D. Hager

  12. The reason for lenses Lenses gather andfocus light, allowingfor brighter images. courstey Dr. G. D. Hager

  13. The thin lens • Thin Lens Properties: • A ray entering parallel to optical axisgoes through the focal point. • A ray emerging from focal point is parallel to optical axis • A ray through the optical center is unaltered courstey Dr. G. D. Hager

  14. The thin lens Note that, if the image plane is very small and/or z >> z’, then z’ is approximately equal to f courstey Dr. G. D. Hager

  15. Lens Realities Real lenses have a finite depth of field, and usuallysuffer from a variety of defects Spherical Aberration vignetting courstey Dr. G. D. Hager

  16. Equating z’ and f We have, by similar triangles, that (x, y, z) -> (-f x/z, -f y/z, -f) Ignore the third coordinate, and flip the image around to get: The equation of projection courstey Dr. G. D. Hager

  17. Distant objects are smaller courstey Dr. G. D. Hager

  18. Parallel lines meet common to draw film plane in front of the focal point A Good Exercise: Show this is the case! courstey Dr. G. D. Hager

  19. Orthographic projection Suppose I let f go to infinity; then courstey Dr. G. D. Hager

  20. The model for orthographic projection courstey Dr. G. D. Hager

  21. Issue perspective effects, but not over the scale of individual objects collect points into a group at about the same depth, then divide each point by the depth of its group Adv: easy Disadv: wrong Weak perspective courstey Dr. G. D. Hager

  22. The model for weak perspective projection courstey Dr. G. D. Hager

  23. Model for perspective projection courstey Dr. G. D. Hager

  24. Intrinsic Parameters Intrinsic Parameters describe the conversion fromunit focal length metric to pixel coordinates (and the reverse) It is common to combine scale and focal length together as the are both scaling factors; note projection is unitless in this case! courstey Dr. G. D. Hager

  25. pixel coordinate system image coordinate system Scaling factor = depth of the point X world coordinate system (R,T) camera coordinate system Image formation - Recap x1 If we consider unit focal length Taken from MASKS (invitation to 3D vision)

  26. Summary: points expressed in external frame points are converted to canonical camera coordinates points are projected points are converted to pixel units Camera parameters point in pixel coords. point in metric image coords. point in cam. coords. point in world coords. courstey Dr. G. D. Hager

  27. Camera Calibration The problem: Compute the camera intrinsic and extrinsic parameters using only observed camera data.

  28. Calibration with a Rig Use the fact that both 3-D and 2-D coordinates of feature points on a pre-fabricated object (e.g., a cube) are known.

  29. Calibration with Multiple Plane Images Actually used in practice these days

  30. Calibration Continued…

More Related