Colour space homography

Lead Research Organisation: University of East Anglia
Department Name: Computing Sciences

Abstract

For commercial 'imaging' products like the digital camera in your phone, engineers seek simple and elegant solutions to hard problems. You will have noticed that newer cameras take better pictures than older ones. This is in part due to ever advancing hardware: there are faster processors and more pixels. Yet, there has been some important problem solving insights that make it possible to solve problems that were hitherto intractable. A good example of this is the problem of colour casts (one of the foci of this proposal). When you take a picture with a camera the colours that are recorded are dependent on the colour of objects in the scene and (perhaps surprisingly) on the colour of the light. Physically, your white T-shirt is yellowish and bluish when viewed in direct sunlight or when you are in the shadows (because sunlight and shadows are respectively yellowish and bluish). We do not see the colour casts as our vision system factors out the colour of the light and, likewise, digital cameras process images to (much of the time) remove colour casts. But, if you compare the outputs of cameras today with those 15 years ago, the modern era cameras are much better at removing colour casts. Why? because of clever insights that helped engineers build systems which correctly infer the colour of the prevailing light.

This research project begins with a surprising new observation which we believe will help us improve still further imaging products such as colour cameras. We make, for the first time, a deep link between the colours recorded in image - typically three R,G and B numbers that measure the redness, greenness and blueness of a pixel - and the 3D locations of points in the world and how these points correspond to pixel locations in an image. Thinking about geometry, we are all aware that train tracks appear to converge in the distance even although we know they stay the same distance apart (intrinsically, we understand how the 3D world maps to 2D pictures). In this research we begin by showing that the relationship between the colours - same colourful object viewed under different viewing conditions - is exactly the same as the relationship that links different viewpoints - say of the front of a building - in geometry. Mathematically, this relationship is called an homography.

Importantly, now that we have linked the colours you see in the camera to how the 3D world maps to images we can use this observation - we can exploit lessons learnt in the geometric domain - to help us solve some colour imaging problems. First, by exploiting colour space homography, camera manufacturers (and enthusiasts) will be able to more accurately calibrate their cameras and this will further optimize image colour fidelity. Homographies also play an important role the colour cast removal problem and in this proposal we will develop a homography-based algorithm that will advance the state of the art. Outside of photography, we are interested in problems such as colour based medical diagnosis e.g. we will be aiming to improve the automatic identification of skin lesions. We propose that homographies are also the key to solving high level vision tasks including identifying, manipulating and removing shadows from images.

More novelly, we have found that answering the question "how do we find a coloured filter which, when place in front of a camera makes the camera measure light in a way that is similar to the human visual system' also involves solving for a homography. Homographies have a link to problems such as image fusion - fusing 100s of images into a single colour summary - which process images in the so-called derivative domain. Here images are transformed into an edge representation and then these edges are manipulated before an output is reintegrated. Homographies hold the promise of making the reintegration process faster and less prone to introducing artifacts (a well known problem of existing techniques).

Planned Impact

Conventional colour correction proceeds by taking an image of a reference target and then mapping the image colours to reference counterparts. We then apply the same correction to pictures of unknown objects. Unfortunately, this calibration method assumes light intensity is the same across the chart and this is rarely the case. Assuming uniformity of light intensity (when it is not present) can result in twice the correction error. Our research proposal starts with the discovery that finding the correct colour transform, in an intensity invariant way, involves solving for a homography. Moreover, relating colours across viewpoints with a homography is in direct analogy to geometric vision where a homography is the correct mathematical tool for relating planar point sets across images. Further, this proposal casts the problems of filter design, illuminant estimation, image retrieval and derivative domain processing in a homographic framework.

This project benefits from the close collaboration from two industry partners. Apple Inc have a particular interest in photographic applications and are interested in the potential of our research to help them attain improved colour fidelity and better illuminant estimation. They are also keenly interested in understanding which parts of images are lit by different lights. Spectral Edge Ltd, a UEA spin out in image fusion, has developed technology for fusing different images in the derivative domain and so are interested in how homographies help in derivative domain processing. One aspect of Spectral Edge's work has already been approximated as an optical process (light passing through a specially designed optical filter). So, there is a synergy with our filter design homography research.

Of course, through our extensive dissemination plans we also plan to publish all our algorithms and data. So, there is an opportunity for wider industry to make use of our research. Detailed in our scientific case is an application to improving the largely colour based automated diagnoses of skin lesions. More widely, colour space homography has the potential to impact of big image data (search) and photo processing amongst other applications.

The research team has a track record of working with industry on colour standards including ISO 17321 (camera characterization). The colour homography work may have application in photography ISO/TC42 and machine vision European Machine Vision Association EMVA 288. The former technical committee will be approached via the Society of Imaging Science and Technology (through Finlayson who is a fellow). Indirectly, through the British Machine Vision Association (Fisher is a fellow) we have links to the EMVA and plan to communicate our work to that organization.

The project provides unrivaled training opportunities for the Research Co-investigator Dr Bastiaan Boom and also the PhD students to be trained along side this grant. Dr Boom will gain expertise in the management side of research and also in supervising research students (both activity supported by targeted courses from UEA's Centre for Staff Education and Development). Dr Boom and the students will have the chance to work with industrial partners at the partner sites. The whole team will have the opportunity to see their research transferred and prototyped in an industrial context.

Regarding outreach to a wider community, this research project begins coincidently at the same time as the EPSRC Network on Biological and Machine Visiion begins its work. Not only is the topic of this network intimately related to the proposed research, one of the founding aims of the network is public engagement. Finlayson is the leader of the 'Appearance: Shadow removal and lightness constancy' theme (which relates strongly to our research proposal). Finlayson will work with the network in delivering workshops and will liaise with interested societies including RPS, IET and IS&T to ensure the widest participation

Publications

10 25 50
publication icon
Afifi M (2019) As-projective-as-possible bias correction for illumination estimation algorithms. in Journal of the Optical Society of America. A, Optics, image science, and vision

publication icon
Finlayson G (2018) Recovering a Color Image from its Texture in Color and Imaging Conference

publication icon
Finlayson G (2018) Using a Simple Colour Pre-filter to Make Cameras More Colorimetric in Color and Imaging Conference

publication icon
Finlayson G (2017) A Curious Problem with Using the Colour Checker Dataset for Illuminant Estimation in Society for Imaging Science and Technology

publication icon
Finlayson G (2019) Color Homography: Theory and Applications. in IEEE transactions on pattern analysis and machine intelligence

publication icon
Finlayson GD (2016) Color Homography Color Correction

publication icon
Finlayson GD (2016) Color Homography Color Correction

publication icon
Finlayson GD (2017) The Reproduction Angular Error for Evaluating the Performance of Illuminant Estimation Algorithms. in IEEE transactions on pattern analysis and machine intelligence

 
Description Homographies are the apposite tool for many geometric manipulations for an image. When yuo take two pictures from different view points then the same 'contact' can appear to have different shapes (we are aware of how perspective changes our view of the world). We have now established homographies are at the heart of how the colours (RGBs) in images should be manipulated. Applications include colour calibration (getting the colours on your smartphone to look the best they can), colour transfer (instagram type looks) and recognition (for finding images with similar colours)
Exploitation Route Linear transforms are at the heart of many image processing pipelines (from white balancing, to colour correction to image regrading). Colour Homography theory speaks to 'how to find' the best transform. Its hard to tell whether or not homography theory *will* be used by camera/phone companies (since they are closed from an IP point of view). But, homography theory has already elicited a fair degree of interest resulting in two keynotes and one industrial visit. All the work has been presented within Apple (a partner on this project)
Sectors Digital/Communication/Information Technologies (including Software)

URL http://www2.cmp.uea.ac.uk/~ybb15eau/
 
Description The Colour Homography idea has been used for evaluation purposes within Spectral Edge Ltd (a spin out from the UEA Colour Lab). Ft Gong visited and presented this work. He was also offered consultancy (on a short time window). Which, in the event he was unable to take up. As noted elsewhere Spectral Edge was recently acquired and this closes the future consultancy route. As yet unpublished, we have shown that filter design (placing a coloured filter with a specially designed transmission) in fron of a camera) can make the camera's colour measurement much more colourimetric i.e. they can measure physical units relevant to how we see. Moreover, the design process, surprisingly, is a homography problem. We have file an as yet unpublished patent (System and Method for Generating a Colour Filter for a Vision System, Finlayson and Zhu). And, we are in collaboration with Image Engineering, Germany. IE have already helped us to spectrally measure a camera as a first step in trying to make filter designs that are manufactureable (the filters are made for each camera individually). There is also the possiblitly of collaborating on commercial terms. We are now continuing the filter design research as part of the Future Colour Imaging project. And, we are collaborating with colleagues in Zheijang University
First Year Of Impact 2018
Sector Digital/Communication/Information Technologies (including Software)
Impact Types Economic

 
Description Future Colour Imaging EP/S028730/1 (grant announced but not yet listed)
Amount £1,000,000 (GBP)
Funding ID EP/S028730/1 
Organisation Engineering and Physical Sciences Research Council (EPSRC) 
Sector Public
Country United Kingdom
Start 10/2019 
End 09/2024
 
Title color correction dataset 
Description Data from several pictures of reference colour chart viewed in different conditions. Used for colour correction evaluation research, 
Type Of Material Database/Collection of data 
Year Produced 2016 
Provided To Others? Yes  
Impact This data has been used in several followup studies (currently ~10 citations on google scholar) 
URL http://www2.cmp.uea.ac.uk/~ybb15eau/projects/color_homography/Data.zip
 
Description Filter Design (manufacture) 
Organisation Image Engineering
Country Germany 
Sector Private 
PI Contribution It turns out filter design can be expressed as a homography problem. With Image Engineering we are looking at the feasibility of manufacturing filters that we have designed. As a first step toward this, Image Engineering spectrally calibrated one of our cameras. If we can manufactue the filters we design (perhaps in collaboration with IE or one of their partners) they have already expressed an interest in commercial collaboration with the university.
Collaborator Contribution The spectrally measured one of our cameras at no cost to ourselves (this is generally a commercial service offered to customers)
Impact The collaboration involved us specifying filters that Image Engineering thought they had a contact who could deign them. Ultimately, IE's contact could not mnake filters according to our specification.
Start Year 2019