Image compression method, image compression device and mobile terminal

An image compression and image compression technology, applied in the field of image processing, can solve the problems of low compression efficiency, low color number, poor display effect, etc., and achieve the effect of reducing image file size

Active Publication Date: 2015-11-18
ALIBABA (CHINA) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this image compression method, since the color number of the image itself is not considered, but a preset unified compression parameter is used to compress images with different or even greatly different color numbers, it is easy to cause either the number of colors to be set too high and the compression Inefficient, or the number of colors is too low to display well, so it can't achieve a good balance between file size and realistic effect

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image compression method, image compression device and mobile terminal
  • Image compression method, image compression device and mobile terminal
  • Image compression method, image compression device and mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0038] figure 1 A flow chart of the image compression method according to the first embodiment of the present invention is shown.

[0039] Such as figure 1 As shown, in the process of image compression, in order to set the appropriate compression color parameters according to the number of colors of the image itself, it is first necessary to perform image edge detection on the image to be compressed to detect the edge of the image to be compressed, so as to determine the non-linearity of the image to be compressed. edge portion (step S110).

[0040] Edge is the most basic feature of an image, and it refers to a collection of pixels with step-change or roof-like changes in pixel grayscale around the image. It exists between objects and backgrounds, objects and objects, regions and regions, and primitives and primitives. , is an important basis for image segmentation and recognition.

[0041] Because the image formats of GIF and PNG are suitable for compressing simple images ...

no. 2 example

[0073] Figure 9 A flow chart of the image compression method according to the second embodiment of the present invention is shown.

[0074] Such as Figure 9 As shown, firstly, in step S910, image edge detection is performed on the image to be compressed to determine the non-edge portion of the image to be compressed.

[0075] Then, in step S920, for the determined non-edge part, based on the pixel color of each pixel in the non-edge part, the pixels in the non-edge part are grouped into a plurality of similar color pixel sets, each similar Color The color of a pixel set is a color chosen from among the pixel colors in the set. In an example of this embodiment, among the plurality of groups of similar color pixel sets in each non-edge portion, the pixel color difference between any two pixels in any two similar color pixel sets is greater than or equal to The predetermined threshold, and the difference between the pixel colors of any two pixels in any set of similarly colo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

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.

Description

technical field [0001] The present invention relates to the technical field of image processing, and more specifically, to a method and device for image compression by dividing similar color regions and adjusting the number of colors used for image compression, and a mobile terminal with the device. Background technique [0002] With the development of information technology, people are increasingly using more vivid and intuitive forms such as images and even videos to replace traditional text to record and transmit information, and the amount of information is also increasing. Due to the data of images and videos The amount of data is very large, which brings a lot of inconvenience to storage and transmission. Therefore, both transmission and storage need to effectively compress the data. [0003] Image compression is the application of data compression technology to digital images. Its purpose is to reduce redundant information in image data, so as to store and transmit da...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04N1/64G06T7/00
CPCG06T9/00H04N1/642
Inventor 梁捷周志明
Owner ALIBABA (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products