Method and apparatus for sparsity-based de-artifact filtering for video encoding and decoding

09723330 · 2017-08-01

Assignee

Inventors

Cpc classification

International classification

Abstract

Methods and apparatus are provided for sparsity-based de-artifact filtering for video encoding and decoding. An apparatus includes an encoder (400) for encoding at least a portion of an image by grouping regions within the portion based on a grouping metric, transforming the grouped regions, adaptively performing de-artifact filtering on the transformed regions using a de-artifacting filter (413) included in the encoder, inverse transforming the de-artifacted regions to create replacement regions, and restoring the replacement regions to positions with the image from which the regions were taken prior to the grouping.

Claims

1. An apparatus, comprising: an encoder encoding at least a portion of an image using de-artifact filtering, said encoder comprising a de-artifacting filter that performs the de-artifact filtering by grouping regions within the portion based on dimensions and characteristics of the region or portion, transforming the grouped regions, adaptively performing the de-artifact filtering on the transformed regions, inverse transforming the de-artifacted regions to create replacement regions, and restoring the replacement regions to positions with the image from which the regions were taken prior to the grouping, wherein multiple estimates of the same pixel are obtained from overlapping regions and, for each pixel, adaptive sparsity-based filtering is used to fuse multiple estimates from redundant representations of the overlapping regions, and wherein a type and a strength of the de-artifact filtering is adaptively selected responsive to characteristics of at least one of quantization noise statistics, coding modes and motion information, local coding conditions, and compression requirements.

2. The apparatus of claim 1, wherein the de-artifacting filter is useable in any of an in-loop configuration and an out-of-loop configuration.

3. The apparatus of claim 2, wherein the de-artifacting filter replaces a deblocking filter when said de-artifacting filter is applied the in-loop configuration.

4. The apparatus of claim 2, wherein the encoder includes a deblocking filter, and said de-artifacting filter is configured for use subsequent to the deblocking filter.

5. The apparatus of claim 1, wherein the de-artifacting filter is a Wiener filter.

6. The apparatus of claim 1, wherein the replacement regions are combined using weights prior to restoring.

7. The apparatus of claim 6, wherein the grouped regions are transformed to obtain transform sparsity values there for, and the weights are determined responsive to the transform sparsity values.

8. A method performed in a video encoder, comprising: encoding at least a portion of an image using de-artifact filtering, wherein said de-artifact filtering comprises: grouping regions within the portion based on dimensions and characteristics of the region or portion; transforming the grouped regions; adaptively performing de-artifact filtering on the transformed regions using a de-artifacting filter; inverse transforming the de-artifacted regions to create replacement regions; and restoring the replacement regions to positions with the image from which the regions were taken prior to the grouping, wherein multiple estimates of the same pixel are obtained from overlapping regions and, for each pixel, adaptive sparsity-based filtering is used to fuse multiple estimates from redundant representations of the overlapping regions, and, wherein a type and a strength of the de-artifact filtering is adaptively selected responsive to characteristics of at least one of quantization noise statistics, coding modes and motion information, local coding conditions, and compression requirements.

9. The method of claim 8, further comprising configuring the de-artifacting filter for use in any of an in-loop configuration and an out-of-loop configuration.

10. The method of claim 9, further comprising replacing a deblocking filter with the de-artifacting filter when the de-artifacting filter is applied the in-loop configuration.

11. The method of claim 9, wherein the encoder includes a deblocking filter, and the method further comprises configuring the de-artifacting filter for use subsequent to the deblocking filter.

12. The method of claim 8, further comprising combining the replacement regions using weights prior to said restoring step.

13. The method of claim 12, wherein the grouped regions are transformed to obtain transform sparsity values there for, and the weights are determined responsive to the transform sparsity values.

14. The method of claim 8, further comprising applying a secondary filter before or after the de-artifacting filter.

15. An apparatus, comprising: a decoder decoding at least a portion of an image using de-artifact filtering, said decoder comprising a de-artifact filter for performing the de-artifact filtering by grouping regions within the portion based on dimensions and characteristics of the region or portion, transforming the grouped regions, adaptively performing the de-artifact filtering on the transformed regions, inverse transforming the de-artifacted regions to create replacement regions, and restoring the replacement regions to positions with the image from which the regions were taken prior to the grouping, wherein multiple estimates of the same pixel are obtained from overlapping regions and, for each pixel, adaptive sparsity-based filtering is used to fuse multiple estimates from redundant representations of the overlapping regions, and, wherein a type and a strength of the de-artifact filtering is adaptively selected responsive to characteristics of at least one of quantization noise statistics, coding modes and motion information, local coding conditions, and compression requirements.

16. The apparatus of claim 15, wherein the de-artifacting filter is useable in any of an in-loop configuration and an out-of-loop configuration.

17. The apparatus of claim 16, wherein the de-artifacting filter replaces a deblocking filter when said de-artifacting filter is applied the in-loop configuration.

18. The apparatus of claim 16, wherein the decoder includes a deblocking filter, and said de-artifacting filter is configured for use subsequent to the deblocking filter.

19. The apparatus of claim 15, wherein the de-artifacting filter is a Wiener filter.

20. The apparatus of claim 15, wherein the replacement regions are combined using weights prior to restoring.

21. The apparatus of claim 20, wherein the grouped regions are transformed to obtain transform sparsity values there for, and the weights are determined responsive to the transform sparsity values.

22. A method performed in a video decoder, comprising: decoding at least a portion of an image using de-artifact filtering, wherein said de-artifact filtering comprises: grouping regions within the portion based on dimensions and characteristics of the region or portion; transforming the grouped regions; adaptively performing the de-artifact filtering on the transformed regions using a de-artifacting filter; inverse transforming the de-artifacted regions to create replacement regions; and restoring the replacement regions to positions with the image from which the regions were taken prior to the grouping, wherein multiple estimates of the same pixel are obtained from overlapping regions and, for each pixel, adaptive sparsity-based filtering is used to fuse multiple estimates from redundant representations of the overlapping regions, and, wherein a type and a strength of the de-artifact filtering is adaptively selected responsive to characteristics of at least one of quantization noise statistics, coding modes and motion information, local coding conditions, and compression requirements.

23. The method of claim 22, further comprising configuring the de-artifacting filter for use in any of an in-loop configuration and an out-of-loop configuration.

24. The method of claim 23, further comprising replacing a deblocking filter with the de-artifacting filter when the de-artifacting filter is applied the in-loop configuration.

25. The method of claim 23, wherein the decoder includes a deblocking filter, and the method further comprises configuring the de-artifacting filter for use subsequent to the deblocking filter.

26. The method of claim 22, wherein the de-artifacting filter is a Wiener filter.

27. The method of claim 22, further comprising combining the replacement regions using weights prior to said restoring step.

28. The method of claim 27, wherein the grouped regions are transformed to obtain transform sparsity values there for, and the weights are determined responsive to the transform sparsity values.

29. A non-transitory computer-readable storage media having video signal data encoded thereupon executable by a computer for performing a method, the method comprising: encoding at least a portion of an image by an encoder using de-artifact filtering, said encoder comprising a de-artifacting filter that performs the de-artifact filtering by grouping regions within the portion based on dimensions and characteristics of the region or portion, transforming the grouped regions, adaptively performing de-artifact filtering on the transformed regions, inverse transforming the de-artifacted regions to create replacement regions, and restoring the replacement regions to positions with the image from which the regions were taken prior to the grouping, wherein multiple estimates of the same pixel are obtained from overlapping regions and, for each pixel, adaptive sparsity-based filtering is used to fuse multiple estimates from redundant representations of the overlapping regions, and, wherein a type and a strength of the de-artifact filtering is adaptively selected responsive to characteristics of at least one of quantization noise statistics, coding modes and motion information, local coding conditions, and compression requirements.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The present principles may be better understood in accordance with the following exemplary figures, in which:

(2) FIG. 1 is a block diagram showing a video encoder capable of performing video encoding in accordance with the MPEG-4 AVC Standard;

(3) FIG. 2 is a block diagram showing a video decoder capable of performing video decoding in accordance with the MPEG-4 AVC Standard;

(4) FIG. 3 is a block diagram showing the general framework of the kNN region-based sparsity denoising approach;

(5) FIG. 4 is a block diagram showing an exemplary video encoder having a de-artifacting filter in place of a deblocking filter, in accordance with an embodiment of the present principles;

(6) FIG. 5 is a block diagram showing an exemplary video decoder having a de-artifacting filter in place of a deblocking filter, in accordance with an embodiment of the present principles;

(7) FIG. 6 is a block diagram showing an exemplary video encoder having a de-artifacting filter configured subsequent to a deblocking filter, in accordance with an embodiment of the present principles;

(8) FIG. 7 is a block diagram showing an exemplary video decoder having a de-artifacting filter configured subsequent to a deblocking filter, in accordance with an embodiment of the present principles;

(9) FIG. 8 is a block diagram showing an exemplary video encoder having a de-artifacting filter configured as a post-processing filter, in accordance with an embodiment of the present principles;

(10) FIG. 9 is a block diagram showing an exemplary video decoder having a de-artifacting filter configured as a post-processing filter, in accordance with an embodiment of the present principles;

(11) FIG. 10 is a flow diagram showing an exemplary method for sparsity-based de-artifact filtering performed at an encoder, in accordance with an embodiment of the present principles; and

(12) FIG. 11 is a flow diagram showing an exemplary method for sparsity-based de-artifact filtering performed at a decoder, in accordance with an embodiment of the present principles.

DETAILED DESCRIPTION

(13) The present principles are directed to methods and apparatus for sparsity-based de-artifact filtering for video encoding and decoding.

(14) The present description illustrates the present principles. It will thus be appreciated that those skilled in the art will be able to devise various arrangements that, although not explicitly described or shown herein, embody the present principles and are included within its spirit and scope.

(15) All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the present principles and the concepts contributed by the inventor(s) to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions.

(16) Moreover, all statements herein reciting principles, aspects, and embodiments of the present principles, as well as specific examples thereof, are intended to encompass both structural and functional equivalents thereof. Additionally, it is intended that such equivalents include both currently known equivalents as well as equivalents developed in the future, i.e., any elements developed that perform the same function, regardless of structure.

(17) Thus, for example, it will be appreciated by those skilled in the art that the block diagrams presented herein represent conceptual views of illustrative circuitry embodying the present principles. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudocode, and the like represent various processes which may be substantially represented in computer readable media and so executed by a computer or processor, whether or not such computer or processor is explicitly shown.

(18) The functions of the various elements shown in the figures may be provided through the use of dedicated hardware as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functions may be provided by a single dedicated processor, by a single shared processor, or by a plurality of individual processors, some of which may be shared. Moreover, explicit use of the term “processor” or “controller” should not be construed to refer exclusively to hardware capable of executing software, and may implicitly include, without limitation, digital signal processor (“DSP”) hardware, read-only memory (“ROM”) for storing software, random access memory (“RAM”), and non-volatile storage.

(19) Other hardware, conventional and/or custom, may also be included. Similarly, any switches shown in the figures are conceptual only. Their function may be carried out through the operation of program logic, through dedicated logic, through the interaction of program control and dedicated logic, or even manually, the particular technique being selectable by the implementer as more specifically understood from the context.

(20) In the claims hereof, any element expressed as a means for performing a specified function is intended to encompass any way of performing that function including, for example, a) a combination of circuit elements that performs that function or b) software in any form, including, therefore, firmware, microcode or the like, combined with appropriate circuitry for executing that software to perform the function. The present principles as defined by such claims reside in the fact that the functionalities provided by the various recited means are combined and brought together in the manner which the claims call for. It is thus regarded that any means that can provide those functionalities are equivalent to those shown herein.

(21) Reference in the specification to “one embodiment” or “an embodiment” of the present principles, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment of the present principles. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment”, as well any other variations, appearing in various places throughout the specification are not necessarily all referring to the same embodiment.

(22) It is to be appreciated that the use of any of the following “/”, “and/or”, and “at least one of”, for example, in the cases of “A/B”, “A and/or B” and “at least one of A and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B). As a further example, in the cases of “A, B, and/or C” and “at least one of A, B, and C”, such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C). This may be extended, as readily apparent by one of ordinary skill in this and related arts, for as many items listed.

(23) Moreover, it is to be appreciated that while one or more embodiments of the present principles are described herein with respect to the MPEG-4 AVC standard, the present principles are not limited to solely this standard and, thus, may be utilized with respect to other video coding standards, recommendations, and extensions thereof, including extensions of the MPEG-4 AVC standard, while maintaining the spirit of the present principles.

(24) Further, as used herein, “high level syntax” refers to syntax present in the bitstream that resides hierarchically above the macroblock layer. For example, high level syntax, as used herein, may refer to, but is not limited to, syntax at the slice header level, Supplemental Enhancement Information (SEI) level, Picture Parameter Set (PPS) level, Sequence Parameter Set (SPS) level and Network Abstraction Layer (NAL) unit header level.

(25) Also, as used herein, the words “picture” and “image” are used interchangeably and refer to a still picture or a picture from a video sequence. As is known, a picture may be a frame or a field.

(26) Additionally, as used herein, “out-of-loop” refers to an element whose output would not impact the subsequent encoding or decoding of a particular picture, i.e., since such element would be outside the coding loop. Moreover, as used herein, “in-loop” refers to an element whose output would impact the subsequent encoding or decoding of a particular picture, i.e., since such element would be within the coding loop.

(27) As noted above, the present principles are directed to methods and apparatus for sparsity-based de-artifact filtering for video encoding and decoding.

(28) In an embodiment, a de-artifacting filter in accordance with the present principles may be configured to replace an existing deblocking filter in an encoder and/or decoder.

(29) Turning to FIG. 4, an exemplary video encoder having a de-artifacting filter in place of a deblocking filter is indicated generally by the reference numeral 400.

(30) The video encoder 400 includes a frame ordering buffer 410 having an output in signal communication with a non-inverting input of a combiner 485. An output of the combiner 485 is connected in signal communication with a first input of a transformer and quantizer 425. An output of the transformer and quantizer 425 is connected in signal communication with a first input of an entropy coder 445 and a first input of an inverse transformer and inverse quantizer 450. An output of the entropy coder 445 is connected in signal communication with a first non-inverting input of a combiner 490. An output of the combiner 490 is connected in signal communication with a first input of an output buffer 435.

(31) A first output of an encoder controller 405 is connected in signal communication with a second input of the frame ordering buffer 410, a second input of the inverse transformer and inverse quantizer 450, an input of a picture-type decision module 415, a first input of a macroblock-type (MB-type) decision module 420, a second input of an intra prediction module 460, a second input of a de-artifacting filter 465, a first input of a motion compensator 470, a first input of a motion estimator 475, and a second input of a reference picture buffer 480.

(32) A second output of the encoder controller 405 is connected in signal communication with a first input of a Supplemental Enhancement Information (SEI) inserter 430, a second input of the transformer and quantizer 425, a second input of the entropy coder 445, a second input of the output buffer 435, and an input of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 440.

(33) An output of the SEI inserter 430 is connected in signal communication with a second non-inverting input of the combiner 490.

(34) A first output of the picture-type decision module 415 is connected in signal communication with a third input of the frame ordering buffer 410. A second output of the picture-type decision module 415 is connected in signal communication with a second input of a macroblock-type decision module 420.

(35) An output of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 440 is connected in signal communication with a third non-inverting input of the combiner 490.

(36) An output of the inverse quantizer and inverse transformer 450 is connected in signal communication with a first non-inverting input of a combiner 419. An output of the combiner 419 is connected in signal communication with a first input of the intra prediction module 460 and a first input of the de-artifacting filter 465. An output of the de-artifacting filter 465 is connected in signal communication with a first input of a reference picture buffer 480. An output of the reference picture buffer 480 is connected in signal communication with a second input of the motion estimator 475 and a third input of the motion compensator 470. A first output of the motion estimator 475 is connected in signal communication with a second input of the motion compensator 470. A second output of the motion estimator 475 is connected in signal communication with a third input of the entropy coder 445.

(37) An output of the motion compensator 470 is connected in signal communication with a first input of a switch 497. An output of the intra prediction module 460 is connected in signal communication with a second input of the switch 497. An output of the macroblock-type decision module 420 is connected in signal communication with a third input of the switch 497. The third input of the switch 497 determines whether or not the “data” input of the switch (as compared to the control input, i.e., the third input) is to be provided by the motion compensator 470 or the intra prediction module 460. The output of the switch 497 is connected in signal communication with a second non-inverting input of the combiner 419 and an inverting input of the combiner 485.

(38) A first input of the frame ordering buffer 410 and an input of the encoder controller 405 are available as inputs of the encoder 400, for receiving an input picture. Moreover, a second input of the Supplemental Enhancement Information (SEI) inserter 430 is available as an input of the encoder 400, for receiving metadata. An output of the output buffer 435 is available as an output of the encoder 400, for outputting a bitstream.

(39) Turning to FIG. 5, an exemplary video decoder having a de-artifacting filter in place of a deblocking filter is indicated generally by the reference numeral 500.

(40) The video decoder 500 includes an input buffer 510 having an output connected in signal communication with a first input of the entropy decoder 545. A first output of the entropy decoder 545 is connected in signal communication with a first input of an inverse transformer and inverse quantizer 550. An output of the inverse transformer and inverse quantizer 550 is connected in signal communication with a second non-inverting input of a combiner 525. An output of the combiner 525 is connected in signal communication with a second input of a de-artifacting filter 565 and a first input of an intra prediction module 560. A second output of the de-artifacting filter 565 is connected in signal communication with a first input of a reference picture buffer 580. An output of the reference picture buffer 580 is connected in signal communication with a second input of a motion compensator 570.

(41) A second output of the entropy decoder 545 is connected in signal communication with a third input of the motion compensator 570 and a first input of the de-artifacting filter 565. A third output of the entropy decoder 545 is connected in signal communication with an input of a decoder controller 505. A first output of the decoder controller 505 is connected in signal communication with a second input of the entropy decoder 545. A second output of the decoder controller 505 is connected in signal communication with a second input of the inverse transformer and inverse quantizer 550. A third output of the decoder controller 505 is connected in signal communication with a third input of the de-artifacting filter 565. A fourth output of the decoder controller 505 is connected in signal communication with a second input of the intra prediction module 560, a first input of the motion compensator 570, and a second input of the reference picture buffer 580.

(42) An output of the motion compensator 570 is connected in signal communication with a first input of a switch 597. An output of the intra prediction module 560 is connected in signal communication with a second input of the switch 597. An output of the switch 597 is connected in signal communication with a first non-inverting input of the combiner 525.

(43) An input of the input buffer 510 is available as an input of the decoder 500, for receiving an input bitstream. A first output of the de-artifacting filter 565 is available as an output of the decoder 500, for outputting an output picture.

(44) In an embodiment, a de-artifacting filter in accordance with the present principles may be configured following an existing deblocking filter in an encoder and/or decoder.

(45) Turning to FIG. 6, an exemplary video encoder having a de-artifacting filter configured subsequent to a deblocking filter is indicated generally by the reference numeral 600.

(46) The video encoder 600 includes a frame ordering buffer 610 having an output in signal communication with a non-inverting input of a combiner 685. An output of the combiner 685 is connected in signal communication with a first input of a transformer and quantizer 625. An output of the transformer and quantizer 625 is connected in signal communication with a first input of an entropy coder 645 and a first input of an inverse transformer and inverse quantizer 650. An output of the entropy coder 645 is connected in signal communication with a first non-inverting input of a combiner 690. An output of the combiner 690 is connected in signal communication with a first input of an output buffer 635.

(47) A first output of an encoder controller 605 is connected in signal communication with a second input of the frame ordering buffer 610, a second input of the inverse transformer and inverse quantizer 650, an input of a picture-type decision module 615, a first input of a macroblock-type (MB-type) decision module 620, a second input of an intra prediction module 660, a second input of a deblocking filter 665, a second input of a de-artifacting filter 613, a first input of a motion compensator 670, a first input of a motion estimator 675, and a second input of a reference picture buffer 680.

(48) A second output of the encoder controller 605 is connected in signal communication with a first input of a Supplemental Enhancement Information (SEI) inserter 630, a second input of the transformer and quantizer 625, a second input of the entropy coder 645, a second input of the output buffer 635, and an input of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 640.

(49) An output of the SEI inserter 630 is connected in signal communication with a second non-inverting input of the combiner 690.

(50) A first output of the picture-type decision module 615 is connected in signal communication with a third input of the frame ordering buffer 610. A second output of the picture-type decision module 615 is connected in signal communication with a second input of a macroblock-type decision module 620.

(51) An output of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 640 is connected in signal communication with a third non-inverting input of the combiner 690.

(52) An output of the inverse quantizer and inverse transformer 650 is connected in signal communication with a first non-inverting input of a combiner 619. An output of the combiner 619 is connected in signal communication with a first input of the intra prediction module 660 and a first input of the deblocking filter 665. An output of the deblocking filter 665 is connected in signal communication with a first input of the de-artifacting filter 613. An output of the de-artifacting filter 613 is connected in signal communication with a first input of a reference picture buffer 680. An output of the reference picture buffer 680 is connected in signal communication with a second input of the motion estimator 675 and a third input of the motion compensator 670. A first output of the motion estimator 675 is connected in signal communication with a second input of the motion compensator 670. A second output of the motion estimator 675 is connected in signal communication with a third input of the entropy coder 645.

(53) An output of the motion compensator 670 is connected in signal communication with a first input of a switch 697. An output of the intra prediction module 660 is connected in signal communication with a second input of the switch 697. An output of the macroblock-type decision module 620 is connected in signal communication with a third input of the switch 697. The third input of the switch 697 determines whether or not the “data” input of the switch (as compared to the control input, i.e., the third input) is to be provided by the motion compensator 670 or the intra prediction module 660. The output of the switch 697 is connected in signal communication with a second non-inverting input of the combiner 619 and an inverting input of the combiner 685.

(54) A first input of the frame ordering buffer 610 and an input of the encoder controller 605 are available as inputs of the encoder 600, for receiving an input picture. Moreover, a second input of the Supplemental Enhancement Information (SEI) inserter 630 is available as an input of the encoder 600, for receiving metadata. An output of the output buffer 635 is available as an output of the encoder 600, for outputting a bitstream.

(55) Turning to FIG. 7, an exemplary video decoder encoder having a de-artifacting filter configured subsequent to a deblocking filter is indicated generally by the reference numeral 700.

(56) The video decoder 700 includes an input buffer 710 having an output connected in signal communication with a first input of the entropy decoder 745. A first output of the entropy decoder 745 is connected in signal communication with a first input of an inverse transformer and inverse quantizer 750. An output of the inverse transformer and inverse quantizer 750 is connected in signal communication with a second non-inverting input of a combiner 725. An output of the combiner 725 is connected in signal communication with a second input of a deblocking filter 765 and a first input of an intra prediction module 760. A second output of the deblocking filter 765 is connected in signal communication with a second input of a de-artifacting filter 713. An output of the de-artifacting filter 713 is connected in signal communication with a first input of a reference picture buffer 780. An output of the reference picture buffer 780 is connected in signal communication with a second input of a motion compensator 770.

(57) A second output of the entropy decoder 745 is connected in signal communication with a third input of the motion compensator 770 and a first input of the deblocking filter 765. A third output of the entropy decoder 745 is connected in signal communication with an input of a decoder controller 705. A first output of the decoder controller 705 is connected in signal communication with a second input of the entropy decoder 745. A second output of the decoder controller 705 is connected in signal communication with a second input of the inverse transformer and inverse quantizer 750. A third output of the decoder controller 705 is connected in signal communication with a third input of the deblocking filter 765 and a first input of the de-artifacting filter 713. A fourth output of the decoder controller 705 is connected in signal communication with a second input of the intra prediction module 760, a first input of the motion compensator 770, and a second input of the reference picture buffer 780.

(58) An output of the motion compensator 770 is connected in signal communication with a first input of a switch 797. An output of the intra prediction module 760 is connected in signal communication with a second input of the switch 797. An output of the switch 797 is connected in signal communication with a first non-inverting input of the combiner 725.

(59) An input of the input buffer 710 is available as an input of the decoder 700, for receiving an input bitstream. A first output of the deblocking filter 765 is available as an output of the decoder 700, for outputting an output picture.

(60) In an embodiment, a de-artifacting filter in accordance with the present principles may be configured as a post-processing filter in an encoder and/or decoder.

(61) Turning to FIG. 8, an exemplary video encoder having a de-artifacting filter configured as a post-processing filter is indicated generally by the reference numeral 800.

(62) The video encoder 800 includes a frame ordering buffer 810 having an output in signal communication with a non-inverting input of a combiner 885. An output of the combiner 885 is connected in signal communication with a first input of a transformer and quantizer 825. An output of the transformer and quantizer 825 is connected in signal communication with a first input of an entropy coder 845 and a first input of an inverse transformer and inverse quantizer 850. An output of the entropy coder 845 is connected in signal communication with a first non-inverting input of a combiner 890. An output of the combiner 890 is connected in signal communication with a first input of an output buffer 835.

(63) A first output of an encoder controller 805 is connected in signal communication with a second input of the frame ordering buffer 810, a second input of the inverse transformer and inverse quantizer 850, an input of a picture-type decision module 815, a first input of a macroblock-type (MB-type) decision module 820, a second input of an intra prediction module 860, a second input of a deblocking filter 865, a second input of a de-artifacting filter 813, a first input of a motion compensator 870, a first input of a motion estimator 875, and a second input of a reference picture buffer 880.

(64) A second output of the encoder controller 805 is connected in signal communication with a first input of a Supplemental Enhancement Information (SEI) inserter 830, a second input of the transformer and quantizer 825, a second input of the entropy coder 845, a second input of the output buffer 835, and an input of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 840.

(65) An output of the SEI inserter 830 is connected in signal communication with a second non-inverting input of the combiner 890.

(66) A first output of the picture-type decision module 815 is connected in signal communication with a third input of the frame ordering buffer 810. A second output of the picture-type decision module 815 is connected in signal communication with a second input of a macroblock-type decision module 820.

(67) An output of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 840 is connected in signal communication with a third non-inverting input of the combiner 890.

(68) An output of the inverse quantizer and inverse transformer 850 is connected in signal communication with a first non-inverting input of a combiner 819. An output of the combiner 819 is connected in signal communication with a first input of the intra prediction module 860 and a first input of the deblocking filter 865. A first output of the deblocking filter 865 is connected in signal communication with a first input of the de-artifacting filter 813. A second output of the deblocking filter 865 is connected in signal communication with a first input of a reference picture buffer 880. An output of the reference picture buffer 880 is connected in signal communication with a second input of the motion estimator 875 and a third input of the motion compensator 870. A first output of the motion estimator 875 is connected in signal communication with a second input of the motion compensator 870. A second output of the motion estimator 875 is connected in signal communication with a third input of the entropy coder 845.

(69) An output of the motion compensator 870 is connected in signal communication with a first input of a switch 897. An output of the intra prediction module 860 is connected in signal communication with a second input of the switch 897. An output of the macroblock-type decision module 820 is connected in signal communication with a third input of the switch 897. The third input of the switch 897 determines whether or not the “data” input of the switch (as compared to the control input, i.e., the third input) is to be provided by the motion compensator 870 or the intra prediction module 860. The output of the switch 897 is connected in signal communication with a second non-inverting input of the combiner 819 and an inverting input of the combiner 885.

(70) A first input of the frame ordering buffer 810 and an input of the encoder controller 805 are available as inputs of the encoder 800, for receiving an input picture. Moreover, a second input of the Supplemental Enhancement Information (SEI) inserter 830 is available as an input of the encoder 800, for receiving metadata. An output of the output buffer 835 and an output of the de-artifacting filter 813 are each available as outputs of the encoder 800, for outputting a bitstream.

(71) Turning to FIG. 9, another exemplary video decoder having a de-artifacting filter configured as a post-processing filter is indicated generally by the reference numeral 900.

(72) The video decoder 900 includes an input buffer 910 having an output connected in signal communication with a first input of the entropy decoder 945. A first output of the entropy decoder 945 is connected in signal communication with a first input of an inverse transformer and inverse quantizer 950. An output of the inverse transformer and inverse quantizer 950 is connected in signal communication with a second non-inverting input of a combiner 925. An output of the combiner 925 is connected in signal communication with a second input of a deblocking filter 965 and a first input of an intra prediction module 960. A second output of the deblocking filter 965 is connected in signal communication with a second input of a de-artifacting filter 913. A first output of the deblocking filter 965 is connected in signal communication with a first input of a reference picture buffer 980. An output of the reference picture buffer 980 is connected in signal communication with a second input of a motion compensator 970.

(73) A second output of the entropy decoder 945 is connected in signal communication with a third input of the motion compensator 970 and a first input of the deblocking filter 965. A third output of the entropy decoder 945 is connected in signal communication with an input of a decoder controller 905. A first output of the decoder controller 905 is connected in signal communication with a second input of the entropy decoder 945. A second output of the decoder controller 905 is connected in signal communication with a second input of the inverse transformer and inverse quantizer 950. A third output of the decoder controller 905 is connected in signal communication with a third input of the deblocking filter 965 and a first input of the de-artifacting filter 913. A fourth output of the decoder controller 905 is connected in signal communication with a second input of the intra prediction module 960, a first input of the motion compensator 970, and a second input of the reference picture buffer 980.

(74) An output of the motion compensator 970 is connected in signal communication with a first input of a switch 997. An output of the intra prediction module 960 is connected in signal communication with a second input of the switch 997. An output of the switch 997 is connected in signal communication with a first non-inverting input of the combiner 925.

(75) An input of the input buffer 910 is available as an input of the decoder 900, for receiving an input bitstream. A first output of the deblocking filter 965 is available as an output of the decoder 900, for outputting an output picture.

(76) Thus, in accordance with the present principles, embodiments are described herein relating to a new de-artifacting framework in which a sparsity-based denoising approach is utilized. In various embodiments, the de-artifacting may involve a de-artifacting filter that replaces an existing deblocking filter (FIGS. 4 and 5), that is configured subsequent to an existing deblocking filter (FIGS. 6 and 7), and that is configured as a post-processing filter (FIGS. 8 and 9).

(77) In an embodiment, the new de-artifacting framework is implemented in the transform domain, where de-artifact filtering is adaptively selected and applied. In a preferred embodiment, a transform domain Wiener filter is used. We call this methodology a region-based sparsity de-artifacting framework, using adaptive filtering in the transform domain. One significant advantage of the present principles is that the required overhead is very small. Compared to previous approaches, we do not need to search thresholds (as was required by the sixth prior art approach) and additionally, we do not need to send Wiener filter coefficients (as was required by the seventh prior art approach). Various embodiments are illustrated and described, which are differentiated by transform dimensions, for example. The present principles are aimed at reducing quantization artifacts presented in video compression, and improving both the objective and subjective performance in video compression encoders and decoders.

(78) In an embodiment, we propose a region (or patch or area) based sparsity de-artifacting framework, with adaptive filtering utilized in the transform domain. The framework is divided into two stages. In the first stage, we decompose (transform) the overlapped regions (patches, areas) of the video signal into the frequency domain by transforms based on the region dimensions, such as 2D, 3D or 4D transforms. In a preferred embodiment, a transform-domain Wiener filter is then applied to the noisy transform coefficients, followed by an inverse transform. After that, all the processed regions are restored to their original positions. In another embodiment, multiple estimates of the same pixel are obtained due to region overlapping. In the second stage, for each pixel, adaptive sparsity-based filtering is used to fuse (or otherwise combine or weight) multiple estimates from the redundant representations of the signal. The de-artifacting framework also needs to take video coding (or quantization) statistics into account.

(79) In one embodiment, the overlapped patch is achieved by a sliding window. In another embodiment, the overlapped patch is achieved by a kNN non-local search. The search can be within the current picture or spatial-temporal neighboring pictures. The dimensions of the patch can be 2D or 3D, and so forth. As is well-known in the art of video compression, 2-D refers to the spatial dimensions of a picture, frame, slice, and so forth. 3-D additionally adds the temporal element for consideration between more than one temporal picture, slice, or frame. The applied transform(s) can be 2D, 3D, 4D, and so forth, based on the dimensions of the region, patch, or area, and on the characteristics of the region, patch, or area. The fourth dimension element comes about due to the added dimension of the grouping of the regions, patches, or areas. In one embodiment, we can use 2D/3D/4D DCT. In another embodiment, we can use 2D/3D/4D FFT. Moreover, it is to be appreciated that the present principles are not limited to any particular transform, such as, for example, FFT or DCT and, thus, any other transforms can be applied too, such as wavelet transforms, while maintaining the spirit of the present principles.

(80) For the embodiment utilizing a Wiener filter, it is implemented as an element-by-element multiplication in transform domain as in the following equation, where λ is the coefficient in transform domain and {circumflex over (σ)}.sub.n is estimated noise of reconstructed pixels, Λ(λ) is filtered coefficient of λ:

(81) Λ ( λ ) = λ max ( λ 2 - σ ^ n 2 , 0 ) max ( λ 2 - σ ^ n 2 , 0 ) + σ ^ n 2

(82) In the above formula, only {circumflex over (σ)}.sub.n is an unknown element. {circumflex over (σ)}.sub.n is computed as the standard deviation of the difference between the original signal and the reconstructed signal. In one embodiment, {circumflex over (σ)}.sub.n is computed using the mean of absolute difference (MAD). {circumflex over (σ)}.sub.n can be coded as a high/macroblock level syntax and sent to the decoder. In one embodiment, {circumflex over (σ)}.sub.n is sent as a high level syntax such as, for example, in a network abstraction layer (NAL) unit header, a sequence parameter set (SPS), a picture parameter set (PPS), view parameter set (VPS), slice header, and so forth. In another embodiment, {circumflex over (σ)}.sub.n is coded in the macroblock level as overhead. It is to be appreciated that while one or more embodiments described herein use a Wiener filter, the present principles are not limited solely to Wiener filters and, thus any other filter that can be applied in an adaptive manner based on some performance metric or parameter can be used in accordance with the present principles, while maintaining the spirit of the present principles.

(83) For the fusion in the second stage, in one embodiment, the weight is approximated as the number of non-zero coefficients in the transform or other sparsity related values. In another embodiment, simple averaging can be used. Of course, the present principles are not limited to the preceding approaches with respect to the second state and, thus, other approaches may also be used in the second stage, while maintaining the spirit of the present principles.

(84) The de-artifacting filter needs to take into consideration the characteristics of quantization noise statistics, coding modes and motion information, local coding conditions, compression requirements, and the original signal. The filters are both spatially and temporally adapted to optimize video quality and/or coding cost. In one embodiment, to avoid an over-smoothing effect, we do not filter pixels in certain conditions, such as in SKIP mode or DIRECT mode, or for blocks without a residue that have a small motion difference with respect to neighboring blocks. In another embodiment, if the above filter is not strong enough to remove all artifacts, a secondary filter is implemented before or after the de-artifacting filter. The secondary filter may be, for example, but is not limited to, a lowpass filter or a second round of de-artifacting filter. Moreover, in an embodiment, the secondary filter may be applied for intra macroblocks after de-artifact filtering.

(85) As noted above, the de-artifacting filter in accordance with the present principles can be used in different kinds of coding diagrams. In one embodiment, it can be used as an out-of-loop filter (i.e., a post-filter, as shown in FIGS. 8 and 9). In another embodiment, it can be used as an in-loop filter, either replacing the deblocking filter in the MPEG-4 AVC encoder and/or decoder (as shown in FIGS. 4 and 5), or can be applied together with deblocking filtering (as shown in FIGS. 6 and 7).

(86) Exemplary slice header syntax corresponding to one or more embodiments of the present principles is shown as TABLE 1.

(87) TABLE-US-00001 TABLE 1 Slice_header( ){ C Descriptor . . . Deart_filter_present_flag 2 u(1) if(deart_filter_present_flag){ filter_selection_type 2 u(2) noise_power 2 u(10) } . . . }

(88) The semantics of some of the syntax elements in TABLE 1 are as follows:

(89) deart_filter_present_flag equal to 1 specifies that a set of syntax elements controlling the characteristics of the de-artifacting filter is present in the slice header. deart_filter_present_flag equal to 0 specifies that a set of syntax elements controlling the characteristics of the de-artifacting filter is not present in the slice header and their inferred values are not in effect.

(90) filter_selection_type specifies the filter configuration used in de-artifacting. filter_selection_type equal to 0 specifies that direction-adaptive de-artifact filtering shall be disabled. filter_selection_type equal to 1 specifies that out-of-loop de-artifact filtering is used. filter_selection_type equal to 2 specifies that in-loop de-artifact filtering without deblocking filter is used. filter_selection_type equal to 3 specifies that in-loop de-artifact filtering with deblocking filtering is used.

(91) noise_power specifies the value of noise power used for the Wiener filter.

(92) Turning to FIG. 10, an exemplary method for sparsity-based de-artifact filtering performed at an encoder is indicated generally by the reference numeral 1000. The method 1000 includes a start block 1005 that passes control to a function block 1010. The function block 1010 performs initialization (which, in an embodiment, involves estimating filtering parameters), and passes control to a loop limit block 1015. The loop limit block begins a loop over all processing pixels, and passes control to a function block 1020. The function block 1020 performs kNN patch clustering for each processing pixel, and passes control to a function block 1025. The function block 1025 enforces a sparsity constraint, and passes control to a loop limit block 1030. The loop limit block 1030 ends the loop over all the processing pixels, and passes control to a loop limit block 1035. The loop limit block 835 begins a loop over all processing pixels, and passes control to a function block 1040. The function block 1040 generates multiple hypotheses fusion for each pixel, and passes control to a loop limit block 1045. The loop limit block 1045 ends the loop over all pixels, and passes control to a function block 1050. The function block 850 encodes syntax, and passes control to an end block 1099.

(93) The function block 1025 involves function blocks 1025A, 1025B, and 1025C. The function block 1025A performs a transform, and passes control to the function block 1025B. The function block 1025B performs filtering, and passes control to the function block 1025C. The function block 1025C performs an inverse transform.

(94) The processing pixels at least referenced with respect to method 1000 may be less than all of the pixels of a picture, region, block, and so forth, since not all pixels need to be processed to reduce complexity given the overlapping regions commonly present in video.

(95) Turning to FIG. 11, an exemplary method for sparsity-based de-artifact filtering performed at a decoder is indicated generally by the reference numeral 1100. The method 1100 includes a start block 1105 that passes control to a function block 1110. The function block 1110 parses syntax (to, for example, collect filtering parameters), and passes control to a loop limit block 1115. The loop limit block 1115 begins a loop over all processing pixels, and passes control to a function block 1120. The function block 1120 performs kNN patch clustering for each processing pixel, and passes control to a function block 1125. The function block 1125 enforces a sparsity constraint, and passes control to a loop limit block 1130. The loop limit block 1130 ends the loop over all processing pixels, and passes control to a loop limit block 1135. The loop limit block 1135 begins a loop over all pixels, and passes control to a function block 1140. The function block 1140 performs multiple hypotheses fusion for each pixel, and passes control to a loop limit block 945. The loop limit block 1145 ends the loop over all pixels, and passes control to an end block 1199.

(96) The function block 1125 involves function blocks 1125A, 1195B, and 1125C. The function block 1125A performs a transform, and passes control to the function block 1125B. The function block 1125B performs filtering, and passes control to the function block 1125C. The function block 1125C performs an inverse transform.

(97) A description will now be given of some of the many attendant advantages/features of the present invention, some of which have been mentioned above. For example, one advantage/feature is an apparatus having an encoder for encoding at least a portion of an image by grouping regions within the portion based on a grouping metric, transforming the grouped regions, adaptively performing de-artifact filtering on the transformed regions using a de-artifacting filter included in the encoder, inverse transforming the de-artifacted regions to create replacement regions, and restoring the replacement regions to positions with the image from which the regions were taken prior to the grouping.

(98) Another advantage/feature is the apparatus having the encoder as described above, wherein the de-artifacting filter is configurable for use in any of an in-loop configuration and an out-of-loop configuration.

(99) Yet another advantage/feature is the apparatus having the encoder wherein the de-artifacting filter is configurable for use in any of an in-loop configuration and an out-of-loop configuration as described above, wherein the de-artifacting filter replaces a deblocking filter when the de-artifacting filter is applied the in-loop configuration.

(100) Still another advantage/feature is the apparatus having the encoder wherein the de-artifacting filter is configurable for use in any of an in-loop configuration and an out-of-loop configuration as described above, wherein the encoder includes a deblocking filter, and the de-artifacting filter is configured for use subsequent to the deblocking filter.

(101) Moreover, another advantage/feature is the apparatus having the encoder as described above, wherein the regions of the image correspond to two or more dimensions.

(102) Further, another advantage/feature is the apparatus having the encoder as described above, wherein the grouped regions are transformed using a transform capable of operating in two or more dimensions.

(103) Also, another advantage/feature is the apparatus having the encoder as described above, wherein the de-artifacting filter is a Wiener filter.

(104) Additionally, another advantage/feature is the apparatus having the encoder as described above, wherein the replacement regions are combined using weights prior to restoring.

(105) Moreover, another advantage/feature is the apparatus having the encoder wherein the replacement regions are combined using weights prior to restoring as described above, wherein the grouped regions are transformed to obtain transform sparsity values there for, and the weights are determined responsive to the transform sparsity values.

(106) Further, another advantage/feature is the apparatus having the encoder as described above, wherein at least one of a type and a strength of the de-artifact filtering is adaptively selected responsive to at least one of a quantization noise metric, a coding mode metric, a motion information metric, a local coding condition metric, and a compression requirements metric.

(107) Also, another advantage/feature is the apparatus having the encoder as described above, wherein a secondary filter is applied before or after the de-artifacting filter.

(108) These and other features and advantages of the present principles may be readily ascertained by one of ordinary skill in the pertinent art based on the teachings herein. It is to be understood that the teachings of the present principles may be implemented in various forms of hardware, software, firmware, special purpose processors, or combinations thereof.

(109) Most preferably, the teachings of the present principles are implemented as a combination of hardware and software. Moreover, the software may be implemented as an application program tangibly embodied on a program storage unit. The application program may be uploaded to, and executed by, a machine comprising any suitable architecture. Preferably, the machine is implemented on a computer platform having hardware such as one or more central processing units (“CPU”), a random access memory (“RAM”), and input/output (“I/O”) interfaces. The computer platform may also include an operating system and microinstruction code. The various processes and functions described herein may be either part of the microinstruction code or part of the application program, or any combination thereof, which may be executed by a CPU. In addition, various other peripheral units may be connected to the computer platform such as an additional data storage unit and a printing unit.

(110) It is to be further understood that, because some of the constituent system components and methods depicted in the accompanying drawings are preferably implemented in software, the actual connections between the system components or the process function blocks may differ depending upon the manner in which the present principles are programmed. Given the teachings herein, one of ordinary skill in the pertinent art will be able to contemplate these and similar implementations or configurations of the present principles.

(111) Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the present principles is not limited to those precise embodiments, and that various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present principles. All such changes and modifications are intended to be included within the scope of the present principles as set forth in the appended claims.