US 12,081,750 B2
Coding and decoding method and apparatus and devices therefor
Fangdong Chen, Hangzhou (CN); Xiaoqiang Cao, Hangzhou (CN); and Yucheng Sun, Hangzhou (CN)
Assigned to Hangzhou Hikvision Digital Technology Co., Ltd., Hangzhou (CN)
Appl. No. 18/264,036
Filed by HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO., LTD., Hangzhou (CN)
PCT Filed Feb. 22, 2022, PCT No. PCT/CN2022/077298
§ 371(c)(1), (2) Date Aug. 2, 2023,
PCT Pub. No. WO2022/179504, PCT Pub. Date Sep. 1, 2022.
Claims priority of application No. 202110204154.2 (CN), filed on Feb. 23, 2021.
Prior Publication US 2024/0048695 A1, Feb. 8, 2024
Int. Cl. H04N 19/86 (2014.01); H04N 19/117 (2014.01); H04N 19/157 (2014.01); H04N 19/182 (2014.01); H04N 19/186 (2014.01); H04N 19/70 (2014.01)
CPC H04N 19/117 (2014.11) [H04N 19/157 (2014.11); H04N 19/182 (2014.11); H04N 19/186 (2014.11); H04N 19/70 (2014.11); H04N 19/86 (2014.11)] 19 Claims
OG exemplary drawing
 
1. A decoding method, comprising:
in response to determining that a current pixel point in a current block satisfies an enable condition of an enhanced refinement mode, determining a gradient value of the current pixel point based on an original pixel value of the current pixel point and an original pixel value of a surrounding pixel point of the current pixel point;
based on the gradient value of the current pixel point and the original pixel value of the current pixel point, determining a refined pixel value of the current pixel point;
wherein based on the gradient value of the current pixel point and the original pixel value of the current pixel point, determining the refined pixel value of the current pixel point comprises:
based on the gradient value of the current pixel point, the original pixel value of the current pixel point, a first refinement threshold, a second refinement threshold, a first refinement offset value and a second refinement offset value, determining the refined pixel value of the current pixel point; wherein
in response to determining that the gradient value of the current pixel point is greater than the first refinement threshold, the refined pixel value of the current pixel point is determined based on the original pixel value of the current pixel point and the first refinement offset value;
in response to determining that the gradient value of the current pixel point is less than the second refinement threshold, the refined pixel value of the current pixel point is determined based on the original pixel value of the current pixel point and the second refinement offset value.