A restoring picture filtering method performed by a decoding apparatus, comprising: calculating the activity of an image for a target region of a reconstructed picture; determining the directivity of the image for the target region; selecting a particular filter within a filter set by detecting an index of the particular filter in the filter set, wherein a filter shape of the particular filter having the index is corresponding to the activity and the directivity for the target region; and performing in-loop filtering on the reconstructed picture by using the selected filter, characterized in that wherein the activity of the image for the target region is calculated by using a sum or a weighted sum of the vertical activity and the horizontal activity of the image for the target region, wherein the directivity of the image for the target region is determined by using a comparison between the vertical activity and the horizontal activity of the image for the target region, wherein the vertical activity of the image for the target region is calculated by using the vertical change degrees of samples in the target region, wherein the horizontal activity of the image for the target region is calculated by using the horizontal change degrees of samples in the target region, wherein a first sample, a second sample, a third sample, and a fourth sample are included in the target region, wherein a fifth sample and a sixth sample are peripheral samples of the target region, wherein the first sample, the second sample, the third sample, the fourth sample, the fifth sample, and the sixth sample are samples of same row sequentially arranged in the reconstructed picture, wherein the vertical activity or the horizontal activity of the image for the target region is calculated by using a following equation, c + d * 3 + b + e * 2 + a + f wherein, when the vertical activity of the image for the target region is calculated by using the equation, 'a' represents the vertical change degree of the first sample, 'b' represents the vertical change degree of the second sample, 'c' represents the vertical change degree of the third sample, 'd' represents the vertical change degree of the fourth sample, 'e' represents the vertical change degree of the fifth sample, and 'f' represents the vertical change degree of the sixth sample, wherein, when the horizontal activity of the image for the target region is calculated by using the equation, 'a' represents the horizontal change degree of the first sample, 'b' represents the horizontal change degree of the second sample, 'c' represents the horizontal change degree of the third sample, 'd' represents the horizontal change degree of the fourth sample, 'e' represents the horizontal change degree of the fifth sample, and 'f' represents the horizontal change degree of the sixth sample. calculating the activity of an image for a target region of a reconstructed picture; determining the directivity of the image for the target region; selecting a particular filter within a filter set by detecting an index of the particular filter in the filter set, wherein a filter shape of the particular filter having the index is corresponding to the activity and the directivity for the target region; and performing in-loop filtering on the reconstructed picture by using the selected filter, characterized in that wherein the activity of the image for the target region is calculated by using a sum or a weighted sum of the vertical activity and the horizontal activity of the image for the target region, wherein the directivity of the image for the target region is determined by using a comparison between the vertical activity and the horizontal activity of the image for the target region, wherein the vertical activity of the image for the target region is calculated by using the vertical change degrees of samples in the target region, wherein the horizontal activity of the image for the target region is calculated by using the horizontal change degrees of samples in the target region, wherein a first sample, a second sample, a third sample, and a fourth sample are included in the target region, wherein a fifth sample and a sixth sample are peripheral samples of the target region, wherein the first sample, the second sample, the third sample, the fourth sample, the fifth sample, and the sixth sample are samples of same row sequentially arranged in the reconstructed picture, wherein the vertical activity or the horizontal activity of the image for the target region is calculated by using a following equation, c + d * 3 + b + e * 2 + a + f wherein, when the vertical activity of the image for the target region is calculated by using the equation, 'a' represents the vertical change degree of the first sample, 'b' represents the vertical change degree of the second sample, 'c' represents the vertical change degree of the third sample, 'd' represents the vertical change degree of the fourth sample, 'e' represents the vertical change degree of the fifth sample, and 'f' represents the vertical change degree of the sixth sample, wherein, when the horizontal activity of the image for the target region is calculated by using the equation, 'a' represents the horizontal change degree of the first sample, 'b' represents the horizontal change degree of the second sample, 'c' represents the horizontal change degree of the third sample, 'd' represents the horizontal change degree of the fourth sample, 'e' represents the horizontal change degree of the fifth sample, and 'f' represents the horizontal change degree of the sixth sample.