Lecture with the content mapping between image and world coordinates, projective geometry vanishing points and lines, pinhole camera model, cameras & lenses, projection matrix.
Trang 2Department of Mechatronics
Contents
Mapping between image and world coordinates
• Projective geometry
• Pinhole camera model
• Cameras & lenses
• Projection matrix
Trang 3Department of Mechatronics
Camera and World Geometry
Trang 4Department of Mechatronics
Projection can be tricky…
Trang 5Department of Mechatronics
Projection can be tricky…
Trang 6Department of Mechatronics
Projective Geometry
• What is lost?
Trang 7Department of Mechatronics
Length is not preserved
Trang 10Department of Mechatronics
Vanishing points and lines
• Parallel lines in the world intersect in the image at a
“vanishing point”.
Trang 11Department of Mechatronics
Vanishing points and lines
Trang 12Department of Mechatronics
Vanishing points and lines
Trang 13Department of Mechatronics
Vanishing points and lines
Trang 14Department of Mechatronics
Note on estimating vanishing points
Trang 15Department of Mechatronics
Trang 16Department of Mechatronics
Trang 17Department of Mechatronics
Camera obscura: the pre-camera
• Known during classical period in China and Greece
(e.g Mo-Ti, China, 470BC to 390BC)
Trang 18Department of Mechatronics
Trang 19Department of Mechatronics
Trang 20Department of Mechatronics
Trang 21Department of Mechatronics
Trang 22Department of Mechatronics
Parallel light rays which pass through a small aperture
begin to diverge and interfere with one another This
becomes more significant as the size of the aperture
decreases relative to the wavelength of light passing
through, but occurs to some extent for any size of
aperture or concentrated light source.
Trang 23Department of Mechatronics
Cameras and Lenses
• A lens focuses light onto the film
Trang 24Department of Mechatronics
Cameras and Lenses
• A lens focuses light onto the film
Rays passing through the center are not deviated.
All parallel rays converge to one point on a plane
located at the focal length f.
Trang 25Department of Mechatronics
Cameras and Lenses
• A lens focuses light onto the film
There is a specific distance at which objects are “in
focus” [other points project to a “circle of confusion”
in the image].
Trang 26Department of Mechatronics
and reflection are co-planar.
Trang 27Department of Mechatronics
Trang 28Department of Mechatronics
Trang 29Department of Mechatronics
Trang 30Department of Mechatronics
Trang 31Department of Mechatronics
Large (top) and small (bottom) apertures
Khẩu độ không hoạt động độc lập, mà nó phải có kết hợp chặc chẽ với độ dài tiêu cự để có được hiệu ứng ánh sáng tốt nhất.
Máy ảnh số đã có chế độ đo sáng tự động, các chế độ chụp cài sẵn Những chương trình này đã được lập trình sẵn và dựa vào hệ thống đo sáng, máy sẽ lựa chọn khẩu độ phù hợp với khung
cảnh tại thời điểm chụp.
Trang 32Department of Mechatronics
Field of View (Zoom, focal length)
Trang 33Department of Mechatronics
Trang 34Department of Mechatronics
Trang 35Department of Mechatronics
Trang 36Department of Mechatronics
view of a camera, while varying the camera distance, keeping the object in frame, results in vastly differing images At narrow angles, large distances, light rays are nearly parallel, resulting in a "flattened" image At wide angles, short distances, the object appears
distorted.
Trang 37Department of Mechatronics
Trang 38Department of Mechatronics
Mathematically, for a linear system, F, defined by F(x) = y, where x is some sort of stimulus (input) and
y is some sort of response (output), the superposition (i.e., sum) of stimuli yields a superposition of the respective responses:
In the field of electrical engineering, where the x and y signals are allowed to be complex-valued (as
is common in signal processing), a linear system must satisfy the superposition property, which
requires the system to be additive and homogeneous
F(x1 + x2) = F(x1) + F(x2) F(ax) = aF(x)
F x x F x F x
Trang 39Department of Mechatronics
Projection
Camera Center (tx, ty,
v
u
Trang 41Department of Mechatronics
Trang 42Department of Mechatronics
Trang 43Department of Mechatronics
Trang 44Department of Mechatronics
Trang 45Department of Mechatronics
Trang 46Department of Mechatronics
Trang 47Department of Mechatronics
Trang 48Department of Mechatronics
Finally, the camera coordinate system may be skewed due to manufacturing error, so that angle
b etween two image axes is not equal to 90º.
Trang 49Department of Mechatronics
Trang 50Department of Mechatronics
Trang 51Department of Mechatronics
Trang 52Department of Mechatronics
Trang 53Department of Mechatronics
Trang 54Department of Mechatronics