Image processing method, image compression device and mobile terminal
First Claim
1. An image compression method, comprising steps of:
- determining non-edge portions of an image to be compressed by performing an image edge detection on the image to be compressed;
dividing each of the determined non-edge portions into a plurality of connected domains of pixels according to color similarity of the pixels in the non-edge portion, wherein each of the connected domains of pixels is composed of a pixel selected during the division into the connected domains of pixels and pixels similar in color to and continuously adjacent to the selected pixel;
setting a color of each of the connected domains of pixels to a represented color, wherein the represented color is the color of the pixel selected during the division into the connected domains of pixels;
building a first compression list including a plurality of entries, wherein each entry corresponds to the represented color of each of the connected domains of pixels;
performing a color merging process on the entries in the first compression list to obtain a final image compression color list, wherein the represented colors of the connected domains of pixels which are not adjacent and having similar represented colors are modified to a same color; and
compressing the image to be compressed by using colors in the final image compression color list.
3 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides an image compression method, comprising: determining non-edge portions of an image to be compressed by performing an image edge detection on the image to be compressed; dividing each of non-edge portions into a plurality of connected domains of pixels according to color similarity of the pixels in the non-edge portion, wherein each of the connected domains of pixels is composed of a pixel selected during the division into the connected domains of pixels and the pixels similar in color to and continuously adjacent to the selected pixel; setting the color of each of the connected domains of pixels to be the color of the selected pixel; merging the colors of a plurality of divided connected domains of pixels according to similarity of the colors of the connected domains of pixels; and compressing the image to be compressed by using the merged colors. According to the method, the number of colors used for image compression can be determined according to the characteristics of the image, thus the file size of the compressed image can be effectively reduced with the display effect thereof kept substantially unchanged.
-
Citations
12 Claims
-
1. An image compression method, comprising steps of:
-
determining non-edge portions of an image to be compressed by performing an image edge detection on the image to be compressed; dividing each of the determined non-edge portions into a plurality of connected domains of pixels according to color similarity of the pixels in the non-edge portion, wherein each of the connected domains of pixels is composed of a pixel selected during the division into the connected domains of pixels and pixels similar in color to and continuously adjacent to the selected pixel; setting a color of each of the connected domains of pixels to a represented color, wherein the represented color is the color of the pixel selected during the division into the connected domains of pixels; building a first compression list including a plurality of entries, wherein each entry corresponds to the represented color of each of the connected domains of pixels; performing a color merging process on the entries in the first compression list to obtain a final image compression color list, wherein the represented colors of the connected domains of pixels which are not adjacent and having similar represented colors are modified to a same color; and compressing the image to be compressed by using colors in the final image compression color list. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An image compression device, comprising:
-
a non-edge portion determining unit for determining non-edge portions of an image to be compressed by performing an image edge detection on the image to be compressed; a connected-domain-of-pixels dividing unit for dividing each of the determined non-edge portions into a plurality of connected domains of pixels according to color similarity of the pixels in the non-edge portion, wherein each of the connected domains of pixels is composed of a pixel selected during the division into the connected domains of pixels and pixels similar in color to and continuously adjacent to the selected pixel; a color setting unit for setting a color of each of the connected domains of pixels to a represented color, wherein the represented color is the color of the pixel selected during the division into the connected domains of pixels; a color merging unit for building a first compression list including a plurality of entries, wherein each entry corresponds to the represented color of each of the connected domains of pixels; and
performing a color merging process on the entries in the first compression list to obtain a final image compression color list, wherein the represented colors of the connected domains of pixels which are not adjacent and having similar represented colors are modified to a same color; anda compressing unit for compressing the image to be compressed by using colors in the final image compression color list. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification