METHOD AND APPARATUS FOR IMAGE DATA COMPRESSION

Abstract
An image data file undergoes compression, such as JPEG compression. The size of the resulting compressed file is compared with a file size limit. If the file size limit is exceeded, then the compression factor may be increased. A scaler reduces the image pixel resolution if the required compression factor would otherwise exceed a predetermined limit. This may prevent a high degree of compression from providing an image of poor visual quality.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

An embodiment of the invention will now be described, by way of example only, with reference to the drawings, in which:



FIG. 1 is a block diagram of a compression system according to the prior art;



FIG. 2 is a block diagram of a compression system according to the present invention; and



FIGS. 3 and 4 illustrate further embodiments of a compression system according to the present invention.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Referring to FIG. 1, in a known compression scheme, an image 10 is compressed at 12 according to a JPEG algorithm to produce a compressed image 14. The JPEG algorithm applies a degree of compression Q. The compressed image data is compared at 16 with a threshold size, for example 12 kb. If less than the threshold, the image data is output at 18 to a memory. If greater than the threshold, Q is increased to give a greater degree of compression and the comparison is repeated. As discussed above, if the image contains a large amount of fine detail, this process can lead to a result which is visually unsatisfactory.


Referring now to FIG. 2, similar items are denoted by similar reference numerals. In this case however, the original image 10 is passed through a scaler 20 before undergoing compression. The scaler 20 defaults to applying zero scaling so that its output 22 is an image which is 1:1 with the input image 10. However, if the result of the comparison at 16 is such that a Q above a predetermined value would be required, the scaler 20 is operated to scale down the input image to have a smaller number of pixels to reduce the pixel resolution of the image. As one example, an input image which contains 1024 by 736 pixels might be reduced to 676 by 486 pixels.


The overall result of such an operation is that the reproduced image has a lower pixel resolution but significantly less compression artifacts, whereby the subjective visual quality to the end user is much more acceptable. The predetermined limit value of Q can readily be determined empirically.


The use of a scaler in this manner is a particularly convenient approach, as many image sensors and cameras incorporate a scaler as a standard facility, frequently for the purpose of matching a standard image sensor to a variety of screen sizes (for example in mobile phones). Therefore, in many instances it is possible to incorporate the illustrated scaler in existing devices with no or minimal extra circuitry.



FIG. 3 illustrates a modification in which the scaler 20 is not controlled by the compression factor Q, but in accordance with light level L. Lower light levels cause the image signal to contain more noise across the image, and also noise on individual pixels which can cause undesirably high levels of compression. The effect of this can be reduced by scaling to a lower pixel resolution before compression.



FIG. 4 illustrates a further modification in which scaling is controlled by both Q and L. A measurement of incident light level can readily be derived from pixel values of the image sensor itself, or from a separate light intensity sensor.


Although described with reference to JPEG compression of still images, the illustrated scaler may be applied to other types of image compression, for example GIF or PNG. The illustrated scaler could also be applied to video compression such as MPEG, but this would require the scaling to be reversed at the viewing end.


The illustrated apparatus may conveniently be implemented within the signal processing circuitry of a solid state image sensor, or of a camera, where the appropriate means for scaling and for compression will already be present. This is particularly useful for applications with limited memory available, such as cameras in mobile phones. The requisite circuitry can be formed in a co-processor arranged for operation with the image sensing IC, for example. It is also to be appreciated that the illustrated scaler can also be applied in other situations, such as in image processing or editing on a PC.

Claims
  • 1-13. (canceled)
  • 14. A method of forming a compressed image comprising: (a) subjecting image data representing a source image to a compression algorithm having a controllable degree of compression to form a compressed image;(b) comparing a data size of the compressed image with a limit value; and(c) if the data size of the compressed image exceeds the limit value, then increasing the degree of compression and repeating steps (a) and (b);(d) the source image being selectively scaled to a reduced pixel resolution before being subjected to the compression algorithm.
  • 15. A method according to claim 14, wherein the source image is selectively scaled when the increased degree of compression is above a threshold.
  • 16. A method according to claim 14, wherein the source image is selectively scaled when a light level is below a threshold.
  • 17. A method according to claim 14, wherein the compression algorithm comprises a still image compression algorithm.
  • 18. A method according to claim 14, wherein the compression algorithm comprises a JPEG algorithm.
  • 19. A method according to claim 14, wherein the method is carried out within a digital camera.
  • 20. An image compression system comprising: an image compressor for forming a compressed image from image data representing a source image by applying a compression algorithm having a controllable degree of compression;a comparer for comparing a data size of the compressed image with a limit value, and for generating a compression control signal if the data size of the compressed image exceeds the limit value to increase the degree of compression; anda scaler interposed between the source image and said image compressor for selectively scaling the source image to a reduced pixel resolution.
  • 21. An image compression system according to claim 20, wherein said comparer generates the compression control signal when the degree of compression is above a threshold; and wherein said scaler is coupled to said comparer for receiving the compression control signal for selectively scaling the source image.
  • 22. An image compression system according to claim 20, further comprising a light intensity measurer for measuring a light intensity; and wherein said scaler selectively scales the source image when the measured light intensity is below a threshold.
  • 23. An image compression system according to claim 20, wherein the compression algorithm comprises a still image compression algorithm.
  • 24. An image compression system according to claim 20, wherein the compression algorithm comprises a JPEG algorithm.
  • 25. An image compression system according to claim 20, where said scaler, said image compressor and said comparer are configured so that the image compression system is a processor.
  • 26. An apparatus comprising: an image sensor providing a source image; andan image compression system coupled to said image sensor and comprising an image compressor for forming a compressed image from image data representing the source image by applying a compression algorithm having a controllable degree of compression,a comparer for comparing a data size of the compressed image with a limit value, and for generating a compression control signal if the data size of the compressed image exceeds the limit value to increase the degree of compression, anda scaler interposed between said image sensor and said image compressor for selectively scaling the source image to a reduced pixel resolution.
  • 27. An apparatus according to claim 26, wherein said comparer generates the compression control signal when the degree of compression is above a threshold; and wherein said scaler is coupled to said comparer for selectively scaling the source image.
  • 28. An apparatus according to claim 26, further comprising a light intensity measurer for measuring a light intensity; and wherein said scaler selectively scales the source image when the measured light intensity is below a threshold.
  • 29. An apparatus according to claim 26, wherein the compression algorithm comprises a still image compression algorithm.
  • 30. An apparatus according to claim 26, wherein the compression algorithm comprises a JPEG algorithm.
  • 31. An apparatus according to claim 26, wherein said image sensor and said image compression system are configured so that the apparatus is a camera.
  • 32. An apparatus according to claim 31, wherein the camera is integrated in a mobile phone.
Priority Claims (1)
Number Date Country Kind
06270076 . 0 Aug 2006 EP regional