IMAGE PROCESSING APPARATUS, COMPRESSION METHOD, AND STORAGE MEDIUM FOR STORING PROGRAMS THEREOF
First Claim
1. An image processing apparatus, comprising:
- an input unit configured to input image data;
a division unit configured to divide the image data inputted by the input unit into blocks, each of the blocks has M×
N pixels (where M and N are integers greater than or equal to
2);
a color-reduction unit configured to perform first reduction of the number of colors of each of the blocks from M×
N to each number of colors, the each number of colors is from one to (M×
N−
1);
an acquisition unit configured to acquire differences between pixel values for each of the blocks after the first color reduction by the color-reduction unit, and pixel values for each of the blocks before the first color reduction;
a generation unit configured to generate a first table in which a plurality of thresholds are associated with either the amount of data to be reduced or the amount of data to be remained, based on the differences acquired by the acquisition unit;
a specifying unit configured to specify a threshold at which the amount of data after compression of the image data drops to or below a target data amount, based on the first table; and
a compression unit configured to perform second reduction of the number of colors of each of the blocks based on the threshold specified by the specifying unit, and to generate compressed data based on the image data after the second color reduction.
1 Assignment
0 Petitions
Accused Products
Abstract
Image data is divided into blocks, each block has M×N pixels, the number of colors of each block undergoes reduction from M×N to each number of one to (M×N−1). Differences between pixel values for each block after color reduction, and pixel values for each block before first color reduction. A first table in which thresholds are associated with either the amount of data to be reduced or the amount of data to be remained, is acquired based on the acquired difference. A threshold at which the amount of data after compression drops to or below a target data amount is specified, based on the first table, and compressed data is generated based on image data after second color reduction using the specified threshold.
35 Citations
11 Claims
-
1. An image processing apparatus, comprising:
-
an input unit configured to input image data; a division unit configured to divide the image data inputted by the input unit into blocks, each of the blocks has M×
N pixels (where M and N are integers greater than or equal to
2);a color-reduction unit configured to perform first reduction of the number of colors of each of the blocks from M×
N to each number of colors, the each number of colors is from one to (M×
N−
1);an acquisition unit configured to acquire differences between pixel values for each of the blocks after the first color reduction by the color-reduction unit, and pixel values for each of the blocks before the first color reduction; a generation unit configured to generate a first table in which a plurality of thresholds are associated with either the amount of data to be reduced or the amount of data to be remained, based on the differences acquired by the acquisition unit; a specifying unit configured to specify a threshold at which the amount of data after compression of the image data drops to or below a target data amount, based on the first table; and a compression unit configured to perform second reduction of the number of colors of each of the blocks based on the threshold specified by the specifying unit, and to generate compressed data based on the image data after the second color reduction. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A compression method, comprising:
-
an input step of inputting image data; a division step of dividing the image data inputted by the input unit into blocks, each of the blocks has M×
N pixels (where M and N are integers greater than or equal to
2);a color reduction step of performing first reduction of the number of colors of each of the blocks divided from M×
N to each number of colors, the each number of colors is from one to (M×
N−
1);an acquisition step of acquiring differences between pixel values for each of the blocks after the first color reduction in the color reduction step, and a pixel value for each of the blocks before the first color reduction; a generation step of generating a first table in which a plurality of thresholds are associated with either the amount of data to be reduced or the amount of data to be remained, based on the differences acquired by the acquisition unit; a specifying step of specifying a threshold at which the amount of data after compression of the image data drops to or below a target data amount, based on the first table; and a compression step of performing second reduction of the number of colors of each of the blocks based on the threshold specified in the specifying step, and generating compressed data based on the image data after the second color reduction.
-
-
11. A computer-readable storage medium that stores programs for causing a computer to function as:
-
a division unit configured to divide image data into blocks, each of the blocks has M×
N pixels (where M and N are integers greater than or equal to
2);a color-reduction unit configured to perform first reduction of the number of colors of each of the blocks from M×
N to each number of colors, the each number of colors is from one to (M×
N−
1);an acquisition unit configured to acquire differences between pixel values for each of the blocks after the first color reduction by the color-reduction unit, and a pixel values for each of the blocks before the first color reduction; a generation unit configured to generate a first table in which a plurality of thresholds are associated with either the amount of data to be reduced or the amount of data to be remained, based on the differences acquired by the acquisition unit; a specifying unit configured to specify a threshold at which the amount of data after compression of the image data drops to or below a target data amount, based on the first table; and a compression unit configured to perform second reduction of the number of colors of each of the blocks based on the threshold specified by the specifying unit, and to generate compressed data based on the image data after the second color reduction.
-
Specification