Download presentation
Presentation is loading. Please wait.
Published byGwendolyn French Modified over 9 years ago
1
Image formation & Geometrical Transforms Francisco Gómez J MMS U. Central y UJTL
2
Digital images Arrays of numbers Numbers can represent: – Intensity (gray level) – Range – X-ray absortion coefficient – Amount of light
3
Human eye www.youreyescenter.com Color sensors Intensity sensors 100,0000,000
4
Distribution of cones and rods
5
Sensor simplified Pupil Limit amount of light and incidence angle Lens Focus the light to a single image point Fotosensitive surface Film
6
Digital cameras – sensor type
7
Sensor type CCD type (Charge coupled device) Charge is accumulated during exposure CMOS type (complementary metal oxide on silicon) Light affects the conductivity (or gain) of each photodetector www.parentesis.com Pixel! To take into account: Number and size of sensor elements – Chip size – ADC resolution
8
Pinhole camera The pinhole camera and camera obscura principle illustrated in 1925, in The Boy Scientist.
9
Pinhole camera The «Camera obscura» was used by renaissance paienters to help to understand Perspective projection
10
Pinhole and lens model https://foundationsofvision.stanford.edu/appendix/ Pinhole Given a projection plane parallel to X-Y located at distance f where the point (p1,p2,p3) is going to be projected, i.e, which is the value for (u,v)? u=(p 1 /p 3 )f and v=(p 2 /p 3 )f
11
Pinhole and lens model This is the CCD sensor units in mm Image plane coordinate This is the real object in m
12
Example Camera – Focal length: 5mm You have an scene point located at (1m,2m,5m) – Where at the image plane coordinate this point is going to be located? – If the image plane is 10mm,10mm which is the FoV? – A building is 100m wide. How far away do we have to be in order that it fills the field of view? (0,0) Optical center (cx,cy) Optical center
13
Image buffer Optical center digital image Pixel Image Origin
14
Image Buffer
15
Example A camera observes a rectangle 2m away – The rectangle is known to be 50 cm x 30 cm – If the image in the rectangle measures 60 x 15 pixels Where is located the focal length in pixels?
16
Other kind of sensors (Color camera) www.eoshd.com
17
Other kind of sensors (Kinect) http://123kinect.com/kinect-forums/thread-569.html
18
Other kind of sensors http://mesh.brown.edu/3dpgp-2009/homework/hw2/figures/teaser.jpg
19
Other kind of sensors http://images.anandtech.com/doci/4057/StructuredLightSystem.png
20
Other kind of sensors (MRI) http://www.howequipmentworks.com/physics/medical_imaging/mri/magnetic_resonance_imaging.html
21
Other kind of sensors (MRI) http://www.howequipmentworks.com/physics/medical_imaging/mri/magnetic_resonance_imaging.html
22
Other kind of sensors (MRI) https://electrosome.com/light-field-camera/
23
Other kind of sensors
24
All is about tranform between frames
25
2D to 2d Transforms (Rigid) (1,1)(?,?) 2 2 xx (x’,y’) (?,?) yy Preserves shape and size Number of degrees of freedom (3): t=( x, y) and
26
2D to 2d Transforms (Euclidean - Rigid) R is orthonormal Transpose is the inverse How to invert the transform?
27
Homogeneous coordinates - Homogeneous coordinates simply add an extra element 1 -If during operations the third element is different of 1 divide by this number -This representation is quite convenient to represent transformations to
28
Homogeneous coordinates
29
Example Transform the image point (10,40) using a rotation of 90 degrees and a translation of (15,-60)
30
2D to 2d Transforms (Similarity - Scaled) Preserve angles but not distances
31
2D to 2d Transforms (Afinne) Models rotation, translation, scaling, shearing, and reflection
32
Example I = imread('cameraman.tif'); tform = maketform('affine',[1 0 0;.25 1.5 0; 0 0 1]); J = imtransform(I,tform); imshow(I), figure, imshow(J)
33
2D to 2d Transforms (Afinne) Models rotation, translation, scaling, shearing, and reflection
34
2D to 2d Transforms (Projective - Homography)
35
What preserves?
36
3d to 3d Transforms Coordinate frames – {A}, {B} How to describe points in {B} respect to {A} – We need a t – Rotation matrix R
37
3d to 3d Transforms (Rotation) http://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Yaw_Axis_Corrected.svg/2000px-Yaw_Axis_Corrected.svg.png 3 degrees of freedom! But we need a convention
38
Rotations around the axis
39
Rotation around the axis A rotation matrix can be expressed using a 3 x3 matrix Rotation in X Rotation in YRotation in Z
40
Rotational transformation R represents a rotational transformation of frame A to frame B From Point represented in frame B Point represented in frame A
41
Transforming a 3d point
42
In homogeneous coordinates Homogeneous What is the inverse?
43
Example Let p=(2,2,5) in frame A Frame B is located at (10,-5,6) and rotated 65 degrees around z-axis with respect to frame A Where is point p located respect to frame B?
44
Transformations are maps AB Transformation are answers to the question: If there are points in A how they can be written in B?
45
Small angle approximation sin( sin( Useful if you want to rotate objects in a video
46
Recovering angles
47
3d to 2d Transforms Projects 3d points into 2d
48
Perspective projection – Intrinsic matrix Optical center (cx,cy) How can we write the perspective projection as a transform? or How to project 3D points represented in the coordinate system attached to the camera, to the 2D image plane?
49
Extrinsic camera If 3D points are in world coordinates, we first need to transform them to camera coordinates We can write this as an extrinsic camera matrix, that does the rotation and translation, then a projection from 3D to 2D
50
World to camera
51
What about color?
52
Images in matlab
53
RGB color space
54
Hue Purity Luminosity
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.