IMAGE ENCODING/DECODING METHOD AND DEVICE, AND RECORDING MEDIUM STORING BITSTREAM
The present invention relates to an image encoding and decoding method. An image decoding method for the same includes: determining a reference sample of a current block; performing filtering for the reference sample on the basis of a feature of an area where the reference sample is included; and performing intra-prediction by using the reference sample for which filtering is performed.
1 . A method of decoding an image, the method comprising:
determining a reference sample of a current block;
performing filtering for the reference sample on the basis of a feature of an area where the reference sample is included; and
performing intra-prediction by using the reference sample for which filtering is performed.
2 . The method of claim 1 , wherein the feature of the area where the reference sample is included is any one of a homogeneous area, an edge area, and a false edge area.
3 . The method of claim 2 , wherein in the performing of filtering for the reference sample, filtering is performed by using a smoothing filter when the feature of the area where the reference sample is included is the homogeneous area.
4 . The method of claim 2 , wherein in the performing of filtering for the reference sample, filtering is performed by using an edge-preserving filter when the feature of the area where the reference sample is included is the edge area.
5 . The method of claim 2 , wherein in the performing of filtering for the reference sample, filtering is performed by excluding a sample determined to be noise when the feature of the area where the reference sample is included is the false edge area.
6 . The method of claim 1 , wherein the feature of the area where the reference sample is included is determined on the basis of a degree of homogeneity of the area.
7 . The method of claim 1 , further comprising: determining whether or not to perform filtering for the reference sample on the basis of at least one of a size of the current block, a form of the current block, an intra-prediction mode of the current block, a division depth of the current block, and a pixel component of the current block, wherein the performing of filtering for the reference sample is performed on the basis of the determined result.
8 . The method of claim 1 , wherein the performing of filtering for the reference sample includes:
determining a filter length on the basis of at least one of a size of the current block, a form of the current block, an intra-prediction mode of the current block, a division depth of the current block, and a pixel component of the current block; and
performing filtering for the reference sample on the basis of the determined filter length.
9 . The method of claim 1 , wherein the reference sample of the current block is at least one of at least one reconstructed sample line positioned at a left side of the current block and at least one reconstructed sample line positioned at an upper side of the current block.
10 . A method of encoding an image, the method comprising:
determining a reference sample of a current block;
performing filtering for the reference sample on the basis of a feature of an area where the reference sample is included; and
performing intra-prediction by using the reference sample for which filtering is performed.
11 . The method of claim 10 , wherein the feature of the area where the reference sample is included is any one of a homogeneous area, an edge area, and a false edge area.
12 . The method of claim 11 , wherein in the performing of filtering for the reference sample, filtering is performed by using a smoothing filter when the feature of the area where the reference sample is included is the homogeneous area.
13 . The method of claim 11 , wherein in the performing of filtering for the reference sample, filtering is performed by using an edge-preserving filter when the feature of the area where the reference sample is included is the edge area.
14 . The method of claim 11 , wherein in the performing of filtering for the reference sample, filtering is performed by excluding a pixel determined to be noise when the feature of the area where the reference sample is included is the false edge area.
15 . The method of claim 10 , wherein the feature of the area where the reference sample is included is determined on the basis of a degree of homogeneity of the area.
16 . The method of claim 10 , further comprising:
determining whether or not to perform filtering for the reference sample on the basis of at least one of a size of the current block, a form of the current block, an intra-prediction mode of the current block, a division depth of the current block, and a pixel component of the current block, wherein the filtering for the reference sample is performed on the basis of the determined result.
17 . The method of claim 10 , wherein the performing of filtering for the reference sample includes:
determining a filter length on the basis of at least one of a size of the current block, a form of the current block, an intra-prediction mode of the current block, a division depth of the current block, and a pixel component of the current block; and
performing filtering for the reference sample on the basis of the determined filter length.
18 . The method of claim 10 , wherein the reference sample of the current block is at least one of at least one reconstructed sample line positioned at a left side of the current block, and at least one reconstructed sample line positioned at an upper side of the current block.
19 . A recording medium storing a bitstream generated by an image encoding method, wherein the method includes:
determining a reference sample of a current block;
performing filtering for the reference sample on the basis of a feature of an area where the reference sample is included; and
performing intra-prediction by using the reference sample for which filtering is performed.