Method and apparatus for performing adaptive filtering on reference pixels based on size relationship of current block and reference block
View Patent ↗Disclosed is a method for encoding and decoding an image by applying different filtering strength to reference pixels based on a size relationship between a current block and each reference block such that a prediction block for the current block is constructed using reference pixels which are filtered adaptively according to their properties.
1. An image decoding method for adaptively filtering a reference pixel, the image decoding method comprising:
configuring reference pixels belonging to a neighboring block adjacent to a current block;
determining, based on a product of a width and a height of the current block, whether to perform filtering on the configured reference pixels,
based on the product being greater than a predetermined threshold, filtering the configured reference pixels and generating a prediction block for the current block by performing intra-prediction using the filtered reference pixels; and
based on the product being less than or equal to the predetermined threshold, generating the prediction block for the current block by performing the intra-prediction without filtering the configured reference pixels,
wherein the predetermined threshold is 32.
2. The image decoding method of claim 1 , wherein whether to perform the filtering is determined by further considering a prediction mode of the current block.
3. An image encoding method for adaptively filtering a reference pixel, the image encoding method comprising:
configuring reference pixels belonging to a neighboring block adjacent to a current block;
determining, based on a product of a width and a height of the current block, whether to perform filtering on the configured reference pixels;
based on the product being greater than a predetermined threshold, filtering the configured reference pixels and generating a prediction block for the current block by performing intra-prediction using the filtered reference pixels; and
based on the product being less than or equal to the predetermined threshold, generating the prediction block for the current block by performing the intra-prediction without filtering the configured reference pixels,
wherein the predetermined threshold is 32.
4. The image encoding method of claim 3 , wherein whether to perform the filtering is determined by further considering a prediction mode of the current block.
5. A non-transitory computer readable medium having stored thereon instructions that when executed by a processor perform a method including:
configuring reference pixels belonging to a neighboring block adjacent to a current block;
determining, based on a product of a width and a height of the current block, whether to perform filtering on the configured reference pixels,
based on the product being greater than a predetermined threshold, filtering the configured reference pixels and generating a prediction block for the current block by performing intra-prediction using the filtered reference pixels; and
based on the product being less than or equal to the predetermined threshold, generating the prediction block for the current block by performing the intra-prediction without filtering the configured reference pixels,
wherein the predetermined threshold is 32.