Claims
- 1. A method of correcting an input digital image comprising a plurality of channels, the method comprising the steps of eliminating unrepresentative pixels, measuring the mean level of the remaining pixels for each channel, determining an aim mean for each channel from the measured mean levels, determining a correction level, calculating a power law correction for each channel from the aim mean level and the correction level and applying the power law correction to the input image data to give a corrected output image.
- 2. A method as claimed in claim 1 wherein the unrepresentative pixels are eliminated by means of at least one mask.
- 3. A method as claimed in claim 2 wherein an edge pixel mask is used to eliminate uniform areas of the image.
- 4. A method as claimed in claim 2 wherein a highlight exclusion mask is used to eliminate unrepresentative clipped pixels.
- 5. A method as claimed in claim 2 wherein a shadow exclusion mask is used to eliminate neutral shadows.
- 6. A method as claimed in claim 2 wherein an exclusion mask eliminates pixels whose color saturation is above a pre-set threshold.
- 7. A method as claimed in claim 6 wherein the threshold is adaptive.
- 8. A method as claimed in claim 3 wherein the mean level used to determine the aim mean for each channel is a combination of the mean levels of the pixels remaining after each mask.
- 9. A method as claimed in claim 3 wherein the mean level used to determine the aim mean for each channel comprises a combination of the mean level of the pixels remaining after the exclusion masks and the mean level of the pixels after the application of the edge pixel mask.
- 10. A method as claimed in claim 1 wherein the aim mean comprises a combination of the mean levels of each channel.
- 11. A method as claimed in claim 10 wherein the aim mean is an equally weighted combination of the mean level of each channel.
- 12. A method as claimed in claim 1 wherein the mean level is calculated for both centre weighted pixels and peripheral weighted pixels.
- 13. A method as claimed in claim 12 wherein the correction level is inversely proportional to the difference between the centre weighted mean level to the peripheral weighted mean level.
- 14. A method as claimed in claim 13 wherein the power law correction is calculated from a combination of the mean level for each channel, the aim mean and the correction level.
- 15. A method as claimed in claim 1 wherein the power law correction is applied to the image data after elimination of neutral shadows and highlights, the corrected data and neutral data being recombined to give the corrected output image.
- 16. A method as claimed in claim 1 wherein the input image data is low pass filtered prior to correction, the resulting data being subtracted from the uncorrected filtered data to give filtered correction data, the filtered correction data being added to the input image data to give a final corrected output image.
- 17. A computer program product for correcting a digital image comprising a computer readable storage medium having a computer program stored thereon for performing the steps of eliminating unrepresentative pixels, measuring the mean level of the remaining pixels for each channel, determining an aim mean for each channel from the measured mean levels, determining a correction level, calculating a power law correction for each channel from the aim mean level and the correction level and applying the power law correction to the input image data to give a corrected output image.
- 18. A computer program comprising code means for performing all the steps of claim 1 when said program is run on a computer.
- 19. A device for correcting a digital image comprising a plurality of channels, the apparatus comprising means for eliminating unrepresentative pixels, means for measuring the mean level of the remaining pixels for each channel, means for determining an aim mean for each channel from the measured mean levels, means for determining a correction level, means for calculating a power law correction for each channel and means for applying the power law correction to the input image data to give a corrected output image.
- 20. A system for the processing of digital image data wherein a digital image is input, the image is processed and the processed image stored and/or output, at least part of the processing of the image comprising a method according to claim 1.
Priority Claims (1)
Number |
Date |
Country |
Kind |
0211486.6 |
May 2002 |
GB |
|
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This is a U.S. original patent application which claims priority on Great Britain patent application No. 0211486.6 filed May 18, 2002.