CSci 6971: Image Registration Lecture 3: Images and Transformations March 1, 2005 Prof. Charlene Tsai.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

Computer Vision, Robert Pless
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
Computer Graphics Lecture 4 Geometry & Transformations.
1 Computer Graphics Chapter 8 3D Transformations.
Mapping: Scaling Rotation Translation Warp
Camera Calibration. Issues: what are intrinsic parameters of the camera? what is the camera matrix? (intrinsic+extrinsic) General strategy: view calibration.
1 Computer Graphics Chapter 6 2D Transformations.
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
2D Geometric Transformations
CSci 6971: Image Registration Lecture 3: Images and Transformations January 20, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart,
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Motion Analysis (contd.) Slides are from RPI Registration Class.
CSci 6971: Image Registration Lecture 4: First Examples January 23, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart, RPI Dr.
Announcements. Projection Today’s Readings Nalwa 2.1.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
Uncalibrated Geometry & Stratification Sastry and Yang
CS485/685 Computer Vision Prof. George Bebis
3-D Geometry.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
CSci 6971: Image Registration Lecture 2: Vectors and Matrices January 16, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart, RPI.
Computer Graphics (Fall 2008) COMS 4160, Lecture 3: Transformations 1
The Pinhole Camera Model
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Computer Graphics (Fall 2004) COMS 4160, Lecture 3: Transformations 1
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Stockman MSU/CSE Math models 3D to 2D Affine transformations in 3D; Projections 3D to 2D; Derivation of camera matrix form.
Image warping/morphing Digital Video Special Effects Fall /10/17 with slides by Y.Y. Chuang,Richard Szeliski, Steve Seitz and Alexei Efros.
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
CS 450: Computer Graphics 2D TRANSFORMATIONS
Image formation & Geometrical Transforms Francisco Gómez J MMS U. Central y UJTL.
CS 450: COMPUTER GRAPHICS 3D TRANSFORMATIONS SPRING 2015 DR. MICHAEL J. REALE.
Automatic Camera Calibration
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 2: Review of Basic Math
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Camera Geometry and Calibration Thanks to Martial Hebert.
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Imaging Geometry for the Pinhole Camera Outline: Motivation |The pinhole camera.
Digital Image Processing Lecture 7: Geometric Transformation March 16, 2005 Prof. Charlene Tsai.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
Geometric Camera Models
10/3/02 (c) 2002 University of Wisconsin, CS 559 Last Time 2D Coordinate systems and transformations.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Affine Transformations.
EECS 274 Computer Vision Affine Structure from Motion.
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)
Geometric Transformations
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
ELE 488 Fall 2006 Image Processing and Transmission ( )
Affine Geometry.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 3: Transformations 1
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Instructor: Mircea Nicolescu Lecture 9
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
Image Warping 2D Geometric Transformations
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
CSE 167 [Win 17], Lecture 2: Review of Basic Math Ravi Ramamoorthi
3. Transformation
3D Transformations Source & Courtesy: University of Wisconsin,
Homogeneous Coordinates (Projective Space)
CENG 477 Introduction to Computer Graphics
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Transformations.
Geometric Camera Models
(c) University of Wisconsin, CS559
TWO DIMENSIONAL TRANSFORMATION
The Pinhole Camera Model
Presentation transcript:

CSci 6971: Image Registration Lecture 3: Images and Transformations March 1, 2005 Prof. Charlene Tsai

Image RegistrationLecture 3 2 Outline  Images:  Types of images  Coordinate systems  Transformations  Similarity transformations in 2d and 3d  Affine transformations in 2d and 3d  Projective transformations  Non-linear and deformable transformations  Images:  Types of images  Coordinate systems  Transformations  Similarity transformations in 2d and 3d  Affine transformations in 2d and 3d  Projective transformations  Non-linear and deformable transformations

Image RegistrationLecture 3 3 Images  Medical (tomographic) images:  CT and MRI  Intensity / video images  Range images  Medical (tomographic) images:  CT and MRI  Intensity / video images  Range images

Image RegistrationLecture 3 4 CT: X-Ray Computed Tomography  電腦斷層  X-ray projection through body  Reconstruction of interior via computed tomography  A volume of slices  Voxels in each slice are between 0.5 mm and 1.0 mm on a side  Spacing between slices is typically 1.0 and 5.0 mm  Resulting intensities are measured in Hounsfield units  0 for water  ~ for air, for bone  電腦斷層  X-ray projection through body  Reconstruction of interior via computed tomography  A volume of slices  Voxels in each slice are between 0.5 mm and 1.0 mm on a side  Spacing between slices is typically 1.0 and 5.0 mm  Resulting intensities are measured in Hounsfield units  0 for water  ~ for air, for bone

Image RegistrationLecture 3 5 MRI: Magnetic Resonance Images  磁核共振影像  Magnetic fields:  Nuclei of individual water molecules  Induced fields  Measure the relaxation times of molecules as magnetic fields are changed  Images are recorded as individual slices and as volumes  Slices need not be axial as in CT  MRIs are subject to field distortions  There are many different types of MRIs  磁核共振影像  Magnetic fields:  Nuclei of individual water molecules  Induced fields  Measure the relaxation times of molecules as magnetic fields are changed  Images are recorded as individual slices and as volumes  Slices need not be axial as in CT  MRIs are subject to field distortions  There are many different types of MRIs

Image RegistrationLecture 3 6 Video Images  Pixel intensities depend on  Illumination  Surface orientation  Reflectance  Viewing direction projection  Digitization  By themselves  Pixel dimensions have no physical meaning  Pixel intensities have no physical meaning  Pixel intensities depend on  Illumination  Surface orientation  Reflectance  Viewing direction projection  Digitization  By themselves  Pixel dimensions have no physical meaning  Pixel intensities have no physical meaning

Image RegistrationLecture 3 7 Range Images  Measuring depth  Representation:  (x,y,z) at each pixel  “Point cloud” of (x,y,z) values  Measuring depth  Representation:  (x,y,z) at each pixel  “Point cloud” of (x,y,z) values Brighter pixels are further away Intensity image of same scene

Image RegistrationLecture 3 8 Coordinate Systems  Topics:  Image coordinates  Physical coordinates  Mapping between them  One must be aware of these, especially in the implementation details of a registration algorithm  Topics:  Image coordinates  Physical coordinates  Mapping between them  One must be aware of these, especially in the implementation details of a registration algorithm

Image RegistrationLecture 3 9 Image Coordinate Systems  The origin is generally at the corner of the image, often the upper left  Directions:  x axis is across  y axis is down  Differs from matrix coordinates and Cartesian coordinates  Units are integer increments of grid indices  The origin is generally at the corner of the image, often the upper left  Directions:  x axis is across  y axis is down  Differs from matrix coordinates and Cartesian coordinates  Units are integer increments of grid indices v u (0,0)

Image RegistrationLecture 3 10 Physical Coordinates  Origin:  Near center in video images  Defined by scanner for medical images  Directions:  Right-handed coordinate frame  Units are millimeters (medical images)  Origin:  Near center in video images  Defined by scanner for medical images  Directions:  Right-handed coordinate frame  Units are millimeters (medical images) v u x y

Image RegistrationLecture 3 11 Non-Isotropic Voxels in Medical Images  Axial (z) dimension is often greater than within slice (x and y) dimensions  At worst this can be close to an order of magnitude  New scanners are getting close to isotropic dimensions  Axial (z) dimension is often greater than within slice (x and y) dimensions  At worst this can be close to an order of magnitude  New scanners are getting close to isotropic dimensions

Image RegistrationLecture 3 12 Change of Coordinates as Matrix Multiplication  Physical coordinates to pixel coordinates: Scaling from physical to pixel units: parameters are pixels per mm Translation of origin in pixel units

Image RegistrationLecture 3 13 Homogeneous Form  Using homogeneous coordinates --- in simplest terms, adding a 1 at the end of each vector --- allows us to write this using a single matrix multiplication:

Image RegistrationLecture 3 14 Transformations  Geometric transformations  Intensity transformations  Geometric transformations  Intensity transformations

Image RegistrationLecture 3 15 Forward Geometric Transformation “Moving” image, I m “Fixed” image, I f Transformed moving image, I m ’. It is mapped into the coordinate system of I f

Image RegistrationLecture 3 16 Mapping Pixel Values - Going Backwards “Moving” image, I m “Fixed” image, I f Need to go backward to get pixel value. This will generally not “land” on a single pixel location. Instead you need to do interpolation.

Image RegistrationLecture 3 17 Backward Transformation  Because of the above, some techniques estimate the parameters of the “backwards” transformation, T -1 :  From the fixed image to the moving image  This can sometimes become a problem if the mapping function is non-invertible  Intensity-based algorithms generally estimate the backwards transformation  Because of the above, some techniques estimate the parameters of the “backwards” transformation, T -1 :  From the fixed image to the moving image  This can sometimes become a problem if the mapping function is non-invertible  Intensity-based algorithms generally estimate the backwards transformation

Image RegistrationLecture 3 18 Intensity Transformations As Well  When the intensities must be transformed as well, the equations get more complicated: Intensity mapping function Intensity mapping parameters Fortunately, we will not be very concerned with intensity mapping

Image RegistrationLecture 3 19 Transformation Models - A Start  Translation and scaling in 2d and 3d  Similarity transformations in 2d and 3d  Affine transformations in 2d and 3d  Translation and scaling in 2d and 3d  Similarity transformations in 2d and 3d  Affine transformations in 2d and 3d

Image RegistrationLecture 3 20 Translation and Independent Scaling  We’ve already seen this in 2d:  Transformations between pixel and physical coordinates  Translation and scaling in the retina application  In matrix form:  Where  In homogeneous form:  We’ve already seen this in 2d:  Transformations between pixel and physical coordinates  Translation and scaling in the retina application  In matrix form:  Where  In homogeneous form: Two-component vector

Image RegistrationLecture 3 21 Similarity Transformations  Components:  Rotation (next slide)  Translation  Independent scaling  “Invariants”  Angles between vectors remain fixed  All lengths scale proportionally, so the ratio of lengths is preserved  Example applications:  Multimodality, intra-subject (same person) brain registration  Registration of range images (no scaling)  Components:  Rotation (next slide)  Translation  Independent scaling  “Invariants”  Angles between vectors remain fixed  All lengths scale proportionally, so the ratio of lengths is preserved  Example applications:  Multimodality, intra-subject (same person) brain registration  Registration of range images (no scaling)

Image RegistrationLecture 3 22 Rotations in 2d  Assume (for now) that forward transformation is only a rotation  Image origins are in upper left corner; angles are measured “clockwise” with respect to x axis  Assume (for now) that forward transformation is only a rotation  Image origins are in upper left corner; angles are measured “clockwise” with respect to x axis ImIm IfIf

Image RegistrationLecture 3 23 Similarity Transformations in 2d  As a result:  Or:  As a result:  Or:

Image RegistrationLecture 3 24 Rotation Matrices and 3d Rotations  The 2d rotation matrix is orthonormal with determinant 1:  In arbitrary dimensions, these two properties hold.  Therefore, we write similarity transformations in arbitrary dimensions as  The 2d rotation matrix is orthonormal with determinant 1:  In arbitrary dimensions, these two properties hold.  Therefore, we write similarity transformations in arbitrary dimensions as

Image RegistrationLecture 3 25 Representing Rotations in 3d (Teaser)  R is a 3x3 matrix, giving it 9 parameters, but it has only 3 degrees of freedom  Its orthonormality properties remove the other 6.  Question: How to represent R?  Some answers (out of many):  Small angle approximations about each axis  Quaternions  R is a 3x3 matrix, giving it 9 parameters, but it has only 3 degrees of freedom  Its orthonormality properties remove the other 6.  Question: How to represent R?  Some answers (out of many):  Small angle approximations about each axis  Quaternions

Image RegistrationLecture 3 26 Affine Transformations  Geometry:  Rotation, scaling (each dimension separately), translation and shearing  Invariants:  Parallel lines remain parallel  Ratio of lengths of segments along a line remains fixed.  Example application:  Mosaic construction for images of earth surface (flat surface, relatively non-oblique cameras)  Geometry:  Rotation, scaling (each dimension separately), translation and shearing  Invariants:  Parallel lines remain parallel  Ratio of lengths of segments along a line remains fixed.  Example application:  Mosaic construction for images of earth surface (flat surface, relatively non-oblique cameras)

Image RegistrationLecture 3 27 Affine Transformations in 2d  In 2d, multiply x location by arbitrary, but invertible 2x2 matrix:  In general,  Or, in homogeneous form,  In 2d, multiply x location by arbitrary, but invertible 2x2 matrix:  In general,  Or, in homogeneous form,

Image RegistrationLecture 3 28 Affine Transformations in 2d y OR x y’ x’

Image RegistrationLecture 3 29 Projective Transformations  General linear transformation  Lengths, angle, and parallel lines are NOT preserved  Coincidence, tangency, and complicated ratios of lengths are the invariants  Application:  Mosaics of image taken by camera rotating about its optical center  Mosaic images of planar surface  General linear transformation  Lengths, angle, and parallel lines are NOT preserved  Coincidence, tangency, and complicated ratios of lengths are the invariants  Application:  Mosaics of image taken by camera rotating about its optical center  Mosaic images of planar surface

Image RegistrationLecture 3 30 Algebra of Projective Transformations  Add non-zero bottom row to the homogeneous matrix:  Transformed point location:  Estimation is somewhat more complicated than for affine transformations  Add non-zero bottom row to the homogeneous matrix:  Transformed point location:  Estimation is somewhat more complicated than for affine transformations

Image RegistrationLecture 3 31 Non-Linear Transformations  Transformation using in retinal image mosaics is a non-linear function of the image coordinates:

Image RegistrationLecture 3 32 Deformable Models  Non-global functions  Often PDE-based, e.g.:  Thin-plate splines  Fluid mechanics  Representation  B-splines  Finite elements  Fourier bases  Radial basis functions  Lectures will provide an introduction  Non-global functions  Often PDE-based, e.g.:  Thin-plate splines  Fluid mechanics  Representation  B-splines  Finite elements  Fourier bases  Radial basis functions  Lectures will provide an introduction

Image RegistrationLecture 3 33 Summary  Images and image coordinate systems  Watch out for the difference between physical and pixel/voxel coordinates and for non-isotropic voxels!  Transformation models  Forward and backward mapping  Our focus will be almost entirely geometric transformation as opposed to intensity transformations  Transformations:  Similarity  Affine  Projective  Non-linear and deformable  Images and image coordinate systems  Watch out for the difference between physical and pixel/voxel coordinates and for non-isotropic voxels!  Transformation models  Forward and backward mapping  Our focus will be almost entirely geometric transformation as opposed to intensity transformations  Transformations:  Similarity  Affine  Projective  Non-linear and deformable

Image RegistrationLecture 3 34 Homework  Available online

Image RegistrationLecture 3 35 Looking Ahead to Lecture 4  Introduction to intensity-based registration