Image processing method and image processing apparatus
An image processing method of performing filtering on image blocks using a plurality of deblocking filters having different filter strengths includes: a first parameter calculating step of calculating a first parameter indicating a boundary strength; a second parameter calculating step of calculating a second parameter indicating a limit value for each of the deblocking filters, based on the first parameter and a quantization parameter; and a selecting step of selecting a deblocking filter to be used in the filtering from among the deblocking filters, using one or more threshold values which are determined based on the second parameter.
1. An image decoding method involving filtering of image blocks using a plurality of deblocking filters having different filter strengths, the image decoding method comprising:
a first calculating step of calculating a boundary strength between two adjacent image blocks;
a second calculating step of calculating a parameter indicating an output range for each of the deblocking filters, using a linear sum of the boundary strength and a quantization parameter;
a selecting step of selecting a deblocking filter to be used in the filtering from among the deblocking filters, using one or more threshold values which are determined based on the parameter;
a filtering step of filtering the two blocks using the selected deblocking filter; and
a decoding step of decoding the image by generating a reconstructed image including the filtered two blocks,
wherein a value of the parameter to be calculated is larger when a value of the boundary strength is larger.
2. An image decoding apparatus which performs decoding involving filtering of image blocks using a plurality of deblocking filters having different filter strengths, the image decoding apparatus comprising:
a first calculating unit configured to calculate a boundary strength between two adjacent image blocks;
a second calculating unit configured to calculate a parameter indicating an output range for each of the deblocking filters, using a linear sum of the boundary strength and a quantization parameter;
a selecting unit configured to select a deblocking filter to be used in the filtering from among the deblocking filters, using one or more threshold values which are determined based on the parameter;
a filtering unit configured to filter the two blocks using the selected deblocking filter; and
a decoding unit configured to decode the image by generating a reconstructed image including the filtered two blocks,
wherein a value of the parameter to be calculated is larger when a value of the boundary strength is larger.
3. An image decoding apparatus which performs decoding involving filtering of image blocks using a plurality of deblocking filters having different filter strengths, the image decoding apparatus comprising:
at least one processor; and
storage accessible by the at least one processor;
the at least one processor executing the following steps using the storage:
a first calculating step of calculating a boundary strength between two adjacent image blocks;
a second calculating step of calculating a parameter indicating an output range for each of the deblocking filters, using a linear sum of the boundary strength and a quantization parameter;
a selecting step of selecting a deblocking filter to be used in the filtering from among the deblocking filters, using one or more threshold values which are determined based on the parameter;
a filtering step of filtering the two blocks using the selected deblocking filter; and
a decoding step of decoding the image by generating a reconstructed image including the filtered two blocks,
wherein a value of the parameter to be calculated is larger when a value of the boundary strength is larger.