Abstract:
A method (300) of compressing a digital image including a matrix of elements each one consisting of at least one component of different type representing a pixel, the method comprising the steps of splitting (340) the digital image into a plurality of blocks and calculating, for each block, a group of DCT coefficients for the components of each type, and quantizing (350a-355a) the DCT coefficients of each group using a corresponding quantization table scaled by a gain factor for achieving a target compression factor; the method also comprises the steps of further quantizing (350-355) the DCT coefficients of each group using the corresponding quantization table scaled by a pre-set factor, arranging (360) the further quantized DCT coefficients in a zig-zig vector, calculating (365-370) a basic compression factor provided by the quantization table scaled by the pre-set factor as a first function of the zigzag vector, and estimating (375) the gain factor as a second function of the basic compression factor, the second function being determined experimentally according to the target compression factor.
Abstract:
A method (400) of compressing a digital image including a matrix of elements each one consisting of a plurality of digital components of different type representing a pixel, the method comprising the steps of providing (410-430) an incomplete digital image wherein at least one component is missing in each element, obtaining (433-435) the digital image from the incomplete digital image, splitting (455) the digital image into blocks and calculating, for each block, a group of DCT coefficients for the components of each type, and quantizing (460-465) the DCT coefficients of each group using a corresponding quantization table scaled by a gain factor; the method further comprises the steps of determining (440) at least one energy measure of the incomplete digital image and estimating (445-450) the gain factor as a function of the at least one energy measure, the function being determined experimentally according to a target compression factor.
Abstract:
A method (400) of compressing a digital image including a matrix of elements each one consisting of a plurality of digital components of different type representing a pixel, the method comprising the steps of splitting (455) the digital image into a plurality of blocks and calculating, for each block, a group of DCT coefficients for the components of each type, and quantizing (460-465) the DCT coefficients of each block using a corresponding quantization table scaled by a gain factor for achieving a target compression factor; the method further comprises the steps of determining (440) at least one energy measure of the digital image, and estimating (441-450) the gain factor as a function of the at least one energy measure, the function being determined experimentally according to the target compression factor.