Method and Device for Coding Image and Method and Device for Decoding Image
Abstract
The disclosure discloses a method and device for coding an image and a method and device for decoding an image. The coding includes that: a coding block is partitioned into L micro-blocks, wherein L is a preset number of micro-block partitions in the decoding block; Displacement Vectors (DVs) between the micro-blocks and reference micro-blocks in a preset reconstructed pixel sample set are determined, wherein the DVs are vectors between pixel positions of the reference micro-blocks and pixel positions of the micro-blocks in a preset pixel coordinate system; and the DVs are coded and written into a bitstream. By the methods and the devices, the problem of low image compression and decompression efficiency during image coding and decoding in the related technology is solved, and the effect of improving image coding and decoding efficiency is further achieved.
Claims
exact text as granted — not AI-modified1 .- 12 . (canceled)
13 . A method for coding an image, comprising:
partitioning a coding block into L micro-blocks, wherein L is a preset number of micro-block partitions in the coding block; determining Displacement Vectors (DVs) between the micro-blocks and reference micro-blocks in a preset reconstructed pixel sample set, wherein the DVs are vectors between pixel positions of the reference micro-blocks and pixel positions of the micro-blocks in a preset pixel coordinate system; and coding and writing the DVs into a bitstream.
14 . (canceled)
15 . The method as claimed in claim 13 , wherein before coding and writing the DVs into the bitstream, the method further comprises at least one of the followings:
performing individual transformation on the DVs of the micro-blocks in the coding block; and performing global transformation on the DVs of the micro-blocks in the coding block or individual transformation values obtained by performing individual transformation on the DVs of the micro-blocks.
16 . The method as claimed in claim 15 , wherein performing individual transformation on the DVs of the micro-blocks in the coding block comprises:
correcting the DVs according to a first preset offset; and/or, performing global transformation on the DVs of the micro-blocks in the coding block or the individual transformation values obtained by performing individual transformation on the DVs of the micro-blocks comprises: determining a first predicted value of the first DV or the first individual transformation value in the DVs of the micro-blocks or the individual transformation values; determining a difference value between the first DV or the first individual transformation value and the corresponding first predicted value; and determining difference values between the other DVs or individual transformation values except the first DV or the first individual transformation value and previous DVs or individual transformation values of the other DVs or individual transformation values.
17 . The method as claimed in claim 16 , wherein before correcting the DVs according to the first preset offset, the method further comprises: determining the first preset offset in at least one of the following manners:
determining the first preset offset according to the DVs; and determining the first preset offset according to coded coding blocks or coding parameters of coded micro-blocks.
18 . (canceled)
19 . The method as claimed in claim 13 , wherein before determining the DVs between the micro-blocks and the reference micro-blocks in the preset reconstructed pixel sample set, the method further comprises:
determining the reference micro-blocks corresponding to the micro-blocks according to a predetermined rule, wherein the predetermined rule comprises at least one of: lossless matching under which matching residual values are 0 and lossy matching under which the matching residual values are not 0, wherein the matching residual values are difference values between pixel numerical values of the reference micro-blocks and pixel numerical values of the micro-blocks.
20 . (canceled)
21 . A method for decoding an image, comprising:
decoding a bitstream of a decoding block to obtain Displacement Vectors (DVs) of micro-blocks, wherein the decoding block comprises L, which is a preset number of micro-block partitions in the decoding block, micro-blocks, and the DVs are vectors between pixel positions of reference micro-blocks and pixel positions of the micro-blocks; determining the pixel positions of the reference micro-blocks corresponding to the micro-blocks in a preset reconstructed pixel sample set according to the DVs of the micro-blocks and the pixel positions of the micro-blocks; and decoding the micro-blocks according to the pixel positions of the reference micro-blocks.
22 . (canceled)
23 . The method as claimed in claim 21 , wherein decoding the bitstream of the decoding block to obtain the DVs corresponding to the micro-blocks comprises:
parsing the bitstream of the decoding block to obtain parameters of the DVs corresponding to the micro-blocks; obtaining the DVs of the micro-blocks according to the parameters in at least one of manners as follows: performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block to obtain the DVs of the micro-blocks; performing individual transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block or parameters obtained by performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block to obtain the DVs of the micro-blocks.
24 . The method as claimed in claim 23 , wherein performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block to obtain the DVs of the micro-blocks comprises:
determining a second predicted value of the first parameter in the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block; determining a sum of the first parameter and the second predicted value; and determining a sum of the other parameters except the first parameter and the sum determined corresponding to the previous parameter.
25 . The method as claimed in claim 23 , wherein performing individual transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block or the parameters obtained by performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block to obtain the DVs of the micro-block comprises:
correcting, according to a second preset offset, the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block or the parameters obtained by performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block.
26 . The method as claimed in claim 25 , wherein before correcting, according to the second preset offset, the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block or the parameters obtained by performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block, the method further comprises:
determining the second preset offset in at least one of the following manners: determining the second preset offset according to the parameters of the DVs; determining the second preset offset according to decoded micro-blocks or decoding parameters of decoded decoding blocks.
27 . (canceled)
28 . A device for coding an image, comprising:
a partitioning component, configured to partition a coding block into L micro-blocks, wherein L is a preset number of micro-block partitions in the coding block; a first determination component, configured to determine Displacement Vectors (DVs) between the micro-blocks and reference micro-blocks in a preset reconstructed pixel sample set, wherein the DVs are vectors between pixel positions of the reference micro-blocks and pixel positions of the micro-blocks in a preset pixel coordinate system; and a first coding component, configured to code and write the DVs into a bitstream.
29 . (canceled)
30 . The device as claimed in claim 28 , further comprising at least one of:
an individual transformation component, configured to perform individual transformation on the DVs of the micro-blocks in the coding block; and a global transformation component, configured to perform global transformation on the DVs of the micro-blocks in the coding block or individual transformation values obtained by performing individual transformation on the DVs of the micro-blocks.
31 . The device as claimed in claim 30 , wherein the individual transformation component comprises:
a correction element, configured to correct the DVs according to a first preset offsets and/or, the global transformation component comprises: a second determination element, configured to determine a first predicted value of the first DV or the first individual transformation value in the DVs of the micro-blocks or the individual transformation values; a third determination element, configured to determine a difference value between the first DV or the first individual transformation value and the corresponding first predicted value; and a fourth determination element, configured to determine difference values between the other DVs or individual transformation values except the first DV or the first individual transformation value and previous DVs or individual transformation values of the other DVs or individual transformation values.
32 . The device according to claim 31 , wherein the individual transformation component further comprises: a first determination element, configured to determine the first preset offset in at least one of the following manners:
the first preset offset is determined according to the DVs; and the first preset offset is determined according to coded micro-blocks or coding parameters of coded coding blocks.
33 . (canceled)
34 . The device as claimed in claim 28 , further comprising:
a second determination component, configured to determine the reference micro-blocks corresponding to the micro-blocks according to a predetermined rule, wherein the predetermined rule comprises at least one of: lossless matching under which matching residual values are 0 and lossy matching under which the matching residual values are not 0, wherein the matching residual values are difference values between pixel numerical values of the reference micro-blocks and pixel numerical values of the micro-blocks.
35 . (canceled)
36 . A device for decoding an image, comprising:
a first decoding component, configured to decode a bitstream of a decoding block to obtain Displacement Vectors (DVs) of micro-blocks, wherein the decoding block comprises L, a preset number of micro-block partitions in the decoding block, micro-blocks, and the DVs are vectors between pixel positions of reference micro-blocks and pixel positions of the micro-blocks; a third determination component, configured to determine the pixel positions of the reference micro-blocks corresponding to the micro-blocks in a preset reconstructed pixel sample set according to the DVs of the micro-blocks and the pixel positions of the micro-blocks; and a second decoding component, configured to decode the micro-blocks according to the pixel positions of the reference micro-blocks.
37 . (canceled)
38 . The device as claimed in claim 36 , wherein the first decoding component comprises:
a parsing element, configured to parse the bitstream of the decoding block to obtain parameters of the DVs corresponding to the micro-blocks; an obtaining element, configured to obtain the DVs of the micro-blocks in at least one of manners as follows according to the parameters: global transformation is performed on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block to obtain the DVs of the micro-blocks; individual transformation is performed on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block or parameters obtained by performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block to obtain the DVs of the micro-blocks.
39 . The device as claimed in claim 38 , wherein the obtaining element comprises:
a first determination subelement, configured to determine a second predicted value of the first parameter in the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block; a second determination subelement, configured to determine a sum of the first parameter and the second predicted value; and a third determination subelement, configured to determine a sum of the other parameters except the first parameter and the sum determined corresponding to the previous parameter.
40 . The device as claimed in claim 38 , wherein the obtaining element comprises:
a correction subelement, configured to correct the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block or the parameters obtained by performing global transformation on the parameters corresponding to part or all of the DVs of the micro-blocks in the decoding block according to a second preset offset.
41 . The device as claimed in claim 40 , wherein the obtaining element further comprises: a fourth determination subelement, configured to determine the second preset offset in at least one of the following manners:
the second preset offset is determined according to the parameters of the DVs; the second preset offset is determined according to decoded micro-blocks or decoding parameters of decoded decoding blocks.
42 . (canceled)Join the waitlist — get patent alerts
Track US2017006285A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.