Fast Colour2Grey Ali Alsam and Mark S. Drew The Scientific Department School of Computing Science The National Gallery London Simon Fraser University

Slides:



Advertisements
Similar presentations
Colour From Grey by Optimized Colour Ordering Arash VahdatMark S. Drew School of Computing Science Simon Fraser University.
Advertisements

Scale & Affine Invariant Interest Point Detectors Mikolajczyk & Schmid presented by Dustin Lennon.
Principal Component Analysis Based on L1-Norm Maximization Nojun Kwak IEEE Transactions on Pattern Analysis and Machine Intelligence, 2008.
Illumination Estimation via Thin Plate Spline Weihua Xiong ( OmniVision Technology,USA ) Lilong Shi, Brian Funt ( Simon Fraser University, Canada) ( Simon.
Color Imaging Analysis of Spatio-chromatic Decorrelation for Colour Image Reconstruction Mark S. Drew and Steven Bergner
A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,
Transforming images to images
Computer vision: models, learning and inference Chapter 13 Image preprocessing and feature extraction.
Online Social Networks and Media. Graph partitioning The general problem – Input: a graph G=(V,E) edge (u,v) denotes similarity between u and v weighted.
Contrast Preserving Decolorization Cewu Lu, Li Xu, Jiaya Jia, The Chinese University of Hong Kong.
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
Color2Gray: Salience-Preserving Color Removal
Color2Gray: Salience-Preserving Color Removal Amy Gooch Sven Olsen Jack Tumblin Bruce Gooch Northwestern University.
1 Practical Scene Illuminant Estimation via Flash/No-Flash Pairs Cheng Lu and Mark S. Drew Simon Fraser University {clu,
Visual Recognition Tutorial
ECCV 2002 Removing Shadows From Images G. D. Finlayson 1, S.D. Hordley 1 & M.S. Drew 2 1 School of Information Systems, University of East Anglia, UK 2.
1cs542g-term High Dimensional Data  So far we’ve considered scalar data values f i (or interpolated/approximated each component of vector values.
ICCV 2003 Colour Workshop 1 Recovery of Chromaticity Image Free from Shadows via Illumination Invariance Mark S. Drew 1, Graham D. Finlayson 2, & Steven.
1 Automatic Compensation for Camera Settings for Images Taken under Different Illuminants Cheng Lu and Mark S. Drew Simon Fraser University {clu,
School of Computing Science Simon Fraser University
School of Computer Science Simon Fraser University November 2009 Sharpening from Shadows: Sensor Transforms for Removing Shadows using a Single Image Mark.
Sensor Transforms to Improve Metamerism-Based Watermarking Mark S. Drew School of Computing Science Simon Fraser University Raja Bala Xerox.
Principal Component Analysis
Function Optimization Newton’s Method. Conjugate Gradients
Motion Analysis (contd.) Slides are from RPI Registration Class.
Apparent Greyscale: A Simple and Fast Conversion to Perceptually Accurate Images and Video Kaleigh SmithPierre-Edouard Landes Joelle Thollot Karol Myszkowski.
Constrained Optimization
Design Optimization School of Engineering University of Bradford 1 Formulation of a design improvement problem as a formal mathematical optimization problem.
A Theory of Locally Low Dimensional Light Transport Dhruv Mahajan (Columbia University) Ira Kemelmacher-Shlizerman (Weizmann Institute) Ravi Ramamoorthi.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Introduction of the intrinsic image. Intrinsic Images The method of Finlayson & Hordley ( 2001 ) Two assumptions 1. the camera ’ s sensors are sufficiently.
Lilong Shi, Brian Funt, and Ghassan Hamarneh School of Computing Science, Simon Fraser University.
Colour Image Compression by Grey to Colour Conversion Mark S. Drew 1, Graham D. Finlayson 2, and Abhilash Jindal 3 1 Simon Fraser University 2 University.
Color Transfer in Correlated Color Space Xuezhong Xiao, Computer Science & Engineering Department, Shanghai Jiao Tong University Lizhuang Ma., Computer.
Normalised Least Mean-Square Adaptive Filtering
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Multimodal Interaction Dr. Mike Spann
Computer Science 631 Lecture 7: Colorspace, local operations
November 2012 The Role of Bright Pixels in Illumination Estimation Hamid Reza Vaezi Joze Mark S. Drew Graham D. Finlayson Petra Aurora Troncoso Rey School.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
G52IIP, School of Computer Science, University of Nottingham 1 G52IIP Summary Topic 1 Overview of the course Related topics Image processing Computer.
Tony Jebara, Columbia University Advanced Machine Learning & Perception Instructor: Tony Jebara.
Computer Vision Lecture #10 Hossam Abdelmunim 1 & Aly A. Farag 2 1 Computer & Systems Engineering Department, Ain Shams University, Cairo, Egypt 2 Electerical.
23 November Md. Tanvir Al Amin (Presenter) Anupam Bhattacharjee Department of Computer Science and Engineering,
G52IIP, School of Computer Science, University of Nottingham 1 G52IIP 2011 Summary Topic 1 Overview of the course Related topics Image processing Computer.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Image Transforms Transforming images to images. Classification of Image Transforms Point transforms –modify individual pixels –modify pixels’ locations.
Gaussian Mixture Models and Expectation-Maximization Algorithm.
Lightness filtering in color images with respect to the gamut School of Electrical Engineering and Computer Science Kyungpook National Univ. Fourteenth.
Chapter 2-OPTIMIZATION G.Anuradha. Contents Derivative-based Optimization –Descent Methods –The Method of Steepest Descent –Classical Newton’s Method.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Colorization is a user-assisted color manipulation mechanism for changing grayscale images into colored ones. Surprisingly, only a fairly sparse set of.
The Chinese University of Hong Kong
Amir Yavariabdi Introduction to the Calculus of Variations and Optical Flow.
Image Enhancement Band Ratio Linear Contrast Enhancement
CSE 554 Lecture 8: Alignment
REMOTE SENSING Digital Image Processing Radiometric Enhancement Geometric Enhancement Reference: Chapters 4 and 5, Remote Sensing Digital Image Analysis.
Gradient Domain High Dynamic Range Compression
The Chinese University of Hong Kong
Mingjing Zhang and Mark S. Drew
Put the theory into practice. Use the Colour Conversion Matrix of
Gradient Domain High Dynamic Range Compression
Gradient Domain Salience-preserving Color-to-gray Conversion
Put the theory into practice. Use the Colour Conversion Matrix of
Intensity Transformation
Put the theory into practice. Use the Colour Conversion Matrix of
Specularity, the Zeta-image, and Information-Theoretic Illuminant
Presentation transcript:

Fast Colour2Grey Ali Alsam and Mark S. Drew The Scientific Department School of Computing Science The National Gallery London Simon Fraser University

2 What’s the colour2grey problem? A black and white image has one channel. Ok, so make from RGB: use some form of Luminance – e.g., L*, Y(IQ), Y(UV), Y(CbCr),… or use PCA to find main direction What about a multi-spectral satellite image: 200 channels? Well, start with RGB colour images – how about averaging, say:

3 Oops – equi-luminous images: Very common situation, from graphics, so need more sophistication.

4 The problem geometrically: say in L*a*b*: Obviously, very different colours project to identical grey values.

5 Many approaches: [Bala & Eschbach, CIC2004] -- a component related to edges of the chromatic 2-vector is added to the brightness: spatially adaptive. [Gooch et al., SIGGRAPH05] – Color2Gray: iterative optimization (with multiple local minima!) to map colours to grey maintaining chromatic plus luminance difference as well as possible. [Grundland & Dodgson, Patt.Rec. 2007] – a single achromatic channel to optimize chromatic contrast: a combination of luminance and a global “predominant” chromatic change coordinate  must set several parameters, need user input. E.g.,

6 Color2Gray is likely the most well-known. Again, needs several parameters to be set by the user: -- so-called “aesthetic decisions”: choose a colour direction for “cooler” to “hotter” colours choose a window size for the optimization choose a clamping value to clip the effect of a*,b* on L* Algorithm is very slow (unconstrained optimization over thousands of variables)… Also,

Parameters make trouble: This paper Input Gooch Lum. Uh-oh! For this image (© Jay Neitz) only colorblind people should see the “45”!

8 Another example: Lum. This paper Gooch

9 We could of course improve the Gooch et al. output by fixing the parameters manually… [and, some aspects of these algorithms are indeed compelling and could be added to the method presented here!] But, can we devise a parameter-free method? (and also, let’s not forget higher-D colour than RGB) Basic tenet of such algorithms is that we wish to map colour contrast into greyscale contrast. But what is contrast ? --

10 [Socolinsky & Wolff, IEEE Trans. Image Proc., 2002] – use math definition of what is gradient of an n-dimensional image: the colour-channel gradient 2-vectors ▽ R, ▽ G, ▽ B, combine to induce a metric for the underlying geometry. The resulting greyscale gradient is in the direction of maximal change. Contrast: Details: [Di Zenzo, 1986]: Define a 2x2 structure tensor (first fundamental form, in math) --- main eigenvector points in the direction of maximal rate of change.

11 What does this actually look like: * ▽ g based on strong mathematical guarantee on results *

12 Details: In the case of a 3-band color image   = {R, G, B}, we consider the 2x3 array of color-channel gradient 2-vectors ▽  = { ▽ R, ▽ G, ▽ B}. Now form the  2x2 array Structure Tensor Z: 200 Let’s not forget satellite images… 200

Back to RGB: Z is the matrix of outer products of the 2D color-channel gradient components: (2x3) * (3x2) Z is real symmetric, so its eigenvectors form an orthogonal matrix V, The (normalized) eigenvectors of Z point in the direction of minimum- and maximum-contrast, for an underlying grayscale image with metric induced by the structure tensor.

14  Colour to Grey-Gradient: Let V={u, v} with 2-vectors u  v. Then the maximum-eigenvalue direction v is associated with maximum contrast in the grey image, with norm  Grey-Gradient to Grey : Re-integrating gray-gradient -- take another derivative and solve Poisson’s equation:

15 Done ? Problem: eigenvectors are defined only up to sign: ± If we get sign wrong, we have integrability error:

If we make a ± mistake, leads to bends, folds, halos! Wolff solution: use sign of gradient of Luminance. Problem: what if image is  iso-luminant (common issue).

If we make a ± mistake, leads to bends, folds, halos! Problem: Iso-luminant: Wolff RGB This paper

18 Our solution: use max’s of ▽ R, ▽ G, ▽ B, in each compass direction: No need to consider ± signs!

19 Learn the weights  ={ , , ,  } by optimizing closeness of colour Z to resulting grey Z: …

20 Median weights  ={ 0.530, 0.430, 0.537, }; Can we make faster? Use Frankot-Chellappa algorithm in Fourier space to solve for grey g from gradient ▽ g: Takes a 2 nd derivative, by multiplying by the transform of the derivative operator in the frequency domain, and solves the resulting Poisson equation by going back to the spatial domain. Uses  ={1,0,1,0}. Can use FFTW – fast! and then solving for g:

21 Results: Input Lum.Fast Colour2Grey

22 …Results Input Lum. This paper

23 …Results Input Lum. This paper

24 …Results Input Lum. This paper Lum.

25 …Results InputLum. WolffThis paper

26 Thanks! To Natural Sciences and Engineering Research Council of Canada