Geometric and Radiometric Camera Calibration Shape From Stereo requires geometric knowledge of: –Cameras’ extrinsic parameters, i.e. the geometric relationship.

Slides:



Advertisements
Similar presentations
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
Advertisements

Week 5 - Friday.  What did we talk about last time?  Quaternions  Vertex blending  Morphing  Projections.
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
Eyes for Relighting Extracting environment maps for use in integrating and relighting scenes (Noshino and Nayar)
16421: Vision Sensors Lecture 6: Radiometry and Radiometric Calibration Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 2:50pm.
Basic Principles of Surface Reflectance
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Class 8: Radiometric Corrections
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
December 5, 2013Computer Vision Lecture 20: Hidden Markov Models/Depth 1 Stereo Vision Due to the limited resolution of images, increasing the baseline.
AA II z f Surface Radiance and Image Irradiance Same solid angle Pinhole Camera Model.
May 2004SFS1 Shape from shading Surface brightness and Surface Orientation --> Reflectance map READING: Nalwa Chapter 5. BKP Horn, Chapter 10.
Review: solid angle in recent years I have been surprised to find that many students taking this course are not comfortable with the concept of “solid.
CS485/685 Computer Vision Prof. George Bebis
Image Forgery Detection by Gamma Correction Differences.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Introduction to Computer Vision CS / ECE 181B Tues, May 18, 2004 Ack: Matthew Turk (slides)
Modeling the imaging system Why? If a customer gives you specification of what they wish to see, in what environment the system should perform, you as.
Basic Principles of Surface Reflectance
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Lecture 4: The spectrum, color theory and absorption and photogrammetry Thursday, 14 January Ch 2.3 (color film)
Photometric Stereo & Shape from Shading
Computer Graphics Inf4/MSc Computer Graphics Lecture Notes #16 Image-Based Lighting.
Basic Principles of Imaging and Photometry Lecture #2 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Light and shading Source: A. Efros.
Reflectance Map: Photometric Stereo and Shape from Shading
Geometric and Radiometric Camera Calibration Shape From Stereo requires geometric knowledge of: –Cameras’ extrinsic parameters, i.e. the geometric relationship.
Remote Sensing Image Rectification and Restoration
Camera Geometry and Calibration Thanks to Martial Hebert.
Radiometric and Geometric Correction
Image Formation Fundamentals Basic Concepts (Continued…)
Analysis of Lighting Effects Outline: The problem Lighting models Shape from shading Photometric stereo Harmonic analysis of lighting.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Geometric Models & Camera Calibration
Shape from Shading and Texture. Lambertian Reflectance Model Diffuse surfaces appear equally bright from all directionsDiffuse surfaces appear equally.
October 29-30, 2001MEIDEX - Crew Tutorial - Calibration F - 1 MEIDEX – Crew Tutorial Calibration of IMC-201 Adam D. Devir, MEIDEX Payload Manager.
16421: Vision Sensors Lecture 7: High Dynamic Range Imaging Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 3:00pm.
Capturing light Source: A. Efros.
Sources, Shadows, and Shading
Digital Image Processing GSP 216. Digital Image Processing Pre-Processing – Correcting for radiometric and geometric errors in data Image Rectification.
Image Processing Jitendra Malik. Different kinds of images Radiance images, where a pixel value corresponds to the radiance from some point in the scene.
Advanced Computer Graphics Advanced Shaders CO2409 Computer Graphics Week 16.
Radiometric Correction and Image Enhancement Modifying digital numbers.
1 Optical observations of asteroids – and the same for space debris… Dr. D. Koschny European Space Agency Chair of Astronautics, TU Munich Stardust school.
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)
Shape from Shading Course web page: vision.cis.udel.edu/cv February 26, 2003  Lecture 6.
Multiple Light Source Optical Flow Multiple Light Source Optical Flow Robert J. Woodham ICCV’90.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Radiometry of Image Formation Jitendra Malik. A camera creates an image … The image I(x,y) measures how much light is captured at pixel (x,y) We want.
Understanding the effect of lighting in images Ronen Basri.
Radiometry of Image Formation Jitendra Malik. What is in an image? The image is an array of brightness values (three arrays for RGB images)
EECS 274 Computer Vision Sources, Shadows, and Shading.
Correspondence and Stereopsis. Introduction Disparity – Informally: difference between two pictures – Allows us to gain a strong sense of depth Stereopsis.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
Announcements Project 3a due today Project 3b due next Friday.
MAN-522 Computer Vision Spring
Processing visual information for Computer Vision
Radiometric Preprocessing: Atmospheric Correction
Common Classification Tasks
Computer Vision Lecture 4: Color
Image formation and the shape from shading problem
Filtering Things to take away from this lecture An image as a function
Lecture 28: Photometric Stereo
Sensor Effects Calibration: correction of observed data into physically meaningful data by using a reference. DN  Radiance (sensor)  Radiance (surface)
Filtering An image as a function Digital vs. continuous images
Shape from Shading and Texture
Distributed Ray Tracing
Physical Problem of Simultaneous Linear Equations in Image Processing
Presentation transcript:

Geometric and Radiometric Camera Calibration Shape From Stereo requires geometric knowledge of: –Cameras’ extrinsic parameters, i.e. the geometric relationship between the two cameras. –Camera intrinsic parameters, i.e. each camera’s internal geometry (e.g. Focal Length) and lens distortion effects. Shape From Shading requires radiometric knowledge of: –Camera detector uniformity (e.g. Flat-field images) –Camera detector temperature noise (e.g. Dark frame images) –Camera detector bad pixels –Camera Digital Number (DN) to radiance transfer function CSM4220 1

Camera Radiometric Calibration - 1 All cameras require radiometric calibration, and this is most important for correct science image data interpretation. Basic radiometric calibration requires three types of image exposure: Dark Frame – Typically a long exposure with no light being received by the camera detector (e.g. lens cap on). This is required to remove extraneous detector noise, and is very easy to perform for terrestrial applications. However, dark frames must be captured at those temperatures that will be experienced by the detector when capturing images. 2 CSM4220 Example dark frame showing ‘hot’ pixels

Camera Radiometric Calibration - 2 Bias Frame - Zero-length camera detector exposure. This is required to compensate for different pixel ‘start- up’ values (due to the bias offset applied to the A-D converter). The main issues here are that bias frames should also be captured at those temperatures that will be experienced by the detector, and to ensure that the camera detector software permits this type of exposure. However, they are not needed if the dark frames match the exposure time of the images from which they are to be subtracted, since dark frames contain bias information. 3 CSM4220

Camera Radiometric Calibration - 3 Flat Field - Exposure of a uniform white surface. This is required to remove artefacts from 2D images that are caused by variations in the pixel-to- pixel sensitivity of the detector and/or by distortions in the optical path (e.g. dust on lens, vignetting, unequal pixel light sensitivity). This is harder to set up, and should be dark frame adjusted. 4 CSM4220 The main problem is obtaining a white ‘surface’ that is truly uniform. In order to overcome this problem, an integrating sphere is used. Ideally a flat field image should be dark frame corrected to create a calibrated flat field image.

Camera Radiometric Calibration CSM4220 Raw image Calibrated flat field image derived from average of 4 × captured flat field images (minus dark frame) Flat field corrected image corrected_pixel x,y = (raw_pixel x,y – Dark_image_pixel x,y ) × mean_of_calibrated_flat_field_image calibrated_flat_field_pixel x,y

Camera Radiometric Calibration CSM4220 Cameras generate a Digital Number (DN) for each pixel. The camera detector (e.g. a CCD) measures a voltage for each pixel which represents the amount of light that the pixel has received. This voltage is converted to a DN using an analogue to digital converter (ADC). For a commercial off the shelf (COTS) 8-bit camera, then the pixel DN range is from 0 to 255. For applications such as shape from shading, then the DN value for each pixel needs to be converted to a physical quantity called radiance. This is a radiometric quantity, and is useful because it indicates how much of the (light) power emitted by an emitting or reflecting surface will be received by an optical system looking at the surface from some angle of view. The units of radiance are W/m 2 /sr. The steradian (sr) unit is the 3D ‘cousin’ to the 2D radians unit. If filters are used on the camera, for example, then spectral radiance is used and the units are: W/m 2 /sr/nm. A transfer function from DN to radiance is required which may, or may not, have a linear relationship.

Camera Radiometric Calibration CSM4220 The DN to radiance transfer function can be obtained via laboratory measurements, and one method is shown below. Spectral radiance at the receiving aperture Spectral Irradiance (W/m 2 ) at the receiving aperture Radius of source aperture Radius of receiving aperture Nominal distance between source and receiving apertures Spectral radiance at the source aperture measured using a spectrometer Example transfer function Example camera images

Shape From Shading - 1 The Shape From Shading (SFS) problem is how to compute the 3D shape (e.g. height-map) of a surface from a single black and white image of the surface, i.e. an image that shows the brightness (radiance) of the surface under known illumination conditions. 8 CSM4220 Diagram courtesy E. Prados and O. Faugeras

Shape From Shading - 2 In the 70’s Horn 1 was the first to formulate the Shape From Shading problem, and to realise that it required finding the solution to a nonlinear first-order Partial Differential Equation (PDE) referred to as the brightness equation: 9 CSM4220 I (x 1, x 2 ) = R (n (x 1, x 2 )), where (x 1, x 2 ) are the coordinates of a point x in the image. R is the reflectance map, I the brightness image, and n is the surface normal vector of the point x. Many SFS methods assume that the surface has Lambertian reflectance properties. 1 Horn, Berthold K.P., Shape from Shading: A Method for Obtaining the Shape of a Smooth Opaque Object from One View, PhD thesis, 1970, Department Electrical Engineering, MIT.

Shape From Shading - 3 For a Lambertian surface, then the reflectance map R is the cosine of the angle between the light vector L(x), and the normal vector n(x) to the surface (Lambert’s Law): 10 CSM4220 R = cos(L,n) = · L n |L||n| Vector dot product The apparent brightness of Lambertian surface to an observer is the same regardless of the observer’s angle of view. The surface represents an ideal diffusely reflecting surface. Note: most real surfaces are not Lambertian (see BRDF link).BRDF link

Shape From Shading CSM4220 θ1θ1 θ2θ2 cos(θ 1 ) < cos(θ 2 ), therefore Slope A is greater than Slope B cos(0°) = 1 cos(90°) = 0 Slope A Slope B Sun Light Observer Surface normal Lambertian surface

Shape From Shading CSM4220 There have been many algorithms developed to solve the Shape From Shading problem, see: Zhang et. al., Shape from Shading: A Survey, IEEE Trans. Pattern Analysis and Machine Intelligence, 21, 8, ,1999. A recent (AU) solution, called the Large Deformation Optimisation Shape From Shading (LDO-SFS) algorithm, has been generated that shows good results with Mars HRSC images from the Mars Express orbiter, see: R. O’Hara, and D. Barnes, A new shape from shading technique with application to Mars Express HRSC images, ISPRS Journal of Photogrammetry and Remote Sensing, 67, 27-34, LDO-SFS can use different surface reflectance models e.g. Lambertian, or Oren-Nayar.

Shape From Shading: LDO-SFS 13 CSM4220 Original single Martian surface (2D) image from HiRISE (MRO) Ortho-image rendered (3D) DEM views created using shape-from-shading

Shape From Shading: LDO-SFS 14 CSM4220 Left image is the single 2D HRSC (H1022) image used as the input to the AU SFS algorithm. The right image is the 3D DEM data generated by the SFS algorithm. The DEM has been reverse lighting rendered (as compared to the left input image) to demonstrate the 3D nature of the data. Note that the 3D DEM has not been rendered with the H1022 ortho-image.

Shape From Shading: LDO-SFS 15 CSM4220 DEM Visualisation and Slope Maps The left image is a topographic colour-coded image of the SFS generated DEM. Here the white coloured areas are the highest regions, and the dark blue coloured areas are the lowest regions. The right image shows a colour-coded slope map of the SFS DEM data. Green: ≥ 0°to < 10°, Blue: ≥ 10° to < 20°, and Red: ≥ 20°to < ∞°.

Shape From Shading: LDO-SFS 16 CSM4220 NOTE - SFS now with perspective projection Single input imageOutput image

Shape From Shading: LDO-SFS 17 CSM4220 NOTE - SFS now with perspective projection Single input imageOutput image

Stereo Vision (SV) versus Shape From Shading (SFS) 18 CSM4220 Both SV and SFS require accurate and precise calibration. SFS requires accurate and precise knowledge of the lighting and observer vectors relative to the scene surface. SV requires two images, SFS requires only one image. SV provides absolute scene scale and dimensions. SFS has no concept of absolute scene scale and dimensions. SV accuracy falls off with distance (remember D ∝ 1/d). SFS accuracy not dependent on scene distance. SV works well when texture is present for disparity algorithm, e.g. good on rocks, but poor on sand dunes. SFS does not require texture, but does require that surface reflectance assumptions model reality (e.g. Oren-Nayar etc.). SV good at modelling low-frequency scene structure, whereas SFS is good at modelling high-frequency scene structure. Solution: combine strengths of both methods. For an example see: Cryer, J.E, et. al., Integration of Shape From Shading and Stereo, Pattern Recognition, Vol. 28, No. 7, , 1995.