Lecture 16: A Camera s Image Processing Pipeline Part 1. Kayvon Fatahalian CMU 15-869: Graphics and Imaging Architectures (Fall 2011)

Similar documents
Choosing a digital camera for your microscope John C. Russ, Materials Science and Engineering Dept., North Carolina State Univ.

EVIDENCE PHOTOGRAPHY TEST SPECIFICATIONS MODULE 1: CAMERA SYSTEMS & LIGHT THEORY (37)

Using visible SNR (vsnr) to compare image quality of pixel binning and digital resizing

WHITE PAPER. Are More Pixels Better? Resolution Does it Really Matter?

product overview pco.edge family the most versatile scmos camera portfolio on the market pioneer in scmos image sensor technology

White paper. CCD and CMOS sensor technology Technical white paper

Digital Image Requirements for New Online US Visa Application

CMOS Image Sensor Noise Reduction Method for Image Signal Processor in Digital Cameras and Camera Phones

CCD and CMOS Image Sensor Technologies. Image Sensors

Characterizing Digital Cameras with the Photon Transfer Curve

Digital Image Fundamentals. Selim Aksoy Department of Computer Engineering Bilkent University

Video Camera Image Quality in Physical Electronic Security Systems

Introduction to CCDs and CCD Data Calibration

Grasshopper3 U3. Point Grey Research Inc Riverside Way Richmond, BC Canada V6W 1K7 T (604)

The Digital Dog. Exposing for raw (original published in Digital Photo Pro) Exposing for Raw

Lecture 12: Cameras and Geometry. CAP 5415 Fall 2010

Overview. Raster Graphics and Color. Overview. Display Hardware. Liquid Crystal Display (LCD) Cathode Ray Tube (CRT)

NEW 35MM CMOS IMAGE SENSOR FOR DIGITAL CINE MOTION IMAGING

White Paper. "See" what is important

Understanding Line Scan Camera Applications

High Quality Image Deblurring Panchromatic Pixels

Calibration Best Practices

Understanding HD: Frame Rates, Color & Compression

1. Introduction to image processing

A Proposal for OpenEXR Color Management

Applications of algorithms for image processing using programmable logic

How an electronic shutter works in a CMOS camera. First, let s review how shutters work in film cameras.

Investigation of Color Aliasing of High Spatial Frequencies and Edges for Bayer-Pattern Sensors and Foveon X3 Direct Image Sensors

WHITE PAPER. Methods for Measuring Flat Panel Display Defects and Mura as Correlated to Human Visual Perception

Aperture, Shutter speed and iso

High-resolution Imaging System for Omnidirectional Illuminant Estimation

Outline. Quantizing Intensities. Achromatic Light. Optical Illusion. Quantizing Intensities. CS 430/585 Computer Graphics I

OmniBSI TM Technology Backgrounder. Embargoed News: June 22, OmniVision Technologies, Inc.

E70 Rear-view Camera (RFK)

Lesson 10:DESIGN PROCESS EXAMPLES Automatic Chocolate vending machine, smart card and digital camera

ZEISS Axiocam 506 color Your Microscope Camera for Imaging of Large Sample Areas Fast, in True Color, and High Resolution

CHAPTER 3: DIGITAL IMAGING IN DIAGNOSTIC RADIOLOGY. 3.1 Basic Concepts of Digital Imaging

MassArt Studio Foundation: Visual Language Digital Media Cookbook, Fall 2013

Personal Identity Verification (PIV) IMAGE QUALITY SPECIFICATIONS FOR SINGLE FINGER CAPTURE DEVICES

pco.edge 4.2 LT 0.8 electrons 2048 x 2048 pixel 40 fps :1 > 70 % pco. low noise high resolution high speed high dynamic range

How To Use An Edge 3.1 Scientific Cmmos Camera

SENSITOMETRIC CHARACTERISTICS OF THE EOS C300 DIGITAL CINE CAMERA

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

MEDIUM FORMAT CAMERA ADVANTAGES

Introduction to Digital Resolution

Digital Camera Imaging Evaluation

Scanners and How to Use Them

Understanding Megapixel Camera Technology for Network Video Surveillance Systems. Glenn Adair

Optimal Vision Using Cameras for Intelligent Transportation Systems

4K 30, 25, 24 Ultra Wide 3840x Ultra Wide 3840x , 25 Ultra Wide 2704x K 4:3 30, 25 Ultra Wide 2704x2028

Computer Vision. Image acquisition. 25 August Copyright by NHL Hogeschool and Van de Loosdrecht Machine Vision BV All rights reserved

High Definition Imaging

A System for Capturing High Resolution Images

Visual perception basics. Image aquisition system. P. Strumiłło

ING LA PALMA TECHNICAL NOTE No Investigation of Low Fringing Detectors on the ISIS Spectrograph.

1 Laboratory #5: Grating Spectrometer

CONDENSED POWER COMPARISON SHEET

The Scientific Data Mining Process

EOS 450D: get ready to play

Ultra-High Resolution Digital Mosaics

DIGITAL PHOTOGRAPHY ANALYSIS: ANALYTICAL FRAMEWORK FOR MEASURING THE EFFECTS OF SATURATION ON PHOTO RESPONSE NON- UNIFORMITY KRIS HENRY

Resolution for Color photography

Digital image processing

Technical Paper DISPLAY PROFILING SOLUTIONS

7 MEGAPIXEL 180 DEGREE IP VIDEO CAMERA

Basler. Line Scan Cameras

Milbeaut ISP for Digital Cameras

ACTION AND PEOPLE PHOTOGRAPHY

4K End-to-End. Hugo GAGGIONI. Yasuhiko MIKAMI. Senior Manager Product Planning B2B Solution Business Group

White paper. In the best of light The challenges of minimum illumination

CMOS OV7660 Camera Module 1/5-Inch 0.3-Megapixel Module Datasheet

The Concept(s) of Mosaic Image Processing. by Fabian Neyer

Compensation Basics - Bagwell. Compensation Basics. C. Bruce Bagwell MD, Ph.D. Verity Software House, Inc.

Chapter 2. Point transformation. Look up Table (LUT) Fundamentals of Image processing

COMMERCIAL PHOTOGRAPHY Basic Digital Photography

Filters for Digital Photography

TVL - The True Measurement of Video Quality

Rodenstock Photo Optics

Getting Started emacs.cshrc & :+/usr/local/classes/astr1030/astron/ source.cshrc cd /usr/local/classes/astr1030 idl .compile ccdlab2 ccdlab2 exit

Graphical displays are generally of two types: vector displays and raster displays. Vector displays

Computer Graphics Hardware An Overview

How Landsat Images are Made

ADVANCED THEORIES FOR CG LIGHTING

Correcting the Lateral Response Artifact in Radiochromic Film Images from Flatbed Scanners

The world s fastest D-SLR remastered

Raw. Workflow CALUMET PHOTOGRAPHIC

F65. True 4K and beyond. CAMERA 1. As of August F65

Comparing Digital and Analogue X-ray Inspection for BGA, Flip Chip and CSP Analysis

Digital exposure-based workflow Digital Imaging II classes Columbia College Chicago Photography Department Revised

HP SmartStream Photo Enhancement Server. Fast, automated image enhancement for HP Indigo digital press users

HSI BASED COLOUR IMAGE EQUALIZATION USING ITERATIVE n th ROOT AND n th POWER

Processing the Image or Can you Believe what you see? Light and Color for Nonscientists PHYS 1230

Chromatic Improvement of Backgrounds Images Captured with Environmental Pollution Using Retinex Model

PDF Created with deskpdf PDF Writer - Trial ::

Automatic and Objective Measurement of Residual Stress and Cord in Glass

Computer Vision. Color image processing. 25 August 2014

Implementation of Canny Edge Detector of color images on CELL/B.E. Architecture.

Transcription:

Lecture 16: A Camera s Image Processing Pipeline Part 1 Kayvon Fatahalian CMU 15-869: Graphics and Imaging Architectures (Fall 2011)

Today (actually all week) Operations that take photons to an image Processing systems used to efficiently implement these operations RAW bits Image Processing Canon 14 MP CMOS Sensor (14 bits per pixel) Final Image Representation (e.g., JPG file)

Generic camera: system overview Image Processing ASIC Sensor RAW bits Application Processor (ARM) RAM Screen Display Processing

The Sensor

CMOS sensor Analog-to-Digital Active pixel sensor (2D array of photo-diodes) Pixel Analog Signal Processing Optically black region Exposed region Digital Logic (control/processing) Output bus

Bayer filter mosaic Color filter array placed over sensor Result: each pixel measures incident red, green, or blue light 50% of pixels are green pixels - Human visual perception most sensitive to green light (in normal light levels) Image credit: Wikipedia Traditional Bayer mosaic (other filter patterns exist: e.g., Sony s RGBE) Human eye: cone spectral response

CMOS sensor pixel Color filter attenuates light Fill factor: fraction of surface area used for light gathering Microlens (a.k.a. lenslet) steers light toward photo-sensitive region (increases light-gathering capability) Quantum efficiency of photodiode in typical digital camera ~ 50% Illustration credit: Molecular Expressions (http://micro.magnet.fsu.edu/primer/digitalimaging/cmosimagesensors.html)

Full-well capacity Pixel saturates when capacity is exceeded Oversaturated pixels (note surrounding bloom ) Graph credit: clarkvision.com

Reading sensed signal Row select Register Row buffer (shift register) Amplify ADC Bits

Capturing an image 1. Clear sensor pixels 2. Open camera mechanical shutter (exposure begins) 3. Optional: fire flash 4. Close camera mechanical shutter (exposure ends) 5. Read results - For each row: - Read pixel for all columns in parallel - Pass data stream through amplifier and DAC

Aside: when to fire flash? First curtain sync Image credit: Michael R. Beeman Second curtain sync

Electronic rolling shutter Many cameras do not have a mechanical shutter (e.g., cell-phone cameras) Photo of red square, moving to right 1. Clear sensor pixels for row i (exposure begins) Exposure 2. Clear sensor pixels for row i+1 (exposure begins)... 3. Read row i (exposure ends) 4. Read row i+1 (exposure ends) Each image row exposed for the same amount of time (same exposure) Each image row exposed over different interval of time (time offset determined by row read speed)

Rolling shutter effects Demo: everyone take out camera phones Image credit: Point Grey Research Image credit: Wikipedia

Measurement noise Photon shot noise: - Photon arrival rates feature poisson distribution - Standard deviation = sqrt(n) Dark shot noise: - Due to leakage current Read noise - e.g., due to amplification Non-uniformity of pixel sensitivity Subtract dark image Flat field image Illustration credit: Molecular Expressions (http://micro.magnet.fsu.edu/primer/digitalimaging/cmosimagesensors.html)

Read noise Read noise largely independent of pixel size Large pixels, bright scene: noise determined largely by photon shot noise Image credit: clarkvision.com

Noise Black image examples: Nikon D7000, High ISO 1/60 sec exposure 1 sec exposure

Maximize light gathering capability Increase signal-to-noise ratio - Dynamic range determined by noise floor and full-well capacity Big pixels - Nikon D3: 8.5 um - iphone 4: 1.75 um Sensitive pixels - Good materials - High fill factor

Backside illumination sensor Traditional CMOS: electronics block light Idea: move electronics underneath light gathering region - Increases fill factor - Implication 1: better light sensitivity at fixed sensor size - Implication 2: equal light sensitivity at smaller sensor size (shrink sensor) Illustration credit: Sony

Vignetting Image of white wall:

Types of vignetting Optical vignetting: less light reaches edges of sensor due to physical obstruction in lens Pixel vignetting: light reaching pixel at oblique angle less likely to hit photosensitive region than light incident from straight above (e.g., obscured by electronics) - Microlens reduces pixel vignetting Image credit: Mark Butterworth

More challenges Chromatic shifts over sensor - Pixel light sensitivity changes over sensor due to interaction with microlens (index of refraction depends on wavelength) Dead pixels Lens distortion Pincushion distortion Captured Image Image credit: PCWorld Corrected Image

Theme so far: bits off the sensor do not form a displayable image RAW image processing

Example image processing pipeline Adopting terminology from Texas Instruments OMAP Image Signal Processor pipeline Assume: receiving 12 bits/pixel Bayer mosaiced data from sensor

Optical clamp: remove sensor offset bias output_pixel = input_pixel - [average of pixels from optically black region] Remove bias due to sensor black level (from nearby sensor pixels at time of shot)

Step 2: correct for defect pixels Store LUT with known defect pixels Example correction methods - Replace defect with neighbor - Replace defect with average of neighbors - Correct defect by subtracting known bias for the defect output_pixel = (isdefect(current_pixel_xy))? average(previous_input_pixel, next_input_pixel) : input_pixel;

Lens shading compensation Correct for vignetting Use 2D buffer stored in memory - Lower res buffer, upsampled on-the-fly offset = upsample_compensation_offset_buffer(current_pixel_xy); gain = upsample_compensation_gain_buffer(current_pixel_xy); output_pixel = gain + offset * input_pixel;

Optional dark frame subtract Similar computation to lens shading compensation output_pixel = input_pixel - dark_frame[current_pixel_xy];

White balance Adjust relative intensity of rgb values (usually so neutral tones appear neutral) output_pixel = white_balance_coeff * input_pixel note: white_balance_coeff depends on whether pixel is red, green, or blue pixel Setting white balance coefficients: - Example naive auto-white balance algorithms - Gray world assumption: make average of all pixels gray - Find brightest region of image, make it white Modern cameras have sophisticated, heuristic white-balance algorithms (proprietary) Image credit: basedigitalphotography.com

Demosiac Produce a RGB image from mosaiced input Basic algorithm: linear interpolation of mosaiced values More advanced algorithms: attempt to preserve edges Image credit: Mark Levoy

Denoise Median Filter Bilateral filter: remove noise, preserve edges

Color conversion Change of basis 3 x 3 matrix multiplication output_rgb_pixel = CONVERSION_MATRIX * input_rgb_pixel

Simplified image processing pipeline Correct for sensor bias (using measurements of optically black pixels) Correct pixel defects Vignetting compensation Dark frame subtract (optional) White balance Demosaic Denoise / sharpen, etc. Color Space Conversion Gamma Correction Color Space Conversion (Y CbCr) 4:4:4 to 4:2:2 chroma subsampling JPEG compress (lossy) lossless compression RAW file Next time JPEG file