Adaptive filtering based upon boundary strength
View Patent ↗Adjacent regions are identified in an image. Coding parameters for the adjacent regions are identified. Selective filtering is performed at the region between the identified adjacent regions.
1. A method for at least one of encoding and decoding a digital image with an encoding or decoding apparatus, comprising:
identifying adjacent regions in said digital image;
determining, for said adjacent regions, whether each region is intra coded;
determining whether or not to filter, with a filter of said apparatus, at least a portion of digital image data in said regions proximate a boundary between said adjacent regions based on whether at least one of said adjacent regions is intra coded, where said determining whether or not to filter includes determining whether or not to filter said portion of digital image data based on motion vectors associated with said adjacent regions;
establishing a boundary strength of said boundary by
setting said boundary strength to a first value in response to at least one of said adjacent regions being intra coded; and
setting said boundary strength to a a second value, which is less than the first value in response to
both said adjacent regions being not intra coded;
neither of said adjacent regions having a non-zero transform coefficient; and
either the absolute value of the difference of horizontal components of motion vectors in said adjacent regions or the absolute value of the difference of vertical components of motion vectors in said adjacent regions being greater than or equal to a predetermined threshold value; and
controlling a strength of said filter according to said boundary strength such that, in response to at least one of said adjacent regions being intra coded, the strength of the filter for the boundary is always stronger than the filter for other cases.
2. The method of claim 1 , establishing further comprising setting boundary strength to a third value when said adjacent regions are inter coded and at least one of said adjacent regions contains non zero transform coefficients.
3. The method of claim 1 , where filtering includes selectively adjusting pixel values of non-correlated image pixels within said regions.
4. The method of claim 1 , where controlling a strength of said filter includes controlling a permitted range of adjustment to pixel values of non-correlated image pixels within said regions.
5. An encoder for encoding an image, comprising:
an identifier portion that identifies adjacent regions in said image;
a condition examiner portion that determines whether each of said adjacent regions is intra coded;
a selective filter that determines whether or not to filter at least a portion of said regions proximate a boundary between said adjacent regions based on whether at least one of said adjacent regions is intra coded, where said determining whether or not to filter includes determining whether or not to filter said portion of digital image data based on motion vectors associated with said adjacent regions; and
a determiner portion that determines a boundary strength of said boundary such that
the boundary strength is a first value when at least one of said adjacent regions are intra coded; and
the boundary strength is a second value. which is less than the first value when:
both said adjacent regions are not intra coded;
neither of said adjacent regions has a non-zero transform coefficient; and
either the absolute value of the difference of horizontal components of motion vectors in said adjacent regions or the absolute value of the difference of vertical components of motion vectors in said adjacent regions being greater than or equal to a predetermined threshold value; and
where the selective filter selectively filters with a strength based on the boundary strength such that when at least one of said adjacent regions is intra coded. the filter for the boundary is always stronger than the filter for other cases.
6. The encoder of claim 5 , wherein said boundary strength is a third value when said adjacent regions are inter coded and at least one of said adjacent regions contains non zero transform coefficients.
7. The encoder of claim 5 , wherein said selective filter adjusts pixel values of non-correlated image pixels within said regions.
8. The encoder of claim 5 , where the strength of the selective filter determines the permitted range of adjustment to pixel values of non-correlated image pixels within said regions.
9. A decoder for decoding an image, comprising:
an identifier portion that identifies adjacent regions in said image;
a condition examiner portion that determines whether each of said adjacent regions is intra coded; and
a selective filter that determines whether or not to filter at least a portion of said regions proximate a boundary between said adjacent regions based on whether at least one of said adjacent regions is intra coded, where said determining whether or not to filter includes determining whether or not to filter said portion of digital image data based on motion vectors associated with said adjacent regions; and
a determiner portion that determines a boundary strength of said boundary such that said boundary strength is a first value when at least one of said adjacent regions are intra coded; and
the boundary strength is a second value, which is less than the first value when:
both said adjacent regions are not intra coded;
neither of said adjacent regions has a non-zero transform coefficient: and
either the absolute value of the difference of horizontal components of motion vectors in said adjacent regions or the absolute value of the difference of vertical components of motion vectors in said adjacent regions greater than or equal to a predetermined threshold value; and
where the selective filter selectively filters with a strength based on the boundary strength such that when at least one of said adjacent regions is intra coded, the filter for the boundary is always stronger than the filter for other cases.
10. The decoder of claim 9 , wherein said boundary strength is a third value when said adjacent regions are inter coded and at least one of said adjacent regions contains non zero transform coefficients.
11. The decoder of claim 9 , wherein said selective filter adjusts pixel values of non-correlated image pixels within said regions.
12. The decoder of claim 9 , where the strength of the selective filter determines the permitted range of adjustment to pixel values of non-correlated image pixels within said regions.