WO2006018658A2 - Image processing method and computer software for image processing - Google Patents

Image processing method and computer software for image processing Download PDF

Info

Publication number
WO2006018658A2
WO2006018658A2 PCT/GB2005/003261 GB2005003261W WO2006018658A2 WO 2006018658 A2 WO2006018658 A2 WO 2006018658A2 GB 2005003261 W GB2005003261 W GB 2005003261W WO 2006018658 A2 WO2006018658 A2 WO 2006018658A2
Authority
WO
WIPO (PCT)
Prior art keywords
image
area
intensity
amplification coefficient
amplification
Prior art date
Application number
PCT/GB2005/003261
Other languages
French (fr)
Other versions
WO2006018658A3 (en
Inventor
Vyacheslav Chesnokov
Original Assignee
Apical Limited
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apical Limited filed Critical Apical Limited
Priority to EP05773169.7A priority Critical patent/EP1789921B1/en
Priority to JP2007526574A priority patent/JP2008511048A/en
Priority to US11/660,485 priority patent/US8160387B2/en
Publication of WO2006018658A2 publication Critical patent/WO2006018658A2/en
Publication of WO2006018658A3 publication Critical patent/WO2006018658A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration by the use of local operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration by the use of histogram techniques
    • G06T5/94
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20004Adaptive image processing
    • G06T2207/20012Locally adaptive
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30144Printing quality

Definitions

  • the invention relates generally to a method of image processing, and to computer software for image processing.
  • the invention may be applied to both digital and analogue images, still and video images.
  • Dynamic range is the ratio of intensities of the brightest and darkest recordable parts of an image or scene.
  • a dark area of an image for example, a shadow
  • a lighter area for example, a white cloud
  • Electronic optical equipment can acquire image data incorporating a large dynamic range, for example in the order of 2500:1.
  • this range can be lost when the image is digitized, either due to use of a lossy compression algorithm (eg. JPEG, MPEG) or when the image is rendered on a medium having a narrow dynamic range (e.g. printed hard copy, displayed on a display device.)
  • dynamic range compression image transforms include Retinex, local histogram equalization, and gamma correction.
  • ORMIT algorithm disclosed in patent application WO 02/089060, of which the contents are incorporated herein in full by reference, and which will be referred to in more detail below.
  • Local contrast may be defined as a ratio of intensities of neighbouring pixels of an image (or otherwise resolvable areas in the case of continuous image):
  • Figure 1 shows an example of a dynamic range compression image transform decreasing the local contrast.
  • the example transform is the standard image conditioning technique known as "gamma-correction", in which a transfer curve such as that shown in part (b) is applied to vary the input intensity (a) to produce an output intensity (c) in the image.
  • gamma-correction the standard image conditioning technique known as "gamma-correction"
  • a transfer curve such as that shown in part (b) is applied to vary the input intensity (a) to produce an output intensity (c) in the image.
  • shape distortion Another kind of distortion caused by tonal mapping procedures (aiming to increase the brightness of the dark parts of a scene) such as gamma-correction may be termed "shape distortion".
  • Figure 3 shows an example of the shape distortion resulting from the exemplary tonal mapping. Namely, bright features can appear to increase in width. This can be seen in the increased width at the half maximum intensity of the intensity peak seen in a) the input image and c) the output image.
  • the present invention provides a method that at least partially preserves, that is to say reduces the deterioration of, local contrast in images being processed using a non-linear image transform.
  • the local contrast in at least some parts of the output image and the local contrast of the corresponding parts of the input image are not significantly different:
  • I 1 and I 2 are image intensities of two immediately neighbouring areas in a relevant part of the input image, and O 1 and O 2 are the image intensities of the same two areas of the output image.
  • the invention provides a method in which the local contrast is at least partially preserved in at least part of an image.
  • parts we mean regions having large numbers of image areas, e.g. pixels, having different intensity values. Such regions may, for example, include hundreds of pixels. Since loss of local contrast is more visible in relatively light parts of an image, local contrast is preferably preserved in at least those parts of an image in which the average input intensity is relatively light. With parts of an image where the average input intensity is relatively dark, it may be acceptable to allow significant loss of contrast, since the contrast will not in any case be discernable to the viewer, and hence the natural look of an image can still be preserved.
  • the invention includes local contrast preservation methods in which local contrast is preserved more in relatively light parts of an image relative to relatively dark parts of an image.
  • VJ 2 ⁇ O 1 ZO 2 where I 1 and I 2 are image intensities of two immediately neighbouring areas of the input image, and O 1 and O 2 are the image intensities of the same two areas of the output image.
  • Embodiments of the present invention may be implemented in digital or analogue formats. Where the image to be processed is digital, the areas are represented by pixels. Where the image to be processed is in analogue format, the areas should be taken to be small areas of the image of a preset size, i.e. pixel-like areas.
  • the method of the invention may be implemented in computer software or in hardware.
  • An exemplary implementation may take the form of a monolithic analogue integrated circuit (IC), which has the advantages of small size and low power consumption, which are desirable features in image capture devices. In image capture devices such as handheld video cameras and security cameras, small size and low power consumption are particularly desirable.
  • IC monolithic analogue integrated circuit
  • the image capture device may capture an image as an analogue image. Images captured in an analogue format may be converted to a digital format by an analogue-digital converter (ADC.) Methods in accordance with the invention may be applied either before such digitization or after such digitization.
  • ADC analogue-digital converter
  • Methods in accordance with the invention may be applied to both colour and greyscale images.
  • the method could be used to modify the image intensity of the image, leaving hue and saturation unchanged, or the method could be used to modify individual colour channels, providing colour correction.
  • Embodiments of the invention may be implemented in any system in which a non-linear image transform such as dynamic range compression is employed.
  • possible implementations of the present invention include software for digital still images (stand-alone, scanner software, printer software) and video improvement; digital still and video cameras; cathode ray tube (CRT) displays; liquid crystal device (LCD) displays; image projectors; other types of display apparatus; and printers.
  • Implementations in the analogue domain include analogue video cameras; super-fast video cameras; high quality digital video cameras; security cameras; X-ray and night-vision enhancement equipment.
  • the invention may be used in various image processing methods, including hazy scene enhancement; multiple exposure based image synthesis for large dynamic range scenes; advanced colour correction procedures; and universal image improvement for televisions, computer monitors, and other displays.
  • Figure 1 is an illustration of effects of a dynamic range compression image transform, applied to a continuous image, in accordance with the prior art
  • Figure 2 is an illustration of effects of a dynamic range compression image transform, applied to a 3x3 pixel image, in accordance with the prior art
  • Figure 3 is a further illustration of effects of the non-linear transform illustrated in Figure 1 ;
  • Figure 4 illustrates a computer system arranged to perform a method according to an embodiment of the invention
  • Figure 5 is a set of (a) input image, (b) mask and (c) output image used as an example of an image blurring procedure used in an embodiment of the invention
  • Figure 6 is a set of (a) input image, (b) mask and (c) output image used as an example of an image dilation procedure used in an embodiment of the invention
  • Figure 7 is a flow diagram illustrating a method in accordance with an embodiment of the invention.
  • Figure 8 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation;
  • Figure 9 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation;
  • Figure 10 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation
  • Figure 11 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation
  • Figure 12 shows a flow diagram illustrating a method in accordance with further embodiments of the invention.
  • the method of the invention can improve the local contrast of an image (as well as reducing deformation of the shape of sharp details) which is result of prior art non-linear image transforms.
  • Local contrast is preserved by an image processing procedure if the local contrast of the output image is, at least for most of the image, not significantly different from the local contrast of the input image:
  • IJI 2 K O 1 IO 2 (3) where I 1 and I 2 are image intensities of two immediately neighbouring pixels of the input image, O 1 and O 2 are the image in intensities of the same two pixels of the output image. If local contrast is significantly lower, this would mean that details within the image are less distinguishable.
  • the ratio of output local contrast to input local contrast is controlled so as to be near to 1, for example no more than VA and no less than 1 A
  • the closeness of the ratio to 1 can be varied and controlled by the specific choice of filter. This is described below.
  • Image transformation using a local contrast preservation method in combination with a non-linear image transform f(I) in accordance with embodiments of the present invention can be represented by a general step-by- step scheme as follows:
  • I d is a filtered image intensity generated by non-linear spatial filtering (for example, dilation) of the input intensity I
  • f(Id) is a transformed image intensity generated by the dynamic range compression image transform applied to the filtered image intensity I d ;
  • Ad (A being a two-dimensional matrix of amplification coefficients corresponding to each area of the image being transformed, which is referred to herein as an "amplification map”) is an initial amplification map generated by division of the transformed image intensity f(Ia) by the filtered image intensity I d :
  • Adb is a result of a "blurring” procedure ("blurring” can be generally defined as a low-pass filtering procedure reducing high frequency (spatial) components of images).
  • An example of a blurring procedure is the Gaussian blurring procedure represented in Figure 5.
  • the output image intensity O is generated by applying the blurred amplification map to the original input image, by multiplying the input intensities by the corresponding amplification coefficients in the blurred amplification map.
  • LCo is the output local contrast and LC 1 is the input local contrast.
  • LCo ⁇ LCi in other words output local contrast and input local contrast are approximately equal, despite the application of a dynamic range compression image transform.
  • a local contrast LCo of the output image can be produced which is only slightly different from the local contrast LCi of the input image.
  • contrast between areas which are remote from each other can be altered as desired by the non-linear image transform, without being affected by the local contrast preservation method.
  • the image processing method produces an output image in which the amplification coefficient of a given area is varied in dependence upon the amplification coefficient of at least one immediately neighbouring area, so that if local contrast is high initially, the full effect of the transform can be modified specifically in the area in which local contrast is relatively high, so that that the contrast is maintained specifically in the area in which local contrast is high.
  • Two different embodiments of local contrast preservation as proposed one using a dilation procedure and another with an erosion procedure, where the dilation and erosion procedures are examples of non-linear filtering which improve the local contrast preservation procedure.
  • Dilation is an image processing procedure producing, for a given (i j)th pixel, an output which tends to be close to the maximal image intensity of the immediate neighbourhood of the (ij)th. pixel on the input image.
  • the part of the input image is shown in (a), the neighbourhood is defined by the (b) and the output image is (c).
  • the output pixel (ij) has the image intensity of the maximal input image intensity of the neighbourhood (in this case neighbourhood includes left pixel, right pixel, and pixels above and below the current pixel) of the (ij)th pixel.
  • neighbourhood includes left pixel, right pixel, and pixels above and below the current pixel of the (ij)th pixel.
  • Erosion is similar to dilation except that the output pixel (ij) has the image intensity of the minimal input image intensity in its neighbourhood.
  • the procedure is the inverse, in that image intensity of each pixel of output image tends to be close to the minimal (not maximal) image intensity of neighbouring pixels of the input image. Thus, the size of relatively light areas tends to be decreased.
  • dilation and erosion procedures which are known standard morphological filters, can be generalised for the case of continuous-in-space images.
  • Various continuous implementations are envisaged. Examples of dilation include the following: a) i. - "*g-/q» (11)
  • the embodiment to be described below is based on the processing of a digitised image.
  • dilation is performed such that the output pixel (i j) has the image intensity of the maximal input image intensity of the neighbourhood of the (ij)th pixel: and the blurring procedure based on a sliding mask, for example a 5x5 Gaussian mask.
  • Figure 4 illustrates a computer system arranged to perform a method according to an embodiment of the invention.
  • the computer system comprises a central processing unit (CPU) 2, operating system software 4, a hard disc 6, memory 8, an in/out (I/O) system 12, and image correction software 10.
  • the image correction software 10 comprises a computer program, or a suite of computer programs operable to carry out a method according to the embodiment of the invention.
  • the I/O system 12 is connected to input devices 14 and a monitor 16, which is operable to display images before and after processing by an embodiment of the present invention.
  • Input devices may include a keyboard, a mouse, an electronic pen, or a haptic device, which may be used to select and manage images for correction according to an embodiment of the invention.
  • Figure 7 illustrates an embodiment of an image processing method in accordance with the invention in the form of a schematic block diagram.
  • the input image is first analysed to determine the image intensity values of the input image before any processing of the input image takes place.
  • the determination of the image intensity values of the input image may take a number of forms. In a black and white or grayscale image, it is a simple matter to determine image intensity; the image intensity is derived directly from the image coding or the image itself. In the case of a colour image based on a colour model such as the red-green-blue (RGB) colour model, image intensity may for example be derived by a weighted function of the input colour image intensity values R 1 , G 1 , B 1 :
  • RGB red-green-blue
  • a dilation procedure is applied to the image intensity.
  • the dilation function illustrated in Figure 6 may for example be used.
  • a dilation mask of a preset size, for example 3x3 pixels, is applied. Within the mask, which is applied to a given pixel in the centre of the mask, the image intensity of the given pixel is increased to the maximal image intensity of the highest image intensity of any pixel in the 3x3 group, and the mask is applied as a sliding mask across the entire image to create a dilated image intensity I d . In this way, pixels at the edges of dark areas adjoining light areas are increased in image intensity to for light pixels - in this way the light areas are dilated in size.
  • the non-linear image transform to be applied, f(I), is applied, step 22.
  • the tonal map correction curve of Figure l(b) may for example be used. Input image intensity is given on the horizontal axis, while output image intensity is on the vertical axis.
  • the correction curve is non ⁇ linear and is formed such that dark input pixels (those of low image intensity) are corrected to a much greater degree than light input pixels (those of high image intensity). For example, a dark pixel, of low input image intensity x has a high output image intensity value z. By contrast, a light pixel of high image intensity y has an output image intensity value of y, and thus is not altered. The value of an amplification coefficient associated with a light pixel is therefore low, while the value of a coefficient associated with a dark pixel is high.
  • step 24 by dividing the output of the transform O d by the dilated image intensity I d an initial amplification map A d is derived.
  • the amplification map A d comprises a number of amplification coefficients, each coefficient being associated with a corresponding pixel in the input image, and comprising a numerical value.
  • the numerical value represents the degree to which the output image intensity of a pixel is altered in comparison with the input image intensity.
  • the values of the amplification coefficients derived at step 24 to create the amplification map A d are varied in dependence on the values of at least their closest neighbours.
  • the variation is achieved by blurring.
  • the amplification map is blurred to derive a blurred amplification map A db .
  • the blurring function illustrated in Figure 5 may for example be used.
  • a blurring mask of a preset size, for example 5x5 pixels, is applied.
  • the amplification coefficient of the given pixel when applied to an amplification coefficient of a given pixel in the centre of the mask, the amplification coefficient of the given pixel is changed to an average amplification coefficient of all the pixels in the 5x5 group, and the mask is applied as a sliding mask across the entire amplification map to create the blurred amplification map. hi this way, amplification coefficients at the edges of high amplification areas and low amplification areas are blurred to create amplification coefficients of similar values.
  • the blurring process may take the form of the application of a low pass filter, which is essentially a filter that allows low frequencies to pass through, but attenuates high frequencies.
  • Step 28 comprises applying the numerical value of each amplification coefficient to its associated pixel and altering the image intensity of each pixel according to the value, for example by multiplying the input image intensity of each pixel by the value of its associated amplification coefficient.
  • the local contrast preservation effect of the present invention can alternatively be achieved only by blurring of an amplification map produced without initially dilating the image intensity.
  • artifacts such as "haloes" can result.
  • an exemplary image which initially consists of a central block of dark pixels, surrounded by light pixels.
  • An amplification map can be produced by applying a desired image transform (for example gamma correction) and dividing the result by the input image intensity.
  • the amplification map is blurred using a 3x3 mask to generate a blurred amplification map. Since the amplification coefficients associated with the dark pixels are relatively high, the amplification coefficients associated with the initially light pixels closest to the dark pixels are increased by the blurring process.
  • a 'halo' of high image intensity will appear in the output image around the dark central area.
  • a dilation procedure is used in order to counteract this 'halo' effect.
  • neighbouring pixels in the image are grouped together and the image intensity value of all pixels in each group is determined, and then increased to the maximum value of the pixel with the highest image intensity value.
  • the neighbouring pixels may be grouped according to their most immediate neighbours, or according to larger groups.
  • Dilation resets the image intensity value of a pixel to the highest image intensity value of any pixel in the group.
  • the size of the group may be altered according to the degree of dilation required.
  • Figures 8 to 11 illustrate examples of a dynamic range compression image transform using a tonal map correction curve procedure applied to an input image, as shown in part (a), which can result in both shape distortion and loss of the local contrast, as shown in part (b), along with the improved results provided by the local contrast preservation technique described above in relation to Figure 6, as shown in part (c).
  • the method of the invention may be applied to produce varying degrees of local contrast preservation.
  • the method is used during the dynamic range compression image transform to reduce the loss of local contrast which would occur during application of the dynamic range compression image transform had the local contrast preservation method not been used.
  • the result is that the local contrast in each part of the output image is closer to the local contrast in each part of the input image than would otherwise be the case.
  • the degree of closeness depends upon the nature of the blurring transform applied to the amplification map.
  • Figure 12 illustrates an alternative embodiment of the invention, used instead of the procedure illustrated in Figure 7.
  • steps which are similar to steps described in relation to Figure 7 are referred to with the same reference numerals, except incremented by 100, and the same description of those steps should be taken to apply here also.
  • the procedure is modified, in that the input image intensity is not first dilated before the generation of the initial amplification map A in step 124. However, after the initial amplification map A is produced, the amplification map A is subjected to an erosion procedure, step 125, as described above, to produce an eroded amplification map A e .
  • the erosion of the amplification map tends to reduce the size of areas having high amplification coefficients and therefore also reduces the "haloing" effect described above.
  • the blurring process is applied to the eroded amplification map A e , to generate a blurred eroded amplification map A eb , step 126, which is then applied to the input image intensity I to generate the output image intensity O, step 128.
  • the tonal map correction curve transform may be replaced by a more complex image transform.
  • a method may take the form of an algorithm such as that described in International patent application having International Publication Number WO 02/089060, entitled Image Enhancement Methods and Apparatus Therefor.
  • This application describes an image enhancement algorithm known as ORMIT (orthogonal retino-morphic image transform).
  • ORMIT orthogonal retino-morphic image transform
  • the ORMIT algorithm is a spatially varying dynamic range compression algorithm in that it treats different parts of an image differently depending on the image intensity of those parts.
  • the ORMIT method comprises processing an input signal to generate an adjusted output signal, wherein an adjusted image intensity value I out (x,y) is calculated from the input image intensity values I(x,y), for different positions in the image, by: 1 OU , [ ⁇ (F(/))].Q (F(/))+ ⁇ (7) (21) where Pj( ⁇ ) is an orthogonal basis of functions of ⁇ defined in the range 0 ⁇ l; and Qi(..) are antiderivatives of P,(..):
  • LPF ⁇ [..] is an operator of low-pass spatial filtering
  • ⁇ j is a cut-off frequency of the low-pass filter
  • F(..) is a weighting function.
  • the overall effect of the algorithm is to compress the dynamic range of an image while preserving the 'natural look' of the image.
  • the output image intensity is calculated according to:
  • the determination of the initial image intensity values of the input image may take a number of forms.
  • the initial image intensity may be derived from the image intensity of whichever colour has the maximum value, or the initial image intensity may be derived by taking an average of the image intensity of all colours present in the pixel.
  • a spatially-varying local contrast preservation technique may be applied, in which the amount of local contrast preservation applied varies across different parts of an image. Such variation may be useful where the amount of small detail in an image varies across the image. In particular, an image often has different sharpness in different regions due to the image capture being conducted when a lens is focused on one object but other parts of the image are not in focus. In such cases it could be beneficial to apply spatially-varying procedure, where both dilation and blurring use mask sizes in accordance with the cut-off frequency (as determined by a predetermined cut-off threshold) of the spatial spectrum in different parts of an image. Alternatively, local contrast preservation may be applied only to a part of an image selectively, where the most detail is to be found, e.g. in a sharply focused part of an image.
  • dilation of the input image could be used alone in order to preserve local contrast, hi either case the form of the dilation filter could be the maximal filter described here (as a maximum of neighbouring pixels), or a generalisation to a continuous dilation which gives approximately maximal intensity of the neighbourhood.
  • Such a "dilation" procedure is in general a nonlinear filtering procedure, where the output intensity of a pixel (or an area) is defined by a nonlinear function of intensities of neighbouring pixels of an input image.
  • such continuous dilation may be considered a combination of maximal filter and blurring, where the maximal filter means that the intensity of an area of output image is defined by the maximal intensity of the neighbouring areas of the input image, and blurring means that the intensity of an output image is defined as an average intensity of the neighbouring areas.
  • the size of the neighbourhood may be defined independently for the maximal filter step and the blurring step.
  • Global contrast may be defined as a ratio of intensities of remote pixels of an image (or otherwise resolvable areas in the case of continuous image):
  • I R1 and I R2 are intensities in two remote pixels.
  • the local contrast is preserved to a greater extent than the global contrast.
  • the global contrast of the image is varied in different sections of the image without destroying the local contrast values.
  • the local contrast preservation procedure is applied using a series of separate processing steps each of which is applied across the entire image before the next step is carried out, it is possible that two or more of the steps could be combined into a single- step image transform algorithm applied across the image once only.

Abstract

The invention provides a method of image correction processing which comprises altering area image intensity values of an image according to an dynamic range compression image transform. The output image intensity of an area is altered, compared to the input image intensity, according to an area amplification coefficient. The amplification coefficient of an area is varied in dependence upon the amplification coefficient of at least one other neighbouring area. The invention preserves contrast in images that have been processed in order to compress dynamic range.

Description

Image Processing Method, and Computer Software for Image Processing
Field of the Invention
The invention relates generally to a method of image processing, and to computer software for image processing. The invention may be applied to both digital and analogue images, still and video images.
Background of the Invention
There are a number of well-known techniques for the transformation of images. Among these techniques are non-linear image transforms, such as dynamic range compression image transforms. Dynamic range is the ratio of intensities of the brightest and darkest recordable parts of an image or scene. A dark area of an image (for example, a shadow) has low image intensity, while a lighter area (for example, a white cloud) has high image intensity. Electronic optical equipment, based on CCD detector arrays, can acquire image data incorporating a large dynamic range, for example in the order of 2500:1. However, this range can be lost when the image is digitized, either due to use of a lossy compression algorithm (eg. JPEG, MPEG) or when the image is rendered on a medium having a narrow dynamic range (e.g. printed hard copy, displayed on a display device.)
Consequently, it can be desirable to compress the dynamic range of an image to give it a more 'natural' appearance. Examples of dynamic range compression image transforms include Retinex, local histogram equalization, and gamma correction. A further example is the ORMIT algorithm, disclosed in patent application WO 02/089060, of which the contents are incorporated herein in full by reference, and which will be referred to in more detail below.
The transform processes described above may result in the reduction of local contrast. Local contrast may be defined as a ratio of intensities of neighbouring pixels of an image (or otherwise resolvable areas in the case of continuous image):
LC JilZlλ (i) where I1 and I2 are intensities in two neighbouring pixels.
As an image is transformed using a non-linear image transform, the difference in image intensity between neighbouring pixels may be lost. Figure 1 shows an example of a dynamic range compression image transform decreasing the local contrast. The example transform is the standard image conditioning technique known as "gamma-correction", in which a transfer curve such as that shown in part (b) is applied to vary the input intensity (a) to produce an output intensity (c) in the image. As a result of this transform, small details in bright parts of the image become less distinguishable. This can be seen in the loss of definition in the dip in the intensity curves shown in a) the input image and c) the output image.
A similar effect is illustrated in Figure 2, in the case of a 3x3 pixel image. As can be seen, the local contrast between a relatively dark pixel and a set of relatively light pixels around it is reduced, in this example, from 1/3 to 1/10, between the input image and the output image.
Another kind of distortion caused by tonal mapping procedures (aiming to increase the brightness of the dark parts of a scene) such as gamma-correction may be termed "shape distortion". Figure 3 shows an example of the shape distortion resulting from the exemplary tonal mapping. Namely, bright features can appear to increase in width. This can be seen in the increased width at the half maximum intensity of the intensity peak seen in a) the input image and c) the output image.
Local contrast in an image can be increased using known image processing techniques such as image sharpening transforms. However, if an image processed with a dynamic range compression image transform is subsequently processed using an image sharpening transform, there is little correspondence between the loss of local contrast in the initial transform and the increase of local contrast using the image sharpening transform. Hence, the resulting image tends to look less natural.
In accordance with one aspect of the present invention, there is provided a method of image processing comprising altering an input image using a non¬ linear image transform to generate an output image, the process comprising transforming an image on an area-by-area basis to generate an output image intensity (Ojj) of an area which is different to an input image intensity (Iy) of the area, the output image intensity (Ojj) of an area being related to the input image intensity (Iy) of the area by the ratio: amplification coefficient = Oy/ Iy (2) wherein the image processing method produces an output image in which the amplification coefficient of a given area is varied in dependence upon the amplification coefficient of at least one neighbouring area, in order that that, in at least part of the image, the local contrast of the input image is at least partially preserved in the output image.
The present invention provides a method that at least partially preserves, that is to say reduces the deterioration of, local contrast in images being processed using a non-linear image transform.
Preferably, as a result of local contrast preservation during the image transform, the local contrast in at least some parts of the output image and the local contrast of the corresponding parts of the input image are not significantly different:
/, /J2 - O1 ZO2 where I1 and I2 are image intensities of two immediately neighbouring areas in a relevant part of the input image, and O1 and O2 are the image intensities of the same two areas of the output image.
The invention provides a method in which the local contrast is at least partially preserved in at least part of an image. By parts, we mean regions having large numbers of image areas, e.g. pixels, having different intensity values. Such regions may, for example, include hundreds of pixels. Since loss of local contrast is more visible in relatively light parts of an image, local contrast is preferably preserved in at least those parts of an image in which the average input intensity is relatively light. With parts of an image where the average input intensity is relatively dark, it may be acceptable to allow significant loss of contrast, since the contrast will not in any case be discernable to the viewer, and hence the natural look of an image can still be preserved. Hence, the invention includes local contrast preservation methods in which local contrast is preserved more in relatively light parts of an image relative to relatively dark parts of an image.
According to a further aspect of the present invention there is provided a method of image processing comprising altering an input image using a non¬ linear image transform to generate an output image, the transform being arranged to correct an image on an area-by-area basis to generate an output image (O) of an area which is different to an input image (I), the output image omage (O) being related to the input image (I) of the area by the transform: O =/(I) the transform generating an output image intensity (Oy) of an area which is different to an input image intensity (Ijj) of the area, the output image intensity (Oy) of an area being related to the input image intensity (Iy) of the area by the ratio: amplification coefficient = Oy/ Iy wherein the method comprises varying the amplification coefficient of a given area in dependence upon the amplification coefficient of at least one neighbouring area, in order that that, in at least part of the image, the local contrast of the output image is not significantly different to the local contrast of the input image:
VJ2 ^ O1 ZO2 where I1 and I2 are image intensities of two immediately neighbouring areas of the input image, and O1 and O2 are the image intensities of the same two areas of the output image.
Embodiments of the present invention may be implemented in digital or analogue formats. Where the image to be processed is digital, the areas are represented by pixels. Where the image to be processed is in analogue format, the areas should be taken to be small areas of the image of a preset size, i.e. pixel-like areas.
The method of the invention may be implemented in computer software or in hardware. An exemplary implementation may take the form of a monolithic analogue integrated circuit (IC), which has the advantages of small size and low power consumption, which are desirable features in image capture devices. In image capture devices such as handheld video cameras and security cameras, small size and low power consumption are particularly desirable.
The image capture device may capture an image as an analogue image. Images captured in an analogue format may be converted to a digital format by an analogue-digital converter (ADC.) Methods in accordance with the invention may be applied either before such digitization or after such digitization.
Methods in accordance with the invention may be applied to both colour and greyscale images. In the case of colour images, the method could be used to modify the image intensity of the image, leaving hue and saturation unchanged, or the method could be used to modify individual colour channels, providing colour correction.
Embodiments of the invention may be implemented in any system in which a non-linear image transform such as dynamic range compression is employed. As such, possible implementations of the present invention include software for digital still images (stand-alone, scanner software, printer software) and video improvement; digital still and video cameras; cathode ray tube (CRT) displays; liquid crystal device (LCD) displays; image projectors; other types of display apparatus; and printers. Implementations in the analogue domain include analogue video cameras; super-fast video cameras; high quality digital video cameras; security cameras; X-ray and night-vision enhancement equipment.
The invention may be used in various image processing methods, including hazy scene enhancement; multiple exposure based image synthesis for large dynamic range scenes; advanced colour correction procedures; and universal image improvement for televisions, computer monitors, and other displays.
Further features and advantages of the invention will become apparent from the following description of preferred embodiments of the invention, given by way of example only, which is made with reference to the accompanying drawings.
Brief Description of the Drawings
Figure 1 is an illustration of effects of a dynamic range compression image transform, applied to a continuous image, in accordance with the prior art;
Figure 2 is an illustration of effects of a dynamic range compression image transform, applied to a 3x3 pixel image, in accordance with the prior art;
Figure 3 is a further illustration of effects of the non-linear transform illustrated in Figure 1 ;
Figure 4 illustrates a computer system arranged to perform a method according to an embodiment of the invention;
Figure 5 is a set of (a) input image, (b) mask and (c) output image used as an example of an image blurring procedure used in an embodiment of the invention;
Figure 6 is a set of (a) input image, (b) mask and (c) output image used as an example of an image dilation procedure used in an embodiment of the invention;
Figure 7 is a flow diagram illustrating a method in accordance with an embodiment of the invention;
Figure 8 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation;
Figure 9 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation;
Figure 10 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation; Figure 11 shows examples of (a) an original image, (b) the transformed without using local contrast preservation, and (c) the image transformed with local contrast preservation; and
Figure 12 shows a flow diagram illustrating a method in accordance with further embodiments of the invention.
Detailed Description of the Invention
The present invention provides a method, referred to herein as "local contrast preservation" which is capable of improving the result of any spatially uniform (O=f(I)) or spatially varying (O=f(I,ij) where ij are x and y spatial coordinates of a pixel) image transform. The method of the invention can improve the local contrast of an image (as well as reducing deformation of the shape of sharp details) which is result of prior art non-linear image transforms.
Local contrast is preserved by an image processing procedure if the local contrast of the output image is, at least for most of the image, not significantly different from the local contrast of the input image:
IJI2 K O1 IO2 (3) where I1 and I2 are image intensities of two immediately neighbouring pixels of the input image, O1 and O2 are the image in intensities of the same two pixels of the output image. If local contrast is significantly lower, this would mean that details within the image are less distinguishable. By "not significantly different", it is meant that the ratio of output local contrast to input local contrast is controlled so as to be near to 1, for example no more than VA and no less than 1A The closeness of the ratio to 1 can be varied and controlled by the specific choice of filter. This is described below.
Image transformation using a local contrast preservation method in combination with a non-linear image transform f(I) in accordance with embodiments of the present invention can be represented by a general step-by- step scheme as follows:
I → ld→ fftO → Ad → Adb→ O (4) where Id is a filtered image intensity generated by non-linear spatial filtering (for example, dilation) of the input intensity I; f(Id) is a transformed image intensity generated by the dynamic range compression image transform applied to the filtered image intensity Id;
Ad (A being a two-dimensional matrix of amplification coefficients corresponding to each area of the image being transformed, which is referred to herein as an "amplification map") is an initial amplification map generated by division of the transformed image intensity f(Ia) by the filtered image intensity Id:
Ad=f(Id)/Id (5)
Adb is a result of a "blurring" procedure ("blurring" can be generally defined as a low-pass filtering procedure reducing high frequency (spatial) components of images). An example of a blurring procedure is the Gaussian blurring procedure represented in Figure 5.
Next, the output image intensity O is generated by applying the blurred amplification map to the original input image, by multiplying the input intensities by the corresponding amplification coefficients in the blurred amplification map.
Blurring of the amplification map before the amplification map is applied to the original image will tend to preserve local contrast in the output image. Let us demonstrate this: if we presume that the amplification map Adb, is smooth in the spatial domain, we can see that the local contrast, which defined here using equation (1) above:
Figure imgf000009_0001
Take the case where image intensity changes very quickly between two neighbouring pixels, such that ^»1^
81 - I1-I2 - I1 (7)
Even though the image intensity is varying quickly, the blurred amplification map, which is a result of low-pass filtering, changes slowly between neighbouring pixels: 6A = IA1-A2 ^ A15 A2 - A (8)
Therefore, local contrast varies between the input image and the output image:
Figure imgf000010_0001
where LCo is the output local contrast and LC1 is the input local contrast.
Therefore, LCo ~ LCi, in other words output local contrast and input local contrast are approximately equal, despite the application of a dynamic range compression image transform.
Thus we have shown that a local contrast LCo of the output image can be produced which is only slightly different from the local contrast LCi of the input image. On the other hand, contrast between areas which are remote from each other can be altered as desired by the non-linear image transform, without being affected by the local contrast preservation method. The reason is that the image processing method produces an output image in which the amplification coefficient of a given area is varied in dependence upon the amplification coefficient of at least one immediately neighbouring area, so that if local contrast is high initially, the full effect of the transform can be modified specifically in the area in which local contrast is relatively high, so that that the contrast is maintained specifically in the area in which local contrast is high.
Two different embodiments of local contrast preservation as proposed: one using a dilation procedure and another with an erosion procedure, where the dilation and erosion procedures are examples of non-linear filtering which improve the local contrast preservation procedure.
Dilation is an image processing procedure producing, for a given (i j)th pixel, an output which tends to be close to the maximal image intensity of the immediate neighbourhood of the (ij)th. pixel on the input image.
An example of the dilation procedure is shown in Figure 6. The part of the input image is shown in (a), the neighbourhood is defined by the (b) and the output image is (c). The output pixel (ij) has the image intensity of the maximal input image intensity of the neighbourhood (in this case neighbourhood includes left pixel, right pixel, and pixels above and below the current pixel) of the (ij)th pixel. Thus, the size of relatively light areas tends to be increased.
Erosion is similar to dilation except that the output pixel (ij) has the image intensity of the minimal input image intensity in its neighbourhood. The procedure is the inverse, in that image intensity of each pixel of output image tends to be close to the minimal (not maximal) image intensity of neighbouring pixels of the input image. Thus, the size of relatively light areas tends to be decreased.
The dilation and erosion procedures, which are known standard morphological filters, can be generalised for the case of continuous-in-space images. Various continuous implementations are envisaged. Examples of dilation include the following: a) i. - "*g-/q» (11)
' d LPF(/(I)) V where /(/) is a non-linear function, e.g.:
/(/) = exp(// -/) (11) where an appropriate setting is selected for μ, e.g. μ=3; b) I^ f^ (U>F(f(μ -ϊ)))/μ (12) where /(/) is anon-linear function, e.g.: f(I) = exV(μ -I) (13) and where /("1}(J) is a reverse function of /(/) :
/^(/(J)) = / (14).
This provides: Id = log(LPF(exp(// -I)))/μ (15) where an appropriate setting is selected for μ, e.g. μ=5.
The embodiment to be described below is based on the processing of a digitised image. In this case, dilation is performed such that the output pixel (i j) has the image intensity of the maximal input image intensity of the neighbourhood of the (ij)th pixel:
Figure imgf000012_0001
and the blurring procedure based on a sliding mask, for example a 5x5 Gaussian mask.
Figure 4 illustrates a computer system arranged to perform a method according to an embodiment of the invention. The computer system comprises a central processing unit (CPU) 2, operating system software 4, a hard disc 6, memory 8, an in/out (I/O) system 12, and image correction software 10. In this embodiment, the image correction software 10 comprises a computer program, or a suite of computer programs operable to carry out a method according to the embodiment of the invention. The I/O system 12 is connected to input devices 14 and a monitor 16, which is operable to display images before and after processing by an embodiment of the present invention. Input devices may include a keyboard, a mouse, an electronic pen, or a haptic device, which may be used to select and manage images for correction according to an embodiment of the invention.
Figure 7 illustrates an embodiment of an image processing method in accordance with the invention in the form of a schematic block diagram. The input image is first analysed to determine the image intensity values of the input image before any processing of the input image takes place. The determination of the image intensity values of the input image may take a number of forms. In a black and white or grayscale image, it is a simple matter to determine image intensity; the image intensity is derived directly from the image coding or the image itself. In the case of a colour image based on a colour model such as the red-green-blue (RGB) colour model, image intensity may for example be derived by a weighted function of the input colour image intensity values R1, G1, B1:
I = WR-RI + W0-G1 + WB-B1 (17) where W, which may be colour-specific, is a weighting factor. In this way, a representative image intensity I is calculated for each pixel, and the transform is applied to the representative image intensity. The resulting amplification map can be applied to each of the colour image intensity values. The resulting procedure alters the output image intensity of an RGB image from input (R15G1, Bi) to output (Ro, Go, Bo) according to:
Ro = AdbRj (18)
G0 = Ad13G1 (19)
B0 = AdbBi (20)
Other methods of producing a representative image intensity for each colour could alternatively be used, or a separate transform procedure could be applied separately to each of the colour image intensity values.
Referring again to Figure 7, in step 20, a dilation procedure is applied to the image intensity. The dilation function illustrated in Figure 6 may for example be used. A dilation mask of a preset size, for example 3x3 pixels, is applied. Within the mask, which is applied to a given pixel in the centre of the mask, the image intensity of the given pixel is increased to the maximal image intensity of the highest image intensity of any pixel in the 3x3 group, and the mask is applied as a sliding mask across the entire image to create a dilated image intensity Id. In this way, pixels at the edges of dark areas adjoining light areas are increased in image intensity to for light pixels - in this way the light areas are dilated in size.
From the dilated image intensity Id, the non-linear image transform to be applied, f(I), is applied, step 22. The tonal map correction curve of Figure l(b) may for example be used. Input image intensity is given on the horizontal axis, while output image intensity is on the vertical axis. The correction curve is non¬ linear and is formed such that dark input pixels (those of low image intensity) are corrected to a much greater degree than light input pixels (those of high image intensity). For example, a dark pixel, of low input image intensity x has a high output image intensity value z. By contrast, a light pixel of high image intensity y has an output image intensity value of y, and thus is not altered. The value of an amplification coefficient associated with a light pixel is therefore low, while the value of a coefficient associated with a dark pixel is high.
Subsequently, step 24, by dividing the output of the transform Od by the dilated image intensity Id an initial amplification map Ad is derived. The amplification map Ad comprises a number of amplification coefficients, each coefficient being associated with a corresponding pixel in the input image, and comprising a numerical value. The numerical value represents the degree to which the output image intensity of a pixel is altered in comparison with the input image intensity.
Next, at step 26, the values of the amplification coefficients derived at step 24 to create the amplification map Ad are varied in dependence on the values of at least their closest neighbours. In this embodiment, the variation is achieved by blurring. The amplification map is blurred to derive a blurred amplification map Adb. The blurring function illustrated in Figure 5 may for example be used. A blurring mask of a preset size, for example 5x5 pixels, is applied. Within the mask, when applied to an amplification coefficient of a given pixel in the centre of the mask, the amplification coefficient of the given pixel is changed to an average amplification coefficient of all the pixels in the 5x5 group, and the mask is applied as a sliding mask across the entire amplification map to create the blurred amplification map. hi this way, amplification coefficients at the edges of high amplification areas and low amplification areas are blurred to create amplification coefficients of similar values.
The blurring process may take the form of the application of a low pass filter, which is essentially a filter that allows low frequencies to pass through, but attenuates high frequencies.
Next, the blurred amplification map Ad is applied to the input image intensity I at step 28 to derive output image intensity O. Step 28 comprises applying the numerical value of each amplification coefficient to its associated pixel and altering the image intensity of each pixel according to the value, for example by multiplying the input image intensity of each pixel by the value of its associated amplification coefficient.
Note that the local contrast preservation effect of the present invention can alternatively be achieved only by blurring of an amplification map produced without initially dilating the image intensity. However, artifacts such as "haloes" can result. Consider an exemplary image which initially consists of a central block of dark pixels, surrounded by light pixels. An amplification map can be produced by applying a desired image transform (for example gamma correction) and dividing the result by the input image intensity. Next, the amplification map is blurred using a 3x3 mask to generate a blurred amplification map. Since the amplification coefficients associated with the dark pixels are relatively high, the amplification coefficients associated with the initially light pixels closest to the dark pixels are increased by the blurring process. Thus, when the blurred amplification map is applied to the input image, a 'halo' of high image intensity will appear in the output image around the dark central area.
A dilation procedure is used in order to counteract this 'halo' effect. In the dilation process, neighbouring pixels in the image are grouped together and the image intensity value of all pixels in each group is determined, and then increased to the maximum value of the pixel with the highest image intensity value. The neighbouring pixels may be grouped according to their most immediate neighbours, or according to larger groups. Dilation resets the image intensity value of a pixel to the highest image intensity value of any pixel in the group. The size of the group may be altered according to the degree of dilation required.
Figures 8 to 11 illustrate examples of a dynamic range compression image transform using a tonal map correction curve procedure applied to an input image, as shown in part (a), which can result in both shape distortion and loss of the local contrast, as shown in part (b), along with the improved results provided by the local contrast preservation technique described above in relation to Figure 6, as shown in part (c).
The method of the invention may be applied to produce varying degrees of local contrast preservation. In any event, the method is used during the dynamic range compression image transform to reduce the loss of local contrast which would occur during application of the dynamic range compression image transform had the local contrast preservation method not been used. The result is that the local contrast in each part of the output image is closer to the local contrast in each part of the input image than would otherwise be the case. The degree of closeness depends upon the nature of the blurring transform applied to the amplification map. For example, in the case of the use of a Gaussian filter, G=exp{-(x2+y2)/g2}, a blurring kernel of g=l will reduce the difference between input and output local contrast by around 50%, while a blurring kernel of g=2 will reduce the difference by around 70%.
Figure 12 illustrates an alternative embodiment of the invention, used instead of the procedure illustrated in Figure 7. For the sake of brevity, steps which are similar to steps described in relation to Figure 7 are referred to with the same reference numerals, except incremented by 100, and the same description of those steps should be taken to apply here also. The procedure is modified, in that the input image intensity is not first dilated before the generation of the initial amplification map A in step 124. However, after the initial amplification map A is produced, the amplification map A is subjected to an erosion procedure, step 125, as described above, to produce an eroded amplification map Ae. The erosion of the amplification map tends to reduce the size of areas having high amplification coefficients and therefore also reduces the "haloing" effect described above. Next, the blurring process is applied to the eroded amplification map Ae, to generate a blurred eroded amplification map Aeb, step 126, which is then applied to the input image intensity I to generate the output image intensity O, step 128.
It should be understood, therefore, that either dilation of the input image or erosion of the initial amplification function, or a combination of the two, can be implemented to derive an amplification function that will not give rise to the halo effect when a local contrast preservation technique according to the present invention is applied to an image transform used applied an input image to create an output image.
In other embodiments of the invention, the tonal map correction curve transform may be replaced by a more complex image transform. Such a method may take the form of an algorithm such as that described in International patent application having International Publication Number WO 02/089060, entitled Image Enhancement Methods and Apparatus Therefor. This application describes an image enhancement algorithm known as ORMIT (orthogonal retino-morphic image transform). The ORMIT algorithm is a spatially varying dynamic range compression algorithm in that it treats different parts of an image differently depending on the image intensity of those parts. The ORMIT method comprises processing an input signal to generate an adjusted output signal, wherein an adjusted image intensity value Iout(x,y) is calculated from the input image intensity values I(x,y), for different positions in the image, by: 1 OU,
Figure imgf000017_0001
[^ (F(/))].Q (F(/))+β(7) (21) where Pj(γ) is an orthogonal basis of functions of γ defined in the range 0<γ<l; and Qi(..) are antiderivatives of P,(..):
Figure imgf000017_0002
or an approximation thereto; LPFΩ[..] is an operator of low-pass spatial filtering;
Ωj is a cut-off frequency of the low-pass filter, and F(..) is a weighting function. The overall effect of the algorithm is to compress the dynamic range of an image while preserving the 'natural look' of the image. The output image intensity is calculated according to:
Figure imgf000017_0003
It should be noted that the determination of the initial image intensity values of the input image may take a number of forms. In the case of colour images, the initial image intensity may be derived from the image intensity of whichever colour has the maximum value, or the initial image intensity may be derived by taking an average of the image intensity of all colours present in the pixel.
A spatially-varying local contrast preservation technique may be applied, in which the amount of local contrast preservation applied varies across different parts of an image. Such variation may be useful where the amount of small detail in an image varies across the image. In particular, an image often has different sharpness in different regions due to the image capture being conducted when a lens is focused on one object but other parts of the image are not in focus. In such cases it could be beneficial to apply spatially-varying procedure, where both dilation and blurring use mask sizes in accordance with the cut-off frequency (as determined by a predetermined cut-off threshold) of the spatial spectrum in different parts of an image. Alternatively, local contrast preservation may be applied only to a part of an image selectively, where the most detail is to be found, e.g. in a sharply focused part of an image.
As well as the combination of dilation of the input image intensity followed by blurring of the amplification map, dilation of the input image could be used alone in order to preserve local contrast, hi either case the form of the dilation filter could be the maximal filter described here (as a maximum of neighbouring pixels), or a generalisation to a continuous dilation which gives approximately maximal intensity of the neighbourhood. Such a "dilation" procedure is in general a nonlinear filtering procedure, where the output intensity of a pixel (or an area) is defined by a nonlinear function of intensities of neighbouring pixels of an input image. As an example of such continuous dilation may be considered a combination of maximal filter and blurring, where the maximal filter means that the intensity of an area of output image is defined by the maximal intensity of the neighbouring areas of the input image, and blurring means that the intensity of an output image is defined as an average intensity of the neighbouring areas. The size of the neighbourhood may be defined independently for the maximal filter step and the blurring step.
Contrast between areas which are remote from each other can be described as "global contrast." Global contrast may be defined as a ratio of intensities of remote pixels of an image (or otherwise resolvable areas in the case of continuous image):
Figure imgf000018_0001
where IR1 and IR2 are intensities in two remote pixels. According to the invention, the local contrast is preserved to a greater extent than the global contrast. Or, put in another way, the global contrast of the image is varied in different sections of the image without destroying the local contrast values.
The above embodiments are to be understood as illustrative examples of the invention. Further embodiments of the invention are envisaged. For example, although the described embodiment describes the application of the method of the invention to a digital image made up of discrete pixels, the method can also be applied to an analogue (continuously variable) image. In the case of an analogue implementation, the image would be divided into areas for the purposes of image intensity correction processing according to the invention. Whilst the image transforms described in the embodiments above are dynamic range compression image transforms, other non-linear transforms, such as dynamic range expansion image transforms, may also be improved using the local contrast preservation method of the present invention.
Further, whilst in the above-described embodiments, the local contrast preservation procedure is applied using a series of separate processing steps each of which is applied across the entire image before the next step is carried out, it is possible that two or more of the steps could be combined into a single- step image transform algorithm applied across the image once only.
It is to be understood that any feature described in relation to any one embodiment may be used alone, or in combination with other features described, and may also be used in combination with one or more features of any other of the embodiments, or any combination of any other of the embodiments. Furthermore, equivalents and modifications not described above may also be employed without departing from the scope of the invention, which is defined in the accompanying claims.

Claims

Claims
1. A method of image processing comprising altering an input image using a non-linear image transform to generate an output image, the process comprising correcting an image on an area-by-area basis to generate an output image intensity (Oy) of an area which is different to an input image intensity (Iy) of the area, the output image intensity (Oy) of an area being related to the input image intensity (Ijj) of the area by the ratio: amplification coefficient = Oy/ Iy wherein the image processing method produces an output image in which the amplification coefficient of a given area is varied in dependence upon the amplification coefficient of at least one neighbouring area, in order that that, in at least part of the image, the local contrast of the input image is at least partially preserved in the output image.
2. A method according to claim 1 where the non-linear transform is a transform which alters the dynamic range of the image.
3. A method according to claim 2, wherein the transform is a dynamic range compression image transform.
4. A method according to claim 1, 2 or 3, wherein the image processing method produces an output image in which the amplification coefficient of a given area is varied in dependence upon the amplification coefficient of at least one neighbouring area, in order that that, in at least part of the image, the local contrast of the output image is not significantly different to the local contrast of the input image:
J1 /J2 * O1 /O2 where I1 and I2 are image intensities of two immediately neighbouring areas of the input image, and O1 and O2 are the image intensities of the same two areas of the output image.
5. A method according to any preceding claim, wherein the image processing method produces an output image in which the amplification coefficient of a given area is varied in dependence upon the amplification coefficients of a plurality of neighbouring areas.
6. A method according to claim 5, wherein the image correction processing method produces an output image in which the amplification coefficient of a given area is varied in dependence upon an average of the amplification coefficients of the plurality of neighbouring areas.
7. A method according to any preceding claim, wherein the image correction processing method varies the amplification coefficients by employing a low pass filter.
8. A method according to any preceding claim, wherein the image correction processing method varies the amplification coefficient by altering the value of the amplification coefficient of the given area in dependence on a substantially minimum amplification coefficient of a set of neighbouring areas.
9. A method according to any of claims 1 to 7, wherein the image intensity of an area of an input image is altered before generating the amplification coefficient of the area, the generated amplification coefficient subsequently being varied in dependence upon the amplification coefficient of at least one other neighbouring area.
10. A method according to claim 9, comprising altering the image intensity of an area to a substantially maximal image intensity of at least one neighbouring area.
11. A method according to any preceding claim, comprising altering the image intensity of an area to be the result of non-linear filtering of the input intensity such that the intensity of an area of the output image is a non-linear function of the intensities of the neighbouring areas of the same area in the input image.
12. A method according to any of claims 1 to 7, comprising altering the image intensity of an area to a result of dilation and subsequent blurring, where the dilation procedure includes altering the intensity of an area of output image to a substantially maximal intensity of a set of neighbouring areas of the input image, and where the blurring procedure includes altering the amplification coefficient in an area to be substantially an average intensity of a set of amplification coefficients in neighbouring areas of the image.
13. A method according to any preceding claim, comprising storing at least the amplification coefficient of the given area and the amplification coefficient of at least one other neighbouring area in an amplification map corresponding to the image.
14. A method according to claim 9, wherein every amplification coefficient in the map is varied in dependence on the amplification coefficient of at least one other neighbouring area in the map.
15. A method according to any preceding claim, wherein said image is a digital image, and each said area is a pixel.
16. Computer software comprising code operable to carry out the method of any preceding claim.
17. An apparatus comprising a computer or other computational device arranged to perform the method of any of claims 1 to 15.
18. An integrated circuit or other form of electronic circuit arranged to perform the method of any of claims 1 to 15.
19. A method of image processing comprising altering an input image using a non-linear image transform to generate an output image, the transform being arranged to correct an image on an area-by-area basis to generate an output image (O) of an area which is different to an input image (I), the output image omage (O) being related to the input image (I) of the area by the transform:
O =XI) the transform generating an output image intensity (Oy) of an area which is different to an input image intensity (Iy) of the area, the output image intensity (Oy) of an area being related to the input image intensity (Iy) of the area by the ratio: amplification coefficient = Oy/ Iy wherein the method comprises varying the amplification coefficient of a given area in dependence upon the amplification coefficient of at least one neighbouring area, in order that that, in at least part of the image, the local contrast of the output image is not significantly different to the local contrast of the input image:
I1 II2 K O1 IO2 where I1 and I2 are image intensities of two immediately neighbouring areas of the input image, and O1 and O2 are the image intensities of the same two areas of the output image.
PCT/GB2005/003261 2004-08-20 2005-08-19 Image processing method and computer software for image processing WO2006018658A2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP05773169.7A EP1789921B1 (en) 2004-08-20 2005-08-19 Image processing method and computer software for image processing
JP2007526574A JP2008511048A (en) 2004-08-20 2005-08-19 Image processing method and computer software for image processing
US11/660,485 US8160387B2 (en) 2004-08-20 2005-08-19 Image processing method and computer software for image processing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
GB0418674A GB2417381A (en) 2004-08-20 2004-08-20 Dynamic range compression preserving local image contrast
GB0418674.8 2004-08-20

Publications (2)

Publication Number Publication Date
WO2006018658A2 true WO2006018658A2 (en) 2006-02-23
WO2006018658A3 WO2006018658A3 (en) 2006-06-01

Family

ID=33042425

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/GB2005/003261 WO2006018658A2 (en) 2004-08-20 2005-08-19 Image processing method and computer software for image processing

Country Status (5)

Country Link
US (1) US8160387B2 (en)
EP (1) EP1789921B1 (en)
JP (1) JP2008511048A (en)
GB (1) GB2417381A (en)
WO (1) WO2006018658A2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7636098B2 (en) 2006-09-28 2009-12-22 Microsoft Corporation Salience preserving image fusion
US7885469B2 (en) 2006-05-22 2011-02-08 Microsoft Corporation Encoded high dynamic range textures
US8488015B2 (en) 2007-12-19 2013-07-16 Intellectual Ventures Fund 83 Llc Camera using preview image to select exposure
CN104732503A (en) * 2013-12-24 2015-06-24 中国科学院深圳先进技术研究院 Image defogging and enhancement method and device
US9524664B2 (en) 2014-02-10 2016-12-20 Synaptics Japan Gk Display device, display panel driver and drive method of display panel

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7775428B2 (en) * 2005-05-06 2010-08-17 Berkun Kenneth A Systems and methods for generating, reading and transferring identifiers
JP5103984B2 (en) 2007-03-29 2012-12-19 株式会社ニコン Image processing apparatus, imaging apparatus, and image processing program
US8391634B1 (en) * 2009-04-28 2013-03-05 Google Inc. Illumination estimation for images
US8798393B2 (en) 2010-12-01 2014-08-05 Google Inc. Removing illumination variation from images
JP5814698B2 (en) 2011-08-25 2015-11-17 オリンパス株式会社 Automatic exposure control device, control device, endoscope device, and operation method of endoscope device
GB201410635D0 (en) 2014-06-13 2014-07-30 Univ Bangor Improvements in and relating to the display of images
US10607525B2 (en) 2015-05-19 2020-03-31 Irystec Software Inc. System and method for color retargeting
CN106504282B (en) * 2016-11-23 2019-09-17 浙江大华技术股份有限公司 A kind of video shelter detection method and device
CN110381806B (en) * 2017-03-31 2021-12-10 Hoya株式会社 Electronic endoscope system
US20230032323A1 (en) * 2021-07-28 2023-02-02 Apical Limited Image processing method and system

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2061660B (en) * 1979-10-17 1983-08-24 Philips Electronic Associated Modifying the contrast of an image
SE452386B (en) * 1985-10-07 1987-11-23 Hasselblad Ab Victor DEVICE FOR APPLIANCES FOR ASTAD COMMANDING OF AN ELECTRIC SIGNAL REPRESENTING A PICTURE
JP3270609B2 (en) 1993-01-19 2002-04-02 松下電器産業株式会社 Image display method and apparatus
JP3094899B1 (en) 1996-03-13 2000-10-03 ダイキン工業株式会社 Digital compressed data partial editing method and device
JP3636573B2 (en) * 1997-06-27 2005-04-06 パイオニア株式会社 Brightness control device
US6650774B1 (en) * 1999-10-01 2003-11-18 Microsoft Corporation Locally adapted histogram equalization
JP3902894B2 (en) 1999-10-15 2007-04-11 理想科学工業株式会社 Image processing apparatus and image processing method
US6760484B1 (en) 2000-01-26 2004-07-06 Hewlett-Packard Development Company, L.P. Method for improved contrast mapping of digital images
US6633684B1 (en) * 2000-07-07 2003-10-14 Athentech Technologies Corp. Distortion-free image contrast enhancement
US6807299B2 (en) * 2001-03-10 2004-10-19 Hewlett-Packard Development Company, L.P. Method for contrast mapping of digital images that converges on a solution
GB0110748D0 (en) * 2001-05-02 2001-06-27 Apical Ltd Image enhancement methods and apparatus therefor
WO2002103580A2 (en) * 2001-06-15 2002-12-27 Massachusetts Institute Of Technology Adaptive mean estimation and normalization of data
GB0120246D0 (en) * 2001-08-20 2001-10-10 Crabtree John C R Image processing method
GB0227946D0 (en) * 2002-11-29 2003-01-08 Univ East Anglia Signal enhancement
US7652808B2 (en) * 2003-12-11 2010-01-26 Xerox Corporation Spatially varying luminance compression gamut mapping system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
None

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885469B2 (en) 2006-05-22 2011-02-08 Microsoft Corporation Encoded high dynamic range textures
US7636098B2 (en) 2006-09-28 2009-12-22 Microsoft Corporation Salience preserving image fusion
US8488015B2 (en) 2007-12-19 2013-07-16 Intellectual Ventures Fund 83 Llc Camera using preview image to select exposure
US9819852B2 (en) 2007-12-19 2017-11-14 Monument Peak Ventures, Llc Camera using preview image to select exposure
US10142536B2 (en) 2007-12-19 2018-11-27 Monument Peak Ventures, Llc Camera using preview image to select exposure
US10412296B2 (en) 2007-12-19 2019-09-10 Monument Peak Ventures, Llc Camera using preview image to select exposure
CN104732503A (en) * 2013-12-24 2015-06-24 中国科学院深圳先进技术研究院 Image defogging and enhancement method and device
CN104732503B (en) * 2013-12-24 2017-10-24 中国科学院深圳先进技术研究院 Image defogging Enhancement Method and device
US9524664B2 (en) 2014-02-10 2016-12-20 Synaptics Japan Gk Display device, display panel driver and drive method of display panel

Also Published As

Publication number Publication date
JP2008511048A (en) 2008-04-10
EP1789921B1 (en) 2018-05-23
US8160387B2 (en) 2012-04-17
WO2006018658A3 (en) 2006-06-01
GB2417381A (en) 2006-02-22
EP1789921A2 (en) 2007-05-30
US20080253681A1 (en) 2008-10-16
GB0418674D0 (en) 2004-09-22

Similar Documents

Publication Publication Date Title
US8160387B2 (en) Image processing method and computer software for image processing
US7181086B2 (en) Multiresolution method of spatially filtering a digital image
EP1111907B1 (en) A method for enhancing a digital image with noise-dependent control of texture
KR102117522B1 (en) Display management for high dynamic range video
JP5159208B2 (en) Image correction method and apparatus
EP1209621B1 (en) A method for enhancing a digital image based upon pixel color
JP4210577B2 (en) Method for enhancing gradation and spatial characteristics of digital images using selective spatial filters
US7848560B2 (en) Control of multiple frequency bands for digital image
EP1412920B1 (en) A general purpose image enhancement algorithm which augments the visual perception of detail in digital images
Bagade et al. Use of histogram equalization in image processing for image enhancement
KR20040044556A (en) Image processing method, apparatus, and program
JP2009176325A (en) Image processor, image processing method, and image processing program
JP2001229377A (en) Method for adjusting contrast of digital image by adaptive recursive filter
JP4456819B2 (en) Digital image sharpening device
EP1139284B1 (en) Method and apparatus for performing local color correction
JP2003123070A (en) Method for image data processing and computer program
JP2001275015A (en) Circuit and method for image processing
IES20080497A2 (en) Image processing method and apparatus
JP2004530368A (en) Image quality improving method and apparatus therefor
EP1058209A2 (en) A method for enhancing the edge contrast of a digital image
KR20070075872A (en) Image processing method and system using gain-controllable clipped histogram equalization
JP2001298621A (en) Image processor and image processing method
JPH10214339A (en) Picture filtering method
US7298383B2 (en) Method and user interface for modifying at least one of contrast and density of pixels of a processed image
CN116703789A (en) Image enhancement method and system

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KM KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NG NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU LV MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

WWE Wipo information: entry into national phase

Ref document number: 2007526574

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2005773169

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 2005773169

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 11660485

Country of ref document: US