Method and device for filtering video codes
A video coding and coding technology, applied in the field of communication, can solve the problem of low image quality and achieve the effect of improving image quality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] An embodiment of the present invention provides a video coding filtering method. figure 1 is a flow chart of a filtering method for video coding according to an embodiment of the present invention, such as figure 1 As shown, the method includes:
[0032] Step S102, performing region-of-interest detection on the video image before encoding each frame of video image, to obtain the region-of-interest in units of macroblocks;
[0033] Step S104, calculating the distance from each macroblock in the video image to the central macroblock of the region of interest;
[0034] Step S106, performing spatial filtering on each macroblock according to the distance from each macroblock to the central macroblock.
[0035] In this embodiment, each macroblock is spatially filtered according to the distance from each macroblock to the center of the region of interest, which can reduce the high-frequency information of the image in the non-interest region, so that more coding bits can be ...
Embodiment 2
[0043] This embodiment provides a specific implementation manner of a filtering method for video coding according to an embodiment of the present invention, and the method includes:
[0044] Step 1: Perform region of interest detection on the input image to obtain the region of interest in units of macroblocks.
[0045] The second step: perform spatial filtering on the entire frame image. figure 2 is a schematic diagram of a filtering method according to an embodiment of the present invention, such as figure 2 As shown, spatial pixel domain filtering (that is, spatial domain filtering) occurs before encoding, and belongs to pre-processing of video encoding. The role of spatial filtering is to reduce the high-frequency information of the image in the non-interest area, so that more coding bits can be used in the interest area, and at the same time, ensure the smooth transition of the image quality between the interest area and the non-interest area. For the luminance compon...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 