Retinex. February 18, Dr. Praveen Sankaran (Department of ECE NIT Calicut DIP)

Similar documents
Essence of Image and Video

!"#"$%& Some slides taken shamelessly from Prof. Yao Wang s lecture slides

(a) (b) Figure 1.1: Screen photographs illustrating the specic form of noise sometimes encountered on television. The left hand image (a) shows the no

Musical Signal Processing with LabVIEW Introduction to Audio and Musical Signals. By: Ed Doering

Essence of Image and Video

A Color Scientist Looks at Video

The Fox News Eect:Media Bias and Voting S. DellaVigna and E. Kaplan (2007)

Chapter 7. Scanner Controls

Fundamentals of Multimedia. Lecture 3 Color in Image & Video

Chapter 4 Color in Image and Video. 4.1 Color Science 4.2 Color Models in Images 4.3 Color Models in Video

Impact of scan conversion methods on the performance of scalable. video coding. E. Dubois, N. Baaziz and M. Matta. INRS-Telecommunications

A CCD/CMOS Focal-Plane Array Edge. Detection Processor Implementing the. Lisa Dron. Abstract

Understanding Human Color Vision

DCI Requirements Image - Dynamics


Technical Specifications

Communication Theory and Engineering

COLOR AND COLOR SPACES ABSTRACT

Lecture 2 Video Formation and Representation

LCD and Plasma display technologies are promising solutions for large-format

N T I. Introduction. II. Proposed Adaptive CTI Algorithm. III. Experimental Results. IV. Conclusion. Seo Jeong-Hoon

Region Adaptive Unsharp Masking based DCT Interpolation for Efficient Video Intra Frame Up-sampling

R&D White Paper WHP 085. The Rel : a perception-based measure of resolution. Research & Development BRITISH BROADCASTING CORPORATION.

Multimedia Systems Video I (Basics of Analog and Digital Video) Mahdi Amiri April 2011 Sharif University of Technology

MPEG + Compression of Moving Pictures for Digital Cinema Using the MPEG-2 Toolkit. A Digital Cinema Accelerator

Images and Formats. Dave Bancroft. Philips Broadcast Film Imaging

Transport Stream. 1 packet delay No delay. PCR-unaware scheme. AAL5 SDUs PCR PCR. PCR-aware scheme PCR PCR. Time

Processing. Electrical Engineering, Department. IIT Kanpur. NPTEL Online - IIT Kanpur

Color Spaces in Digital Video

Improving Color Text Sharpness in Images with Reduced Chromatic Bandwidth

Image and video encoding: A big picture. Predictive. Predictive Coding. Post- Processing (Post-filtering) Lossy. Pre-

Multimedia. Course Code (Fall 2017) Fundamental Concepts in Video

Video Demystified. A Handbook for the Digital Engineer. Fifth Edition. by Keith Jack

The Development of a Synthetic Colour Test Image for Subjective and Objective Quality Assessment of Digital Codecs

Inverse Filtering by Signal Reconstruction from Phase. Megan M. Fuller

ELEC 691X/498X Broadcast Signal Transmission Fall 2015

The Lecture Contains: Frequency Response of the Human Visual System: Temporal Vision: Consequences of persistence of vision: Objectives_template

ERROR CONCEALMENT TECHNIQUES IN H.264 VIDEO TRANSMISSION OVER WIRELESS NETWORKS

Linear Time Invariant (LTI) Systems

LOUDNESS EFFECT OF THE DIFFERENT TONES ON THE TIMBRE SUBJECTIVE PERCEPTION EXPERIMENT OF ERHU

Objective Video Quality Assessment of Direct Recording and Datavideo HDR-40 Recording System

AN ARTISTIC TECHNIQUE FOR AUDIO-TO-VIDEO TRANSLATION ON A MUSIC PERCEPTION STUDY

Analysis of Packet Loss for Compressed Video: Does Burst-Length Matter?

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Music Segmentation Using Markov Chain Methods

Information Transmission Chapter 3, image and video

Advanced Computer Networks

How to Match the Color Brightness of Automotive TFT-LCD Panels

Chapter 3 Fundamental Concepts in Video. 3.1 Types of Video Signals 3.2 Analog Video 3.3 Digital Video

Research Article. ISSN (Print) *Corresponding author Shireen Fathima

ECE3296 Digital Image and Video Processing Lab experiment 2 Digital Video Processing using MATLAB

Noise. CHEM 411L Instrumental Analysis Laboratory Revision 2.0

Relative frequency. I Frames P Frames B Frames No. of cells

TERMINOLOGY INDEX. DME Down Stream Keyer (DSK) Drop Shadow. A/B Roll Edit Animation Effects Anti-Alias Auto Transition

CM3106 Solutions. Do not turn this page over until instructed to do so by the Senior Invigilator.

Video Signals and Circuits Part 2

DSP Implementation of the Retinex Image Enhancement Algorithm

Ch. 1: Audio/Image/Video Fundamentals Multimedia Systems. School of Electrical Engineering and Computer Science Oregon State University

ECGR 6264 RF Design Midterm Spring 2005

Principles of Video Compression

Colorimetric and Resolution requirements of cameras

Is it 4K? Is it 4k? UHD-1 is 3840 x 2160 UHD-2 is 7680 x 4320 and is sometimes called 8k

Video Compression. Representations. Multimedia Systems and Applications. Analog Video Representations. Digitizing. Digital Video Block Structure

DELTA MODULATION AND DPCM CODING OF COLOR SIGNALS

Tech Paper. HMI Display Readability During Sinusoidal Vibration

OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

MSB LSB MSB LSB DC AC 1 DC AC 1 AC 63 AC 63 DC AC 1 AC 63

pdf Why CbCr?

Module 1: Digital Video Signal Processing Lecture 5: Color coordinates and chromonance subsampling. The Lecture Contains:

The Tone Height of Multiharmonic Sounds. Introduction

Technical report on validation of error models for n.

Improved High Dynamic Range Video Coding with a Nonlinearity based on Natural Image Statistics

Color Science Fundamentals in Motion Imaging

The Research of Controlling Loudness in the Timbre Subjective Perception Experiment of Sheng

ELEC 310 Digital Signal Processing

High Quality Digital Video Processing: Technology and Methods

Chapter 27. Inferences for Regression. Remembering Regression. An Example: Body Fat and Waist Size. Remembering Regression (cont.)

Implementation of an MPEG Codec on the Tilera TM 64 Processor

Lecture 1: Introduction & Image and Video Coding Techniques (I)

Software Analog Video Inputs

Steganographic Technique for Hiding Secret Audio in an Image

CMPT 365 Multimedia Systems. Mid-Term Review

PERCEPTUAL QUALITY OF H.264/AVC DEBLOCKING FILTER

Video compression principles. Color Space Conversion. Sub-sampling of Chrominance Information. Video: moving pictures and the terms frame and

Eddie Elliott MIT Media Laboratory Interactive Cinema Group March 23, 1992

Lecture 23: Digital Video. The Digital World of Multimedia Guest lecture: Jayson Bowen

Nearest-neighbor and Bilinear Resampling Factor Estimation to Detect Blockiness or Blurriness of an Image*

Intra-frame JPEG-2000 vs. Inter-frame Compression Comparison: The benefits and trade-offs for very high quality, high resolution sequences

Interface Practices Subcommittee SCTE STANDARD SCTE Measurement Procedure for Noise Power Ratio

Tunneling High-Resolution Color Content through 4:2:0 HEVC and AVC Video Coding Systems

EDDY CURRENT IMAGE PROCESSING FOR CRACK SIZE CHARACTERIZATION

The XYZ Colour Space. 26 January 2011 WHITE PAPER. IMAGE PROCESSING TECHNIQUES

REPORT DOCUMENTATION PAGE

Auto-Tune. Collection Editors: Navaneeth Ravindranath Tanner Songkakul Andrew Tam

arxiv: v2 [cs.mm] 17 Jan 2018

Experiments to Assess the Cost-Benefits of Test- Suite Reduction

m RSC Chromatographie Integration Methods Second Edition CHROMATOGRAPHY MONOGRAPHS Norman Dyson Dyson Instruments Ltd., UK

Study of White Gaussian Noise with Varying Signal to Noise Ratio in Speech Signal using Wavelet

Rotation p. 55 Scale p. 56 3D Transforms p. 56 Warping p. 58 Expression Language p. 58 Filtering Algorithms p. 60 Basic Image Compositing p.

Lab 5 Linear Predictive Coding

Transcription:

Retinex Dr. Praveen Sankaran Department of ECE NIT Calicut February 18, 2013 Winter 2013 February 18, 2013 1 / 23

Outline 1 Basic Model/ Homomorphic Filtering 2 Retinex Algorithm - Surround-Center Version Winter 2013 February 18, 2013 2 / 23

Basic Model/ Homomorphic Filtering Digital Image Acquisition Revisited Winter 2013 February 18, 2013 3 / 23

Basic Model/ Homomorphic Filtering Image Components At the scene side 1 Amount of source illumination incident on the scene. 2 Amount of illumination reected by the objects in the scene. f (x, y) = i (x, y)r (x, y) (1) Illumination and Reectance 0 < i (x, y) < (2) 0 < r (x, y) < 1 (3) r. Praveen Sankaran (Department of ECE NIT Calicut DIP) Winter 2013 February 18, 2013 4 / 23

Basic Model/ Homomorphic Filtering Signicance? Why are we doing this? Illumination component slow spatial variations. Reectance component abrupt variations, particularly at junctions of dissimilar objects. Association Low frequencies Illumination High frequencies Reectance Winter 2013 February 18, 2013 5 / 23

Basic Model/ Homomorphic Filtering Using Frequency Components? Can we use the frequency components as such? I[f [x, y]] I[i [x, y]]i[r [x, y]] (4) Note the square brackets to indicate operations are discrete. We cannot use frequency components and expect to separate luminance and reectance. Of use here is the log function, since this now enables us to separate out the two separate components in the frequency domain. z [x, y] = ln f [x, y] = ln i [x, y] + ln r [x, y] (5) I{z [x, y]} = I{ln f [x, y]} = I{ln i [x, y]} + I{ln r [x, y]} (6) Winter 2013 February 18, 2013 6 / 23

Basic Model/ Homomorphic Filtering Homomorphic Filtering Note: direct from the text, we are using digital images. Winter 2013 February 18, 2013 7 / 23

Basic Model/ Homomorphic Filtering Example [ H [u, v] = (γ H γ L ) 1 e c[d2 [u,v]/d 0] ] 2 + γ L (7) c controls slope of curve between γ H and γ L. γ H > 1 and γ L < 1 attenuate low frequencies (luminance), amplify high frequencies (reectance). Dynamic range compression what and why here? Contrast enhancement. Winter 2013 February 18, 2013 8 / 23

Basic Model/ Homomorphic Filtering What are we looking for? Simultaneously achieve: dynamic range compression, contrast enhancement and true color rendition (?). Retinex can help us achieve all these three properties simultaneously. Dynamic range compression Color independence from the spectral distribution of the scene illumination Color and lightness rendition. Winter 2013 February 18, 2013 9 / 23

Naming?, Color constancy? Aim Human Visual System(HVS) can perceive the correct color of the objects in varying illumination conditions. Similarly HVS can also adapt itself to dierent dynamic ranges and perceive all the details of the scene clearly. But digital cameras are limited by the dynamic range and also the color of the images captured depends on the illumination conditions. To enhance the quality of the recorded image as to how a human being would have perceived the scene. Retinex (Retina+Cortex) Winter 2013 February 18, 2013 10 / 23

Dynamic range compression and Color independence Familiar territory Dynamic range compression can be achieved by applying logarithmic transformations on the image. Color independence can be achieved by eliminating the luminance component in the image. Why? Remember from equation 5,z [x, y] = ln f [x, y] = ln i [x, y] + ln r [x, y]. We have then, ln r [x, y] = ln f [x, y] ln i [x, y] (8) So now what we have is a problem of nding I [.]. Winter 2013 February 18, 2013 11 / 23

Finding Luminance Again our background tells us we need to nd the slow varying (low frequency component). For this we apply a low pass lter to the input image. What this lter is has an eect on the output. (Again our background tells us why this is so). Land's proposal: Moore's proposal: H [s, t] = 1 s 2 + t 2 = 1 H [s, t] = e r /c r 2 (9) (10) Hurlbert's Proposal: H [s, t] = e r2 /c 2 (11) Winter 2013 February 18, 2013 12 / 23

Filter Illustration Figure: a. Hurlbert b. Land c. Moore Winter 2013 February 18, 2013 13 / 23

Inferences The inverse square rolls rapidly but at distant pixels it has higher response than the other two forms. Similarly at distant pixels exponential function has a higher response than Gaussian function. Gaussian function acts more locally, Exponential function is less local and the inverse square function is global in nature Winter 2013 February 18, 2013 14 / 23

Retinex on Color Image R i [x, y] = ln{f i [x, y]} ln {F i [x, y] H [s, t]} (12) where, F i [x, y] is the image distribution in the i th color spectral band, ` ' denotes the convolution operation, H [s, t] is the surround function and R i [x, y] is the associated retinex output. Winter 2013 February 18, 2013 15 / 23

Surround/ Variance constant - `c' Output varies with variation of this constant. Figure: Output for varying `c'. a. c=15 b. c=80 c. c=250

Dynamic range compression vs Improved rendition when the surround constant is varied from a small value to a large value, dynamic range compression is sacriced for improved rendition Compromise: middle of the range(50 < c < 100) represents a reasonable compromise, where shadows are fairly compensated and rendition achieves acceptable levels of image quality. Winter 2013 February 18, 2013 17 / 23

Multi Scale Retinex (MSR) we nd the retinex output according for various values of surround constants and add all the retinex outputs by giving them equal weight. MSR equation: R MSRi = N n=1 w n R ni (13) w n is an optional weight value you can use to weigh contribution from each `c'. N is the number of scales. Key dierence is for the lter: H n [.] = ke r2 /c 2 n (14) Winter 2013 February 18, 2013 18 / 23

Output Image Display Range Figure: Histogram of a single scale retinex enhanced image Winter 2013 February 18, 2013 19 / 23

Multi Scale Retinex with Color Restoration (MSRCR) grey- world assumption: reectance of the image in all the three color bands are same on an average. grey-world violation: greying out of the image, either globally or in specic regions. R MSRCRi [.] = G {C i [.] R MSRi + b} (15) Color restoration function: C i [.] = β ln {αf i [.]} β ln { N i=1 F i [.] } (16) β is a gain constant, α controls the strength of the non linearity, G and b are nal gain and oset values. Typical values: β = 46, α = 125, b = =30, G = 192. Winter 2013 February 18, 2013 20 / 23

Multi Scale Retinex with Color Restoration (MSRCR) grey- world assumption: reectance of the image in all the three color bands are same on an average. grey-world violation: greying out of the image, either globally or in specic regions. R MSRCRi [.] = G {C i [.] R MSRi + b} (15) Color restoration function: C i [.] = β ln {αf i [.]} β ln { N i=1 F i [.] } (16) β is a gain constant, α controls the strength of the non linearity, G and b are nal gain and oset values. Typical values: β = 46, α = 125, b = =30, G = 192. Winter 2013 February 18, 2013 20 / 23

Luma based MSR There are many color models apart from HSI which gives us a good separation of luma-chroma space. Some examples are YCbCr, YUV, YIQ, YPbPr, HSV. Again villain here: violation of the grey-world assumption even under MSRCR! New solution: Applying MSRCR algorithm on the luminance (luma) component of the image. Best: Outputs obtained after applying MSRCR on the luma components of YUV and Lab transforms. Time is reduced approximately to one-thirds of the time it took for the original MSRCR since here the RETINEX algorithm is applied only on the luma component. Winter 2013 February 18, 2013 21 / 23

Luma based MSR There are many color models apart from HSI which gives us a good separation of luma-chroma space. Some examples are YCbCr, YUV, YIQ, YPbPr, HSV. Again villain here: violation of the grey-world assumption even under MSRCR! New solution: Applying MSRCR algorithm on the luminance (luma) component of the image. Best: Outputs obtained after applying MSRCR on the luma components of YUV and Lab transforms. Time is reduced approximately to one-thirds of the time it took for the original MSRCR since here the RETINEX algorithm is applied only on the luma component. Winter 2013 February 18, 2013 21 / 23

Luma based MSR There are many color models apart from HSI which gives us a good separation of luma-chroma space. Some examples are YCbCr, YUV, YIQ, YPbPr, HSV. Again villain here: violation of the grey-world assumption even under MSRCR! New solution: Applying MSRCR algorithm on the luminance (luma) component of the image. Best: Outputs obtained after applying MSRCR on the luma components of YUV and Lab transforms. Time is reduced approximately to one-thirds of the time it took for the original MSRCR since here the RETINEX algorithm is applied only on the luma component. Winter 2013 February 18, 2013 21 / 23

Luma based MSR There are many color models apart from HSI which gives us a good separation of luma-chroma space. Some examples are YCbCr, YUV, YIQ, YPbPr, HSV. Again villain here: violation of the grey-world assumption even under MSRCR! New solution: Applying MSRCR algorithm on the luminance (luma) component of the image. Best: Outputs obtained after applying MSRCR on the luma components of YUV and Lab transforms. Time is reduced approximately to one-thirds of the time it took for the original MSRCR since here the RETINEX algorithm is applied only on the luma component. Winter 2013 February 18, 2013 21 / 23

Luma MSRCR Illustration

YUV Transformation Y.289.587.114 R U =.147.289.436 G (17) V.615.515.100 B R 1 0 1.14 Y G = 1.395.581 U (18) B 1 2.032 0 V Winter 2013 February 18, 2013 23 / 23