Image compression method and apparatus, and intelligent terminal and computer-readable storage medium
AssigneeShenzhen Tcl Digital Technology Ltd.
InventorsJie Wang, Daxue Xia
Life of this patent
Estimating the term…
Abstract
Disclosed are an image compression method and apparatus, and an intelligent terminal and a computer-readable storage medium. The method comprises: obtaining a target image, and determining reference pixel points corresponding to target pixel points; determining pixel difference values of the target pixel points and the reference pixel points corresponding to same; determining, according to the pixel difference values, point compression data corresponding to the target pixel points; and compressing the target pixel points according to the point compression data to obtain image compression data of the target image.
Claims17
An image compression method, comprising:
- obtaining a target image, and determining a reference pixel point corresponding to each target pixel point in the target image;
- for each target pixel point, determining a pixel difference value between the target pixel point and the reference pixel point corresponding to the target pixel point;
- determining point compression data corresponding to each target pixel point according to the pixel difference value corresponding to each target pixel point;
- and
- compressing each target pixel point according to the point compression data corresponding to each target pixel point to obtain image compression data of the target image;
- wherein the determining the reference pixel point corresponding to each target pixel point in the target image comprises:
- selecting the target pixel point in the first column of each row from the target image as the reference pixel point of remaining target pixel points in that row;
- or
- selecting the target pixel point in the first row of each column from the target image as the reference pixel point of remaining target pixel points in that column;
- or
- selecting any target pixel point from the target image as the reference pixel point of remaining target pixel points.
An image compression apparatus, comprising:
- a processor;
- and
- a storage connected with the processor, the storage storing a program executable by the processor to execute a method, the method comprising:
- obtaining a target image, and determining a reference pixel point corresponding to each target pixel point in the target image;
- determining a pixel difference value between the target pixel point and the reference pixel point corresponding to the target pixel point for each target pixel point;
- determining point compression data corresponding to each target pixel point according to the pixel difference value corresponding to each target pixel point;
- and
- compressing each target pixel point according to the point compression data corresponding to each target pixel point to obtain image compression data of the target image;
- wherein the determining the reference pixel point corresponding to each target pixel point in the target image comprises:
- selecting the target pixel point in the first column of each row from the target image as the reference pixel point of remaining target pixel points in that row;
- or
- selecting the target pixel point in the first row of each column from the target image as the reference pixel point of remaining target pixel points in that column;
- or
- selecting any target pixel point from the target image as the reference pixel point of remaining target pixel points.
A non-transitory computer-readable storage medium, storing an image compression program, which is executed by a processor to perform the steps of:
- obtaining a target image, and determining a reference pixel point corresponding to each target pixel point in the target image;
- for each target pixel point, determining a pixel difference value between the target pixel point and the reference pixel point corresponding to the target pixel point;
- determining point compression data corresponding to each target pixel point according to the pixel difference value corresponding to each target pixel point;
- and
- compressing each target pixel point according to the point compression data corresponding to each target pixel point to obtain image compression data of the target image;
- wherein the determining the reference pixel point corresponding to each target pixel point in the target image comprises:
- selecting the target pixel point in the first column of each row from the target image as the reference pixel point of remaining target pixel points in that row;
- or
- selecting the target pixel point in the first row of each column from the target image as the reference pixel point of remaining target pixel points in that column;
- or
- selecting any target pixel point from the target image as the reference pixel point of remaining target pixel points.
Dependencies are inferred from the claim text.