WO2009140916A1 - Deinterlacing method, deinterlacing device and video process system for video data - Google Patents

Deinterlacing method, deinterlacing device and video process system for video data Download PDF

Info

Publication number
WO2009140916A1
WO2009140916A1 PCT/CN2009/071867 CN2009071867W WO2009140916A1 WO 2009140916 A1 WO2009140916 A1 WO 2009140916A1 CN 2009071867 W CN2009071867 W CN 2009071867W WO 2009140916 A1 WO2009140916 A1 WO 2009140916A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
current frame
field
motion state
spatial position
Prior art date
Application number
PCT/CN2009/071867
Other languages
French (fr)
Chinese (zh)
Inventor
谢清鹏
高新波
周芳
邓勤耕
张晓森
熊联欢
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2009140916A1 publication Critical patent/WO2009140916A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/144Movement detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
    • H04N7/012Conversion between an interlaced and a progressive signal

Definitions

  • the present invention relates to the field of video processing, and in particular, to a deinterlacing method, a deinterlacing device, and a video processing system for video data. Background of the invention
  • interlaced scanning technology is widely used in the video field, consumers find that on high-resolution display devices, interlaced scanning technology has the disadvantages of line crawling, edge feathering and interlacing, which leads to interlaced scanning technology that cannot satisfy consumers' high multimedia. Claim.
  • De-interlacing is the top field in the original interlaced scan (pixels of odd scan lines have pixel values, pixels of even rows have no pixel values) or bottom field (pixels of even scan lines have pixel values, pixels of odd rows) The point has no pixel value.
  • Interpolation is performed on the line without the pixel value by the interpolation operation to generate a frame image having one complete field.
  • the line averaging method and the field copy method are employed for the top field or the bottom field in the interlaced scanning.
  • the top field first select a detection point, and then judge whether the detected point moves according to the pixel point corresponding to the spatial position of the detected point in the adjacent top field, thereby estimating the interpolation adjacent to the detected point vertically.
  • the adjacent interpolation point is considered to be moving, and the line averaging method is adopted for the interpolation point, that is, the pixels of the upper and lower pixels of the vertical adjacent direction of the interpolation point are obtained.
  • the average value if not moving, uses the inter-field copy method, that is, the pixels of the point at the same spatial position of the bottom field corresponding to the interpolation point in the top field are copied.
  • the prior art only detects the pixel variation of the front and back top fields, and cannot detect the pixel variation of the bottom field between the front and back top fields, thereby causing missed detection, resulting in incorrect pixel values of the interpolation points after the interpolation operation.
  • the reaction misses the change of the bottom field and finally affects the sharpness of the image.
  • by detecting whether the detection point in the top field is moving it is estimated whether the pixel of the interpolation line in the top field moves, and the accuracy of the judgment method is not High, it is easy to cause misjudgment, which ultimately affects the image's unclearness.
  • the process of row averaging for moving pixels only the pixel value in the vertical direction is used, which will increase the pixel value error of the point to be interpolated. , causing the image to be unclear.
  • the embodiment of the invention provides a deinterlacing method, a deinterlacing device and a video processing system, which can prevent the pixel of the current frame from being missed, improve the accuracy of judging the motion state, and reduce the pixel value of the row to be interpolated. Error, which improves the sharpness of the image.
  • An embodiment of the present invention provides a deinterlacing method for video data, including:
  • Judging whether a motion state of the pixel of the current frame relative to a pixel of the same spatial position of the adjacent frame is determined by determining whether a motion state of at least one pixel of the top field and the bottom field of the current frame is motion;
  • the pixels to be interpolated are subjected to interpolation processing according to the motion state of the pixels of the current frame with respect to the pixels of the same spatial position of the adjacent frames.
  • the embodiment of the invention further provides a deinterlacing device for video data, including:
  • a detecting module configured to detect a motion state of a top field pixel of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detect a bottom field of the current frame relative to a bottom field of the adjacent frame a motion state of the pixel at the same spatial position;
  • a determining module configured to determine the current frame by determining whether a motion state of at least one pixel of the top spatial field and the bottom field of the current frame is motion The motion state of the pixels relative to the same spatial position of the adjacent frame;
  • an interpolation module configured to perform interpolation processing on the pixels of the interpolation row according to the motion state of the pixel of the current frame determined by the determining module with respect to the pixel of the same spatial position of the adjacent frame.
  • the embodiment of the invention further provides a video processing system for video data, including:
  • a data receiving device configured to receive video data
  • Deinterlacing means for detecting a motion state of a pixel of a top field of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detecting a bottom field pixel of the current frame relative to a bottom of the adjacent frame Determining the motion state of the pixel in the same spatial position; determining whether the pixel of the current frame is relative by determining whether the motion state of at least one pixel of the top field and the bottom field of the current frame is motion The motion state of the pixel in the same spatial position of the adjacent frame; and interpolating the pixels of the interpolation row according to the motion state of the pixel of the current frame with respect to the same spatial position pixel of the adjacent frame.
  • the motion state of the top field pixel of the current frame in the video data relative to the top field of the adjacent frame in the same spatial position is detected, and the bottom field pixel of the current frame is detected.
  • the motion state of the pixel in the same spatial position of the bottom field of the adjacent frame; and determining whether the motion state of at least one pixel of the top field and the bottom field of the current frame is motion The motion state of the pixel of the current frame relative to the same spatial position pixel of the adjacent frame; and the pixel of the interpolation row is interpolated according to the motion state of the pixel of the current frame with respect to the pixel of the same spatial position of the adjacent frame.
  • FIG. 1 is a schematic structural diagram of a video processing system according to Embodiment 1 of the present invention.
  • FIG. 2 is a general flowchart of a deinterlacing method according to Embodiment 2 of the present invention.
  • Embodiment 3 is a detailed flowchart of a deinterlacing method according to Embodiment 3 of the present invention.
  • FIG. 4 is a top field diagram of a current frame of a deinterlacing method according to Embodiment 3 of the present invention.
  • FIG. 5 is a bottom field diagram of a current frame of a deinterlacing method according to Embodiment 3 of the present invention.
  • FIG. 6 is a top field diagram of an adjacent frame of a deinterlacing method according to Embodiment 3 of the present invention.
  • FIG. 7 is a bottom field diagram of an adjacent frame of a deinterlacing method according to Embodiment 3 of the present invention.
  • FIG. 8 is a schematic diagram of a pixel absolute difference of a top field of a current frame according to a deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 9 is an absolute pixel of a bottom field of a current frame according to a deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 10 is a schematic diagram showing the identification of the absolute difference of the pixel of the top field of the current frame in the deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 11 is the current frame of the deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 12 is a schematic diagram showing an extension of an identifier of a pixel absolute difference of a top field of a current frame according to a deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 13 is a schematic diagram showing an extension of an identifier of a pixel absolute difference of a bottom field of a current frame in a deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 14 is a schematic diagram of a first operation result of a current frame of a deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 15 is a schematic diagram of a second operation result of a current frame of a deinterlacing method according to Embodiment 3 of the present invention
  • FIG. 17 is a schematic diagram of blocking of a top field of a current frame of a deinterlacing method according to Embodiment 4 of the present invention.
  • FIG. 18 is a schematic diagram of blocking of a top field of an adjacent frame in a deinterlacing method according to Embodiment 4 of the present invention.
  • FIG. 19 is a schematic diagram of blocking of a bottom field of a current frame of a deinterlacing method according to Embodiment 4 of the present invention.
  • FIG. 20 is a schematic diagram of blocking of a bottom field of an adjacent frame in a deinterlacing method according to Embodiment 4 of the present invention.
  • FIG. 21 is a schematic diagram of a pixel absolute difference of a block of a top field of a current frame according to a deinterlacing method according to Embodiment 4 of the present invention
  • FIG. 22 is a bottom field of a current frame of the deinterlacing method according to Embodiment 4 of the present invention
  • FIG. 23 is a schematic diagram showing the identification of the pixel absolute difference of the block of the top field of the current frame in the deinterlacing method according to Embodiment 4 of the present invention
  • FIG. 24 is a schematic diagram showing identification of pixel absolute differences of blocks of a bottom field of a current frame in a deinterlacing method according to Embodiment 4 of the present invention.
  • Figure 27 is a detailed flow chart of the deinterlacing method provided in Embodiment 7 of the present invention.
  • FIG. 1 is a schematic structural diagram of a video processing system 10 according to Embodiment 1 of the present invention.
  • the video processing system 10 includes a data receiving device 12 and a deinterlacing device 11, wherein:
  • the data receiving device 12 is configured to receive video data
  • the deinterlacing device 11 is configured to perform deinterlacing processing on the received video data, and specifically includes: detecting motion of a pixel of a top field of a current frame in the video data with respect to a top field of an adjacent frame at a same spatial position.
  • a state detecting a motion state of a pixel of a bottom field of the current frame relative to a pixel of a same spatial position of a bottom field of the adjacent frame, and determining whether the pixel of the same spatial position of the top field and the bottom field of the current frame has at least
  • the motion state of one pixel is motion to determine the motion state of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame, and according to the motion of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame
  • the state treats the pixels in the interpolated row for interpolation.
  • the pixels to be interpolated are included in the current frame and the pixels in the adjacent frame to be interpolated.
  • the deinterlacing device 11 includes: a detecting module 110, a determining module 130, and an interpolation module 140, where:
  • the detecting module 110 is configured to detect a motion state of a pixel of a top field of a current frame in a video field with respect to a pixel of a same spatial position of a top field of an adjacent frame, and detect a pixel of a bottom field of the current frame relative to an adjacent frame.
  • the bottom of the same spatial position of the pixel An active state, wherein the pixel comprises a pixel point and a pixel block.
  • each frame can be divided into a top field and a bottom field, and pixels of odd rows in the top field have pixel values, and pixels of even rows have no pixel values; pixels of even rows in the bottom field have The pixel value, the pixel of its odd row has no pixel value.
  • the determining module 130 is configured to determine, by determining whether a pixel of the same spatial position of the top field and the bottom field of the current frame is a motion state of at least one pixel, to determine that the pixel of the current frame is the same space as the adjacent frame.
  • the motion state of the pixel of the position; the interpolation module 140 is configured to: according to the motion state of the pixel of the current frame determined by the determining module 130 relative to the pixel of the same spatial position of the adjacent frame, the pixel in the row to be interpolated Perform interpolation operations.
  • the determining module 130 may be further configured to: when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is at least one pixel, determine that the pixel of the current frame is relative to the adjacent frame.
  • the motion state of the pixel in the same spatial position is motion; and when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is not moving, determining that the pixel of the current frame is adjacent to the adjacent
  • the motion state of a pixel in the same spatial position of the frame is still.
  • the interpolation module 140 described above may include an intra-field interpolation module 141 and an inter-field interpolation module 142, where:
  • the intra-field interpolation module 141 is configured to perform an intra-field interpolation operation on the pixels in the motion-to-interpolation row that are in motion; the inter-field interpolation module 142 is configured to use the motion state in the to-be-interpolated row. Inter-field interpolation is performed for still pixels.
  • the pixel may be a pixel
  • the detecting module 110 may be further configured to determine whether a pixel absolute difference of a pixel point of the same spatial position of the top field of the current frame and the top field of the adjacent frame is And greater than the first threshold value, to detect a motion state of a pixel point of a top field of the current frame relative to a same spatial position of the top field of the adjacent frame; and determining a bottom field and a phase of the current frame by determining Whether the pixel absolute difference of the pixel point of the same spatial position of the bottom field of the adjacent frame is greater than the first threshold value, to detect the pixel of the current frame bottom field relative to the same spatial position of the adjacent frame bottom field The state of motion of the point.
  • the detection module 110 is further configured to divide the top field and the bottom field of the current frame and the top field and the bottom field of the adjacent frame into multiple pixel blocks. For example, if the image size of the frame is N*M, Then, the detecting module 110 divides the top field and the bottom field of the frame into pixel blocks by N* (M/2), and may also perform blocking in other manners. And determining whether the pixel absolute difference of the pixel point of the pixel block of the pixel unit of the top field of the current frame and the pixel location of the same spatial position of the top field of the adjacent frame is greater than a second threshold value.
  • each block of the top field of the current frame forms a one-to-one correspondence with each pixel block of the top field of the adjacent frame in a spatial position.
  • the de-interlacing device 11 may further include an operation module 120, where the operation module 120 is configured to identify a motion state of a pixel point of each pixel block of the top field and the bottom field of the current frame, and collect the current The number of motion pixel points for each pixel block in the top field and bottom field of the frame.
  • the operation module 120 can mark the moving pixel points with 1 or other values; the static pixels can be identified by 0, and other values can be used for identification.
  • the detecting module 110 is further configured to detect, by determining whether the motion state of each pixel block in the top field is the number of moving pixel points is greater than a third threshold, to detect each pixel block of the top field. a motion state; and detecting a motion state of each pixel block of the bottom field by determining whether the number of motion pixel points of each pixel block in the bottom field is greater than the third threshold value.
  • the operation module 120 is further configured to identify a motion state of a pixel of a top field and a bottom field of the current frame; The identification of the motion state of the top field pixel is ORed with the identification of the motion state of the pixel at the same spatial position in the bottom field. In the first embodiment, the operation module 120 performs an OR operation on the identifier of the top field pixel point of the current frame and the identifier of the bottom field pixel point.
  • the determining module 130 is further configured to determine, by using the motion identifier in the operation result of the judgment or the operation, whether the pixel of the same spatial position of the top field and the bottom field of the current frame has a motion state of at least one pixel as motion.
  • the intra-field interpolation module 141 is notified to perform intra-field interpolation on the pixels in the current frame to be interpolated, in the actual implementation process,
  • the intra-field interpolation operation can be implemented by the interpolation operation method in the prior art, such as edge adaptive filtering, edge line average interpolation, etc.
  • the inter-field interpolation is notified.
  • the module 142 performs inter-field interpolation motion on the pixels in the row to be interpolated of the current frame, for example, a pixel copy algorithm may be employed.
  • the determining module 130 is further configured to determine whether the current frame is globally moved relative to the adjacent frame by determining whether the proportion of the motion identifier after the result is greater than a fourth threshold, and determining that the proportion of the motion identifier is greater than The four threshold value determines that the current frame is globally moved relative to the adjacent frame.
  • the intra-field interpolation module 141 is notified to perform intra-field interpolation on the pixel of the current frame.
  • an adaptive filtering algorithm may be used for the motion; if the determining module 130 determines the current frame If the pixel is not a global motion, it is determined whether the pixel of the same spatial position of the top field and the bottom field of the current frame is the motion state of at least one pixel of the current frame by the motion identifier in the operation result after the judgment or the operation.
  • Embodiment 1 of the present invention By the deinterlacing device and the video processing system provided in Embodiment 1 of the present invention, it is ensured that the pixels of the current frame are not missed, the accuracy of determining the motion state of the pixels of the current frame is improved, and the value to be interpolated is reduced.
  • the pixel value error of the point increases the sharpness of the image.
  • Embodiment 2 of the present invention provides a deinterlacing method
  • FIG. 2 is a general flowchart of a deinterlacing method provided by Embodiment 2 of the present invention, and the figure includes:
  • Step S200 receiving video data.
  • Step S202 detecting a motion state of a pixel of a top field of the current frame in the video data with respect to a pixel of a same spatial position of a top field of the adjacent frame, and detecting a bottom field of the current frame relative to a bottom field of the adjacent frame.
  • the motion state of pixels in the same spatial position is a motion state of pixels in the same spatial position.
  • Step S204 determining whether the pixel of the current frame is relative to the pixel of the same spatial position of the adjacent frame by determining whether the pixel of the same spatial position of the top field and the bottom field of the current frame is motion of at least one pixel. Movement state.
  • step S204 further includes the following steps: Step A: identifying a motion state of a pixel of a top field and a bottom field of the current frame; Step B, identifying an activity state of the top field pixel Performing an operation with the identifier of the motion state of the pixel at the same spatial position in the bottom field; Step C: determining the same spatial position of the top field and the bottom field of the current frame by using the motion identifier in the operation result after the judgment or operation Whether the pixel has at least one pixel of motion is motion.
  • Step S206 performing an intra-field interpolation operation on the pixels whose motion state is to be interpolated in the current frame to be moved, and then performing step S210, outputting the processed current frame, and ending.
  • Step S208 performing inter-field interpolation on the pixels whose motion state of the current frame to be interpolated is still, and then performing step S210, and ending.
  • the pixels to be interpolated are included in the current frame and the pixels of the adjacent frame in the adjacent frame.
  • Embodiment 3 of the present invention provides another deinterlacing method.
  • FIG. 3 is a detailed flowchart of another deinterlacing method provided by Embodiment 3 of the present invention, and the figure includes:
  • Step S300 Receive video data, where the video data is interlaced video data, where each frame of the video data includes a pixel of a top field and a pixel of a bottom field.
  • Step S302 calculating a pixel absolute difference of pixel points of the same spatial position of the top field of the current frame and the top field of the adjacent frame, and calculating a pixel point of the bottom field of the same spatial position of the bottom field of the current frame and the adjacent frame.
  • the absolute difference in pixels is a pixel absolute difference of pixel points of the same spatial position of the top field of the current frame and the top field of the adjacent frame.
  • a current frame of size 8 X 6 For example, divide a current frame of size 8 X 6 into the top field of the current frame of size 8 X 6 (as in Figure 4) and the bottom field of the current frame of size 8 X 6 ( Figure 5). Since the pixels of the odd-numbered rows of the top field have pixel values, and the pixels of the even-numbered rows have no pixel values, the row can also be used as an interpolation row, so the pixel value of the pixels of the even-numbered rows in the top field is set to 0, and The pixel is used as the interpolation point, and the bottom field is opposite to the top field.
  • the pixel of the even line in the bottom field has the pixel value, and the pixel of the odd line has no pixel value, so the odd line is used as the interpolation line; similarly, the adjacent
  • the frame is divided into a top field of 8x6 adjacent frames (as in Figure 6) and a bottom field of adjacent frames of size 8 x 6 ( Figure 7).
  • Pixel absolute difference calculation is performed on the top field of the current frame and the pixel of the top field of the same spatial position of the adjacent frame, and FIG. 8 is obtained ; the bottom field of the current frame and the bottom field of the same spatial position of the adjacent frame are obtained.
  • the pixel is subjected to pixel absolute difference calculation, and FIG. 9 is obtained.
  • Step S304 detecting a motion state of a pixel point of a pixel position of a current frame top field relative to a same spatial position of an adjacent frame top field, and detecting a same spatial position of a pixel point of a current frame bottom field relative to an adjacent frame bottom field.
  • the motion state of the pixel is a motion state of a pixel point of a pixel position of a current frame top field relative to a same spatial position of an adjacent frame top field, and detecting a same spatial position of a pixel point of a current frame bottom field relative to an adjacent frame bottom field.
  • the same space of the top field of the current frame is detected by determining whether the pixel absolute difference of the pixel points of the same spatial position of the top field of the current frame and the top field of the adjacent frame is greater than the first threshold value.
  • the motion state of the pixel of the position relative to the pixel of the top field of the adjacent frame, and whether the absolute difference of the pixel of the pixel of the same spatial position of the bottom field of the current frame and the bottom field of the adjacent frame is greater than the first gate
  • the limit value is used to detect the motion state of the pixel point of the current frame bottom field relative to the same spatial position of the adjacent frame bottom field.
  • the first threshold may be 5 or other values.
  • step S306 the motion state of the stationary pixel is identified by 0, and other values may be used for identification. For example, if the pixel absolute difference of the pixel in FIG. 8 is less than 5, that is, stationary, the motion state of the pixel is identified by 0. Similarly, if the pixel absolute difference of the pixel in FIG. 9 is less than 5, that is, if it is still, use 0 to identify the motion state of the pixel.
  • step 308 If it is detected that the motion state of the pixel point of the top field of the current frame relative to the same spatial position of the adjacent frame top field is motion, and detecting the same spatial position of the pixel point of the bottom field of the current frame relative to the bottom field of the adjacent frame
  • the process proceeds to step 308, and the motion state of the moving pixel is identified by 1, and may be identified by other values. For example, comparing each value in FIG. 8 of the top field with the first threshold value, if the pixel absolute difference of the pixel in FIG. 10 is greater than 5, that is, motion, the pixel is identified by 1 For the same reason, if the pixel absolute difference of the pixel in FIG. 9 is greater than 5, that is, motion, the motion state of the pixel is identified by 1. After step S306 or step S308 is performed, FIG. 10 of the top field and FIG. 11 of the bottom field are obtained.
  • Step S310 the identifier of the motion state of the top field pixel point is ORed with the identifier of the motion state of the pixel point of the same spatial position in the bottom field.
  • the identifier of the top field after the judgment and the identifier of the bottom field need to be expanded, including two cases, as follows:
  • the result of the operation is still an identifier, that is, after an identifier is ORed with another identifier, the result is still an identifier, and the identifier still identifies the motion state of a certain pixel.
  • 1 indicates that the motion state of one pixel of the current frame is motion
  • 0 indicates that the motion state of another pixel of the current frame is still.
  • the even rows are set to 0.
  • the odd rows in the bottom field are set to 0. Since the pixel values of the even rows in the top field are 0, the top field after expansion and the unexpanded The previous identifier has not changed. Similarly, the bottom field after expansion and the identifier before expansion are unchanged. Finally, the top field and the bottom field identifier are ORed, and the result shown in FIG. 15 is obtained.
  • Step S312 judging the motion state of the pixel point of the current frame with respect to the pixel position of the same spatial position of the adjacent frame by the motion identifier in the operation result after the judgment or the operation.
  • the motion state of the pixel point of the interpolation line of the bottom field is judged. If the top field interpolation operation is performed on the current frame, the motion state of the pixel point of the interpolation line of the top field is judged.
  • step S314 is performed, and an intra-field interpolation operation is performed on the pixel point.
  • the intra-field interpolation operation is performed on the pixel point (ie, the interpolation point).
  • an intra-field interpolation operation is performed on the pixel point (ie, the interpolation point).
  • step S316 If it is determined that the motion state of the pixel point of the current frame with respect to the same spatial position of the adjacent frame is still, then the process proceeds to step S316, and an inter-field interpolation operation is performed on the pixel point.
  • the inter-field interpolation operation is performed on the pixel point (ie, the interpolation point).
  • an inter-field interpolation operation is performed on the pixel point (ie, the interpolation point).
  • the intra-field interpolation operation is an edge-adaptive filtering algorithm
  • the inter-field interpolation operation is a pixel copy algorithm. Since intra-field interpolation and inter-field interpolation are well-known techniques, they are not described here.
  • step S318 is executed to output the current frame after the operation.
  • Embodiment 3 of the present invention By implementing the technical solution of Embodiment 3 of the present invention, the accuracy of determining the motion state of the pixel of the current frame can be improved, thereby ensuring that the pixel point of the current frame does not cause missed detection, and the pixel error of the point to be inserted is reduced. Thereby improving the sharpness of the image.
  • Embodiment 4 of the present invention provides another deinterlacing method.
  • FIG. 16 is a detailed flowchart of another deinterlacing method according to Embodiment 4 of the present invention. The figure includes: Step S400, receiving a video data stream.
  • Step S402 dividing the top field and the bottom field of the current frame and the adjacent frame into a plurality of pixel blocks.
  • the detecting module 110 blocks the top field and the bottom field of the frame by N* (M/2), and may also perform blocking in other manners.
  • the image size of the frame is assumed to be 8x12
  • the top field and the bottom field of the frame are divided into two pixel blocks by 8x6, as shown in Fig. 17 as the top field of the current frame, and Fig. 18 is the bottom field of the current frame, and Fig. 19 is adjacent
  • the top field of the frame, Figure 20 is the bottom field of the adjacent frame.
  • Step S404 calculating a pixel absolute difference of a pixel of a top field of a top field of the current frame and an identical spatial position of an adjacent frame, and calculating a pixel point of a bottom field of the same spatial position of the bottom field of the current frame and the adjacent frame.
  • the absolute difference calculating a pixel absolute difference of a pixel of a top field of a top field of the current frame and an identical spatial position of an adjacent frame, and calculating a pixel point of a bottom field of the same spatial position of the bottom field of the current frame and the adjacent frame.
  • the absolute difference of the pixels of the top field can be obtained by calculation, as shown in Fig. 21; similarly, the absolute difference of the pixels of the bottom field can be obtained, as shown in Fig. 22.
  • Step S406 detecting a motion state of a pixel point of a pixel block of each pixel block in a top field of a current frame with respect to a same spatial position of a top field of an adjacent frame, and detecting each pixel block of a bottom field of the current frame.
  • the motion state of the pixel point of the pixel block relative to the same spatial position of the bottom field of the adjacent frame.
  • the second threshold value may be 2, and may be other values.
  • step S408 If the motion state of the pixel point of the pixel block of each pixel block in the top field of the current frame is detected to be stationary relative to the pixel position of the same spatial position in the top field of the adjacent frame, or if the bottom field of the current frame is detected If the pixel of each pixel block is stationary relative to the pixel of the pixel block of the same spatial position in the bottom field of the adjacent frame, the process proceeds to step S408, and the motion state of the pixel is marked with 0, and other values may be used. Mark it.
  • the motion state of the pixel point of the pixel block of each pixel block in the top field of the current frame relative to the pixel position of the same spatial position in the top field of the adjacent frame is detected as motion, or if the bottom field of the current frame is determined
  • the motion state of the pixel point of the pixel block of each pixel block relative to the pixel position of the same spatial position in the bottom field of the adjacent frame is motion, and then proceeds to step S410, and the motion state of the pixel point is identified by 1, Other values can also be used to identify and count the number of motion pixel points for each pixel block in the top and bottom fields.
  • the identification map of the top field can be obtained, as shown in FIG. 23; similarly, the identification map of the bottom field can be obtained, as shown in FIG.
  • Step S412 detecting a motion state of each pixel block in the top field and the bottom field.
  • the motion state of each pixel block in the top field is detected by determining whether the number of motion pixel points of each pixel block in the top field is greater than a third threshold value, and by determining the bottom field Whether the number of moving pixel points of each pixel block is greater than a third threshold value determines the motion state of each pixel block in the bottom field.
  • the third threshold value is 11, and may be other values.
  • step S416 If it is determined that the motion state of the pixel block in the top field is motion, or if it is determined that the motion state of the pixel block in the bottom field is motion, the process proceeds to step S416, and the motion state of the block is marked as 1, and other values may be used. logo. If it is determined that the pixel block in the top field is not a motion block, or if it is determined that the pixel block in the top field is not a motion block, that is, a static block, the process proceeds to step S414, and the block is identified as 0, and may be identified by other values.
  • the number of the identifier of the left pixel block in the top field is 12, and the number of the identifier 1 of the right pixel block is 2 ; in FIG. 24, the left pixel block in the bottom field
  • the number of the identifier 1 is 14, and the number of the identifier of the right pixel block is 15.
  • the motion state of the pixel block on the left side of the top field is identified as 1, the motion state of the right pixel block is 0, and the pixel on the left side of the bottom field.
  • the motion state of the block is identified by 1, and the motion state of the right pixel block is identified as 1.
  • Step S418, the identifier of the motion state of each pixel block in the top field is ORed with the identifier of the motion state of the pixel block in the same spatial position in the bottom field.
  • the operation result is 1; the right pixel block in the top field is The operation state is ORed with the flag of the motion state of the right pixel block in the bottom field, and the operation result is 1.
  • Step S420 Determine a motion state of a pixel block of the same spatial position of each pixel block of the current frame with respect to the adjacent frame.
  • the motion state of the pixel block of the same spatial position of each pixel block of the current frame with respect to the adjacent frame is judged by judging the motion flag in the OR operation result in step S418.
  • step S422 If it is determined that the motion state of the pixel block of the current frame is motion, the process proceeds to step S422, and the intra-frame interpolation operation is performed on the block of the current frame.
  • the intra-frame interpolation operation is performed on the block of the current frame.
  • an intra-field interpolation operation is performed on all the interpolation lines in the block of the bottom field.
  • an interpolated operation is performed on all interpolated lines in the block of the top field.
  • step S424 the inter-field interpolation operation is performed on the block of the current frame.
  • inter-field interpolation is performed on all the interpolated lines in the block of the bottom field.
  • inter-field interpolation is used for all interpolated lines in the block of the top field.
  • step S426 is executed to output the processed current frame.
  • step S422 is executed, and the processed current frame is output.
  • Embodiment 5 In order to further improve the clarity of an image, Embodiment 5 of the present invention provides another deinterlacing method, and FIG. 25 is a general flowchart of another deinterlacing method provided by Embodiment 5 of the present invention. The figure includes:
  • Step S500 receiving video data.
  • Step S502 detecting a motion state of a pixel of a top field of the current frame in the video data with respect to a pixel of a same spatial position of a top field of the adjacent frame, and detecting a bottom field of the current frame with respect to a bottom field of the adjacent frame.
  • the motion state of pixels in the same spatial position is a motion state of pixels in the same spatial position.
  • Step S504 determining whether the current frame is globally moved with respect to the adjacent frame.
  • the step S504 further includes the following steps: Step C: identifying a motion state of a pixel of a top field and a bottom field of the current frame; Step D: identifying an activity state of the top field pixel And performing an operation with the identifier of the motion state of the pixel in the same spatial position in the bottom field; Step F: determining whether the current frame is relative to the adjacent frame by determining whether the specific gravity of the motion identifier after the result is greater than a fourth threshold Global movement.
  • step S508 is reached.
  • step S506 If it is determined that the current frame is not global motion, proceed to step S506, and further determine the phase of the top field and the bottom field of the current frame. Whether the pixel of the same spatial position has a motion state of at least one pixel is motion to determine the motion state of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame.
  • step S508 If it is determined that the pixel of the current frame is moving relative to the pixel of the adjacent frame, the process proceeds to step S508, and the current frame is subjected to the intra-field interpolation operation, and then step S512 is performed, and the processed current frame is output, and the process ends.
  • step S510 If it is determined that the pixel of the current frame is stationary with respect to the pixel of the adjacent frame, the process proceeds to step S510, and the inter-field interpolation operation is performed on the current frame, and then step S512 is performed, and the process ends.
  • Embodiment 6 of the present invention provides another deinterlacing method.
  • FIG. 26 is a detailed flowchart of another deinterlacing method according to Embodiment 6 of the present invention. The figure includes:
  • step S600 to step S610 is the same as the implementation process of step S300 to step S310 in the embodiment 3, and is not described here.
  • Step S612 Determine whether the current frame is globally moved with respect to the adjacent frame.
  • the fourth threshold value is 50%, and may be other values, but at least 50% or more.
  • step S614 is reached.
  • step S616 is continued to continue to determine the motion state of the pixel of the current frame relative to the pixel position of the same spatial position of the adjacent frame.
  • step S614 is performed, and an intra-field interpolation operation is performed on the pixel point.
  • the intra-field interpolation operation is performed on the pixel point (ie, the interpolation point).
  • an interpolation operation is performed on the top field of the current frame, if it is determined that the pixel of the interpolation field of the top field is moving, an intra-field interpolation operation is performed on the pixel point (ie, the interpolation point).
  • step S618 If it is determined that the motion state of the pixel point of the current frame with respect to the same spatial position of the adjacent frame is still, then the process proceeds to step S618, and an inter-field interpolation operation is performed on the pixel point.
  • inter-field interpolation when the bottom field of the current frame is interpolated, if the motion state of the pixel of the interpolation line of the bottom field is determined to be stationary, inter-field interpolation is used for the pixel (ie, the interpolation point).
  • an interpolation operation is performed on the top field of the current frame, if it is determined that the pixel of the interpolation field of the top field does not move, an inter-field interpolation operation is performed on the pixel point (ie, the interpolation point).
  • step S620 is performed to output the current frame after the operation.
  • Embodiment 7 of the present invention provides another deinterlacing method.
  • FIG. 27 is a detailed flowchart of another deinterlacing method according to Embodiment 7 of the present invention. The figure includes:
  • step S700 to step S718 is the same as the implementation process of step S400 to step S418 in the embodiment 4, and is not described here.
  • Step S720 Determine whether the current frame is globally moved with respect to the adjacent frame.
  • the seventh embodiment it is determined whether the current frame is globally moved with respect to the adjacent frame by determining whether the specific gravity of the motion indicator of the pixel block in the calculated identifier is greater than the fourth threshold.
  • the fourth threshold value is 50%, and other values may be used. But at least 50% or more.
  • step S722 is reached.
  • step S724 it is determined that the motion identifier in the operation result after each pixel block operation is determined to determine that each pixel block of the current frame is the same as the adjacent frame.
  • the motion state of the pixel block in the spatial position is the same as the adjacent frame.
  • step S722 is performed, and an intra-field interpolation operation is performed on the block.
  • an intra-field interpolation operation is performed on all the interpolation lines in the block of the bottom field.
  • an interpolated operation is performed on all interpolated lines in the block of the top field.
  • step S726, where an inter-field interpolation operation is employed.
  • inter-field interpolation is performed on all the interpolated lines in the block of the bottom field.
  • inter-field interpolation is used for all interpolated lines in the block of the top field.
  • step S728 is performed to output the current frame after the operation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Television Systems (AREA)

Abstract

A deinterlacing method, deinterlacing device and video process system for video data are provided by the embodiments of the present invention, which concretely include: first, detecting the motion status of a pixel in the top field of the current frame in the video data compared with the pixel of identical spatial position in the top field of the neighboring frame, and detecting the motion status of a pixel in the bottom field of the current frame compared with the pixel of identical spatial position in the bottom field of the neighboring frame; second, determining the motion status of a pixel in the current frame compared with the pixel of identical spatial position in the neighboring frame by determining whether the motion status of at least one of the pixels of identical spatial position in the top field and bottom field of the current frame is motion; third, making interpolation process to the pixels of the line to be interpolated according to the motion status of a pixel in the current frame compared with the pixel of identical spatial position in the neighboring frame. By implementation of the above technical means, it’s guaranteed that pixels in the current frame will not be missed for detecting, and the precision of determining the motion status of pixels in the current frame is improved, the pixel error of the points to be interpolated is decreased, therefore the definition of images can be increased.

Description

视频数据的去隔行方法、 去隔行装置及视频处理系统 本申请要求于 2008年 5月 20日提交中国专利局、 申请号为 200810067381. x、发明名称为 "视 频数据的去隔行方法、 去隔行装置及视频处理系统" 的中国专利申请的优先权, 其全部内容通过引 用结合在本申请中。  Deinterlacing method, deinterlacing device and video processing system for video data The application is submitted to the Chinese Patent Office on May 20, 2008, and the application number is 200810067381. x, the invention name is "deinterlacing method for video data, deinterlacing device" The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及视频处理领域, 尤其涉及一种视频数据的去隔行方法、去隔行装置及视频处理系统。 发明背景  The present invention relates to the field of video processing, and in particular, to a deinterlacing method, a deinterlacing device, and a video processing system for video data. Background of the invention
目前, 随着数字技术的不断发展及高分辨率显示设备不断的进入视频消费市场, 消费者对多 媒体的要求也越来越高。 由于隔行扫描技术普遍应用于视频领域中, 消费者发现在高分辨率显示设 备上, 隔行扫描技术会出现行爬行、 边缘羽化及交错的缺点, 从而导致隔行扫描技术不能满足消费 者对多媒体的高要求。  At present, with the continuous development of digital technology and the continuous entry of high-resolution display devices into the video consumer market, consumers are increasingly demanding multimedia. Since interlaced scanning technology is widely used in the video field, consumers find that on high-resolution display devices, interlaced scanning technology has the disadvantages of line crawling, edge feathering and interlacing, which leads to interlaced scanning technology that cannot satisfy consumers' high multimedia. Claim.
为了消除上述缺陷, 运营厂商推行出一种将隔行扫描视频转化为逐行扫描视频的技术, 即去 隔行技术(De-interlacing), 又称反交错技术。 去隔行技术就是将原隔行扫描中的顶场(奇数扫描 行的像素点具有像素值, 偶数行的像素点没有像素值) 或底场 (偶数扫描行的像素点具有像素值, 奇数行的像素点没有像素值) 利用插值运算的方法对没有像素值的行进行插值运算以生成具有一个 完整场的帧图像。  In order to eliminate the above drawbacks, operators have introduced a technology to convert interlaced video into progressive scan video, namely De-interlacing, also known as de-interlacing. Deinterlacing is the top field in the original interlaced scan (pixels of odd scan lines have pixel values, pixels of even rows have no pixel values) or bottom field (pixels of even scan lines have pixel values, pixels of odd rows) The point has no pixel value. Interpolation is performed on the line without the pixel value by the interpolation operation to generate a frame image having one complete field.
在现有技术中, 对隔行扫描中的顶场或底场采用行平均法及场复制法。 以顶场为例, 先选择 一个检测点, 再根据相邻顶场中的与被检测点空间位置对应的像素点判断被检测点是否运动, 从而 预估与该被检测点垂直相邻的插值点是否运动, 若判断被检测点运动, 则认为该相邻的插值点运动, 并对该插值点采用行平均法, 即对该插值点的垂直相邻方向的上下两个像素点的像素求平均值, 若 不运动, 则采用场间复制法, 即将顶场中的该插值点对应的底场相同空间位置的点的像素进行复制。  In the prior art, the line averaging method and the field copy method are employed for the top field or the bottom field in the interlaced scanning. Taking the top field as an example, first select a detection point, and then judge whether the detected point moves according to the pixel point corresponding to the spatial position of the detected point in the adjacent top field, thereby estimating the interpolation adjacent to the detected point vertically. Whether the point moves, if it is judged that the detected point moves, the adjacent interpolation point is considered to be moving, and the line averaging method is adopted for the interpolation point, that is, the pixels of the upper and lower pixels of the vertical adjacent direction of the interpolation point are obtained. The average value, if not moving, uses the inter-field copy method, that is, the pixels of the point at the same spatial position of the bottom field corresponding to the interpolation point in the top field are copied.
然而, 现有技术只检测出前后顶场的像素变化情况, 而不能检测出前后顶场之间的底场的像素 变化情况, 从而造成漏检, 导致插值运算后的插值点的像素值不能正确反应漏检底场的变化情况, 并最终影响图像的清晰度; 同时, 通过检测顶场中的检测点是否运动来预估顶场中插值行的像素点 是否运动, 此种判断方法精确度不高, 很容易造成错误判断, 最终影响图像的不清晰; 而且, 在对 运动的像素点进行行平均法处理过程中, 只采用垂直方向的像素值, 从而会加大待插值点的像素值 误差, 导致图像不清晰。  However, the prior art only detects the pixel variation of the front and back top fields, and cannot detect the pixel variation of the bottom field between the front and back top fields, thereby causing missed detection, resulting in incorrect pixel values of the interpolation points after the interpolation operation. The reaction misses the change of the bottom field and finally affects the sharpness of the image. At the same time, by detecting whether the detection point in the top field is moving, it is estimated whether the pixel of the interpolation line in the top field moves, and the accuracy of the judgment method is not High, it is easy to cause misjudgment, which ultimately affects the image's unclearness. Moreover, in the process of row averaging for moving pixels, only the pixel value in the vertical direction is used, which will increase the pixel value error of the point to be interpolated. , causing the image to be unclear.
发明内容 Summary of the invention
本发明实施例提供了一种去隔行方法、去隔行装置及视频处理系统,可使当前帧的像素不会产 生漏检, 并提高判断运动状态的精确度, 且可减少待插值行的像素值误差, 从而提高图像的清晰度。  The embodiment of the invention provides a deinterlacing method, a deinterlacing device and a video processing system, which can prevent the pixel of the current frame from being missed, improve the accuracy of judging the motion state, and reduce the pixel value of the row to be interpolated. Error, which improves the sharpness of the image.
本发明实施例提供了一种视频数据的去隔行方法, 包括:  An embodiment of the present invention provides a deinterlacing method for video data, including:
检测视频数据中当前帧的顶场像素相对于相邻帧的顶场在相同空间位置上的像素的运动状态, 并检测当前帧的底场像素相对于相邻帧的底场在相同空间位置上的像素的运动状态;  Detecting a motion state of a top field pixel of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detecting that a bottom field pixel of the current frame is in the same spatial position with respect to a bottom field of the adjacent frame The motion state of the pixel;
通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一个像素的运动状态为运 动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态; 根据所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态来对待插值行的像素进行 插值处理。 Judging whether a motion state of the pixel of the current frame relative to a pixel of the same spatial position of the adjacent frame is determined by determining whether a motion state of at least one pixel of the top field and the bottom field of the current frame is motion; The pixels to be interpolated are subjected to interpolation processing according to the motion state of the pixels of the current frame with respect to the pixels of the same spatial position of the adjacent frames.
本发明实施例还提供一种视频数据的去隔行装置, 包括:  The embodiment of the invention further provides a deinterlacing device for video data, including:
检测模块, 用于检测视频数据中当前帧的顶场像素相对于相邻帧的顶场在相同空间位置上的像 素的运动状态,并检测当前帧的底场像素相对于相邻帧的底场在相同空间位置上的像素的运动状态; 判断模块, 用于通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一个像素的 运动状态为运动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态;  a detecting module, configured to detect a motion state of a top field pixel of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detect a bottom field of the current frame relative to a bottom field of the adjacent frame a motion state of the pixel at the same spatial position; a determining module, configured to determine the current frame by determining whether a motion state of at least one pixel of the top spatial field and the bottom field of the current frame is motion The motion state of the pixels relative to the same spatial position of the adjacent frame;
插值模块, 用于根据所述判断模块判断的所述当前帧的像素相对于相邻帧相同空间位置像素的 运动状态来对待插值行的像素进行插值处理。  And an interpolation module, configured to perform interpolation processing on the pixels of the interpolation row according to the motion state of the pixel of the current frame determined by the determining module with respect to the pixel of the same spatial position of the adjacent frame.
本发明实施例还提供一种视频数据的视频处理系统, 包括:  The embodiment of the invention further provides a video processing system for video data, including:
数据接收装置, 用于接收视频数据;  a data receiving device, configured to receive video data;
去隔行装置, 用于检测视频数据中当前帧的顶场像素相对于相邻帧的顶场在相同空间位置上的 像素的运动状态, 并检测当前帧的底场像素相对于相邻帧的底场在相同空间位置上的像素的运动状 态; 再通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一个像素的运动状态为运 动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态; 并根据所述当前帧的像 素相对于相邻帧相同空间位置像素的运动状态来对待插值行的像素进行插值处理。  Deinterlacing means for detecting a motion state of a pixel of a top field of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detecting a bottom field pixel of the current frame relative to a bottom of the adjacent frame Determining the motion state of the pixel in the same spatial position; determining whether the pixel of the current frame is relative by determining whether the motion state of at least one pixel of the top field and the bottom field of the current frame is motion The motion state of the pixel in the same spatial position of the adjacent frame; and interpolating the pixels of the interpolation row according to the motion state of the pixel of the current frame with respect to the same spatial position pixel of the adjacent frame.
由上述所提供的技术方案可以看出, 首先检测视频数据中当前帧的顶场像素相对于相邻帧的顶 场在相同空间位置上的像素的运动状态, 并检测当前帧的底场像素相对于相邻帧的底场在相同空间 位置上的像素的运动状态; 再通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一 个像素的运动状态为运动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态; 并根据所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态来对待插值行的像素进行插值 处理。 这样就保证了当前帧的像素不会产生漏检, 提高了判断当前帧的像素的运动状态的精确度, 并且减少了待插值点的像素值误差, 从而提高了图像的清晰度。  It can be seen from the above technical solution that the motion state of the top field pixel of the current frame in the video data relative to the top field of the adjacent frame in the same spatial position is detected, and the bottom field pixel of the current frame is detected. The motion state of the pixel in the same spatial position of the bottom field of the adjacent frame; and determining whether the motion state of at least one pixel of the top field and the bottom field of the current frame is motion The motion state of the pixel of the current frame relative to the same spatial position pixel of the adjacent frame; and the pixel of the interpolation row is interpolated according to the motion state of the pixel of the current frame with respect to the pixel of the same spatial position of the adjacent frame. This ensures that the pixels of the current frame are not missed, improves the accuracy of determining the motion state of the pixels of the current frame, and reduces the pixel value error of the point to be interpolated, thereby improving the sharpness of the image.
附图简要说明 BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例 1所提供的视频处理系统的结构示意图;  1 is a schematic structural diagram of a video processing system according to Embodiment 1 of the present invention;
图 2为本发明实施例 2所提供的去隔行方法的总体流程图;  2 is a general flowchart of a deinterlacing method according to Embodiment 2 of the present invention;
图 3为本发明实施例 3所提供的去隔行方法的详细流程图;  3 is a detailed flowchart of a deinterlacing method according to Embodiment 3 of the present invention;
图 4为本发明实施例 3所提供的去隔行方法的当前帧的顶场图;  4 is a top field diagram of a current frame of a deinterlacing method according to Embodiment 3 of the present invention;
图 5为本发明实施例 3所提供的去隔行方法的当前帧的底场图;  5 is a bottom field diagram of a current frame of a deinterlacing method according to Embodiment 3 of the present invention;
图 6为本发明实施例 3所提供的去隔行方法的相邻帧的顶场图;  6 is a top field diagram of an adjacent frame of a deinterlacing method according to Embodiment 3 of the present invention;
图 7为本发明实施例 3所提供的去隔行方法的相邻帧的底场图;  7 is a bottom field diagram of an adjacent frame of a deinterlacing method according to Embodiment 3 of the present invention;
图 8为本发明实施例 3所提供的去隔行方法的当前帧的顶场的像素绝对差值示意图; 图 9为本发明实施例 3所提供的去隔行方法的当前帧的底场的像素绝对差值示意图; 图 10为本发明实施例 3所提供的去隔行方法的当前帧的顶场的像素绝对差值的标识示意图; 图 11为本发明实施例 3所提供的去隔行方法的当前帧的底场的像素绝对差值的标识示意图; 图 12为本发明实施例 3所提供的去隔行方法的当前帧的顶场的像素绝对差值的标识的扩展示 意图; 8 is a schematic diagram of a pixel absolute difference of a top field of a current frame according to a deinterlacing method according to Embodiment 3 of the present invention; FIG. 9 is an absolute pixel of a bottom field of a current frame according to a deinterlacing method according to Embodiment 3 of the present invention; FIG. 10 is a schematic diagram showing the identification of the absolute difference of the pixel of the top field of the current frame in the deinterlacing method according to Embodiment 3 of the present invention; FIG. 11 is the current frame of the deinterlacing method according to Embodiment 3 of the present invention; A schematic diagram of the identification of the absolute difference of the pixels of the bottom field; FIG. 12 is a schematic diagram showing an extension of an identifier of a pixel absolute difference of a top field of a current frame according to a deinterlacing method according to Embodiment 3 of the present invention; FIG.
图 13为本发明实施例 3所提供的去隔行方法的当前帧的底场的像素绝对差值示的标识的扩展 示意图;  13 is a schematic diagram showing an extension of an identifier of a pixel absolute difference of a bottom field of a current frame in a deinterlacing method according to Embodiment 3 of the present invention;
图 14为本发明实施例 3所提供的去隔行方法的当前帧的第一种运算结果示意图; 图 15为本发明实施例 3所提供的去隔行方法的当前帧的第二种运算结果示意图  14 is a schematic diagram of a first operation result of a current frame of a deinterlacing method according to Embodiment 3 of the present invention; FIG. 15 is a schematic diagram of a second operation result of a current frame of a deinterlacing method according to Embodiment 3 of the present invention;
图 16为本发明实施例 4所提供的去隔行方法的详细流程图;  16 is a detailed flowchart of a deinterlacing method according to Embodiment 4 of the present invention;
图 17为本发明实施例 4所提供的去隔行方法的当前帧的顶场的分块的示意图;  17 is a schematic diagram of blocking of a top field of a current frame of a deinterlacing method according to Embodiment 4 of the present invention;
图 18为本发明实施例 4所提供的去隔行方法的相邻帧的顶场的分块的示意图;  18 is a schematic diagram of blocking of a top field of an adjacent frame in a deinterlacing method according to Embodiment 4 of the present invention;
图 19为本发明实施例 4所提供的去隔行方法的当前帧的底场的分块的示意图;  19 is a schematic diagram of blocking of a bottom field of a current frame of a deinterlacing method according to Embodiment 4 of the present invention;
图 20为本发明实施例 4所提供的去隔行方法的相邻帧的底场的分块的示意图;  20 is a schematic diagram of blocking of a bottom field of an adjacent frame in a deinterlacing method according to Embodiment 4 of the present invention;
图 21为本发明实施例 4所提供的去隔行方法的当前帧的顶场的块的像素绝对差值示意图; 图 22为本发明实施例 4所提供的去隔行方法的当前帧的底场的块的像素绝对差值示意图; 图 23为本发明实施例 4所提供的去隔行方法的当前帧的顶场的块的像素绝对差值的标识示意 图;  21 is a schematic diagram of a pixel absolute difference of a block of a top field of a current frame according to a deinterlacing method according to Embodiment 4 of the present invention; FIG. 22 is a bottom field of a current frame of the deinterlacing method according to Embodiment 4 of the present invention; FIG. 23 is a schematic diagram showing the identification of the pixel absolute difference of the block of the top field of the current frame in the deinterlacing method according to Embodiment 4 of the present invention;
图 24为本发明实施例 4所提供的去隔行方法的当前帧的底场的块的像素绝对差值的标识示意 图;  24 is a schematic diagram showing identification of pixel absolute differences of blocks of a bottom field of a current frame in a deinterlacing method according to Embodiment 4 of the present invention;
图 25为本发明实施例 5所提供的的去隔行方法的总体流程图;  25 is a general flowchart of a deinterlacing method according to Embodiment 5 of the present invention;
图 26为本发明实施例 6所提供的去隔行方法的详细流程图;  26 is a detailed flowchart of a deinterlacing method according to Embodiment 6 of the present invention;
图 27为本发明实施例 7所提供的去隔行方法的详细流程图。  Figure 27 is a detailed flow chart of the deinterlacing method provided in Embodiment 7 of the present invention.
实施本发明的方式 Mode for carrying out the invention
实施例 1: 图 1所示为本发明实施例 1所提供的视频处理系统 10的结构示意图, 图中: 所述视 频处理系统 10包括数据接收装置 12与去隔行装置 11, 其中:  Embodiment 1 FIG. 1 is a schematic structural diagram of a video processing system 10 according to Embodiment 1 of the present invention. The video processing system 10 includes a data receiving device 12 and a deinterlacing device 11, wherein:
数据接收装置 12用于接收视频数据;  The data receiving device 12 is configured to receive video data;
去隔行装置 11用于将所接收的视频数据进行去隔行处理, 具体包括: 检测所述视频数据中当前 帧的顶场的像素相对于相邻帧的顶场在相同空间位置上的像素的运动状态, 检测当前帧的底场的像 素相对于相邻帧的底场的相同空间位置的像素的运动状态, 并通过判断所述当前帧的顶场与底场的 相同空间位置的像素是否至少有一个像素的运动状态为运动, 来判断所述当前帧的像素相对于相邻 帧相同空间位置的像素的运动状态, 并根据所述当前帧的像素相对于相邻帧相同空间位置的像素的 运动状态对待插行中的像素进行插值处理。 上述待插值行的像素包括当前帧和相邻帧中的待插值行 的象素。  The deinterlacing device 11 is configured to perform deinterlacing processing on the received video data, and specifically includes: detecting motion of a pixel of a top field of a current frame in the video data with respect to a top field of an adjacent frame at a same spatial position. a state, detecting a motion state of a pixel of a bottom field of the current frame relative to a pixel of a same spatial position of a bottom field of the adjacent frame, and determining whether the pixel of the same spatial position of the top field and the bottom field of the current frame has at least The motion state of one pixel is motion to determine the motion state of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame, and according to the motion of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame The state treats the pixels in the interpolated row for interpolation. The pixels to be interpolated are included in the current frame and the pixels in the adjacent frame to be interpolated.
在本实施例 1中, 所述的去隔行装置 11包括: 检测模块 110、 判断模块 130和插值模块 140, 其中:  In the first embodiment, the deinterlacing device 11 includes: a detecting module 110, a determining module 130, and an interpolation module 140, where:
所述检测模块 110用于检测视频数据中当前帧的顶场的像素相对于相邻帧的顶场的相同空间位 置的像素的运动状态, 并检测当前帧的底场的像素相对于相邻帧的底场的相同空间位置的像素的运 动状态, 其中所述像素包括像素点和像素块。 在本实施例 1中, 每一帧可分为顶场与底场, 顶场中 奇数行的像素点具有像素值, 其偶数行的像素点没有像素值; 底场中偶数行的像素点具有像素值, 其奇数行的像素点没有像素值。 The detecting module 110 is configured to detect a motion state of a pixel of a top field of a current frame in a video field with respect to a pixel of a same spatial position of a top field of an adjacent frame, and detect a pixel of a bottom field of the current frame relative to an adjacent frame. The bottom of the same spatial position of the pixel An active state, wherein the pixel comprises a pixel point and a pixel block. In the first embodiment, each frame can be divided into a top field and a bottom field, and pixels of odd rows in the top field have pixel values, and pixels of even rows have no pixel values; pixels of even rows in the bottom field have The pixel value, the pixel of its odd row has no pixel value.
所述判断模块 130用于通过判断所述当前帧的顶场与底场的相同空间位置的像素是否至少有一 个像素的运动状态为运动来判断所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态; 所述插值模块 140用于根据所述判断模块 130判断的所述当前帧的像素相对于相邻帧相同空间 位置的像素的运动状态对所述待插值行中的像素进行插值运算。  The determining module 130 is configured to determine, by determining whether a pixel of the same spatial position of the top field and the bottom field of the current frame is a motion state of at least one pixel, to determine that the pixel of the current frame is the same space as the adjacent frame. The motion state of the pixel of the position; the interpolation module 140 is configured to: according to the motion state of the pixel of the current frame determined by the determining module 130 relative to the pixel of the same spatial position of the adjacent frame, the pixel in the row to be interpolated Perform interpolation operations.
另外,所述判断模块 130还可用于当所述当前帧的顶场与底场的相同空间位置的像素至少有一 个像素的运动状态为运动时, 判断所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态 为运动; 并当所述当前帧的顶场与底场的相同空间位置的像素没有一个像素的运动状态为运动时, 判断所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态为静止。  In addition, the determining module 130 may be further configured to: when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is at least one pixel, determine that the pixel of the current frame is relative to the adjacent frame. The motion state of the pixel in the same spatial position is motion; and when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is not moving, determining that the pixel of the current frame is adjacent to the adjacent The motion state of a pixel in the same spatial position of the frame is still.
上述的插值模块 140可包括场内插值模块 141及场间插值模块 142, 其中:  The interpolation module 140 described above may include an intra-field interpolation module 141 and an inter-field interpolation module 142, where:
所述的场内插值模块 141用于对所述待插值行中的运动状态为运动的像素进行场内插值运算; 所述的场间插值模块 142用于对所述待插值行中的运动状态为静止的像素进行场间插值运算。 另外, 所述像素可以为像素点, 所述的检测模块 110还可用于通过判断所述当前帧的顶场与所 述相邻帧的顶场的相同空间位置的像素点的像素绝对差值是否大于第一门限值, 来检测所述当前帧 的顶场的像素点相对所述相邻帧顶场的相同空间位置的像素点的运动状态; 并通过判断所述当前帧 的底场与相邻帧的底场的相同空间位置的像素点的像素绝对差值是否大于第一门限值, 来检测所述 当前帧底场的像素点相对所述相邻帧底场的相同空间位置的像素点的运动状态。  The intra-field interpolation module 141 is configured to perform an intra-field interpolation operation on the pixels in the motion-to-interpolation row that are in motion; the inter-field interpolation module 142 is configured to use the motion state in the to-be-interpolated row. Inter-field interpolation is performed for still pixels. In addition, the pixel may be a pixel, and the detecting module 110 may be further configured to determine whether a pixel absolute difference of a pixel point of the same spatial position of the top field of the current frame and the top field of the adjacent frame is And greater than the first threshold value, to detect a motion state of a pixel point of a top field of the current frame relative to a same spatial position of the top field of the adjacent frame; and determining a bottom field and a phase of the current frame by determining Whether the pixel absolute difference of the pixel point of the same spatial position of the bottom field of the adjacent frame is greater than the first threshold value, to detect the pixel of the current frame bottom field relative to the same spatial position of the adjacent frame bottom field The state of motion of the point.
该检测模块 110还可用于将所述当前帧的顶场及底场与所述相邻帧的顶场与底场分成多个像素 块, 举例来说, 若帧的图像大小为 N*M, 则检测模块 110将帧的顶场与底场按 N* (M/2)进行分像素 块, 亦可按其它方式进行分块。 并通过判断所述当前帧的顶场每个像素块的像素点与所述相邻帧的 顶场的相同空间位置的像素块的像素点的像素绝对差值是否大于第二门限值, 来检测所述当前帧的 顶场每个像素块的像素点的运动状态; 通过判断所述当前帧的底场每个像素块的像素点与所述相邻 帧的底场的相同空间位置的像素块的像素点的绝对差值是否大于第二门限值, 来检测所述当前帧的 底场每个像素块的像素点的运动状态。 这里, 当前帧的顶场的每一块与相邻帧的顶场的每个像素块 在空间位置上形成一一对应的关系。  The detection module 110 is further configured to divide the top field and the bottom field of the current frame and the top field and the bottom field of the adjacent frame into multiple pixel blocks. For example, if the image size of the frame is N*M, Then, the detecting module 110 divides the top field and the bottom field of the frame into pixel blocks by N* (M/2), and may also perform blocking in other manners. And determining whether the pixel absolute difference of the pixel point of the pixel block of the pixel unit of the top field of the current frame and the pixel location of the same spatial position of the top field of the adjacent frame is greater than a second threshold value. Detecting a motion state of a pixel point of each pixel block of the top field of the current frame; determining a pixel of the same spatial position of a bottom field of each pixel block of the current frame by determining a bottom field of the current frame Whether the absolute difference of the pixel points of the block is greater than the second threshold value to detect the motion state of the pixel point of each pixel block of the bottom field of the current frame. Here, each block of the top field of the current frame forms a one-to-one correspondence with each pixel block of the top field of the adjacent frame in a spatial position.
另外, 上述的去隔行装置 11中还可包括运算模块 120, 该运算模块 120用于标识所述当前帧 的顶场与底场的每个像素块的像素点的运动状态, 并统计所述当前帧的顶场与底场中每个像素块的 运动像素点标识的个数。 在本实施例 1中, 该运算模块 120可以对运动的像素点用 1标识, 亦可用 其它数值进行标识; 对静止的像素点可以用 0标识, 亦可用其它数值进行标识。  In addition, the de-interlacing device 11 may further include an operation module 120, where the operation module 120 is configured to identify a motion state of a pixel point of each pixel block of the top field and the bottom field of the current frame, and collect the current The number of motion pixel points for each pixel block in the top field and bottom field of the frame. In the first embodiment, the operation module 120 can mark the moving pixel points with 1 or other values; the static pixels can be identified by 0, and other values can be used for identification.
所述检测模块 110还可用于通过判断所述顶场中每个像素块的运动状态为运动的像素点的个数 是否大于第三门限值, 来检测所述顶场的每个像素块的运动状态; 并通过判断所述底场中每个像素 块的运动像素点的个数是否大于所述第三门限值, 来检测所述底场的每个像素块的运动状态。  The detecting module 110 is further configured to detect, by determining whether the motion state of each pixel block in the top field is the number of moving pixel points is greater than a third threshold, to detect each pixel block of the top field. a motion state; and detecting a motion state of each pixel block of the bottom field by determining whether the number of motion pixel points of each pixel block in the bottom field is greater than the third threshold value.
另外,所述运算模块 120还用于对所述当前帧的顶场与底场的像素的运动状态进行标识;并将 所述顶场像素的运动状态的标识与底场中相同空间位置的像素的运动状态的标识进行或运算。 在本 实施例 1中, 该运算模块 120将当前帧的顶场像素点的标识与底场像素点的标识进行或运算。 In addition, the operation module 120 is further configured to identify a motion state of a pixel of a top field and a bottom field of the current frame; The identification of the motion state of the top field pixel is ORed with the identification of the motion state of the pixel at the same spatial position in the bottom field. In the first embodiment, the operation module 120 performs an OR operation on the identifier of the top field pixel point of the current frame and the identifier of the bottom field pixel point.
所述判断模块 130还可用于通过判断或运算后的运算结果中的运动标识来判断所述当前帧的 顶场与底场的相同空间位置的像素是否至少有一个像素的运动状态为运动。 在本实施例 1中, 当判 断模块 130判断当前帧的像素为运动时, 则通知场内插值模块 141对当前帧的待插值行中的像素进 行场内插值运算, 在实际实现过程中, 所述的场内插值运算可通过现有技术中插值运算方法实现, 比如边缘自适应滤波、 边缘行平均插值等方法; 同时, 当判断模块 130判断当前帧的像素为静止时, 则通知场间插值模块 142对当前帧的待插值行中的像素进行场间插值运动, 例如可以采用像素复制 算法。  The determining module 130 is further configured to determine, by using the motion identifier in the operation result of the judgment or the operation, whether the pixel of the same spatial position of the top field and the bottom field of the current frame has a motion state of at least one pixel as motion. In the first embodiment, when the determining module 130 determines that the pixel of the current frame is moving, the intra-field interpolation module 141 is notified to perform intra-field interpolation on the pixels in the current frame to be interpolated, in the actual implementation process, The intra-field interpolation operation can be implemented by the interpolation operation method in the prior art, such as edge adaptive filtering, edge line average interpolation, etc. Meanwhile, when the determining module 130 determines that the pixel of the current frame is stationary, the inter-field interpolation is notified. The module 142 performs inter-field interpolation motion on the pixels in the row to be interpolated of the current frame, for example, a pixel copy algorithm may be employed.
所述判断模块 130还可用于通过判断或运算结果后的运动标识的比重是否大于第四门限值, 来 判断当前帧相对于相邻帧是否为全局运动, 并当判断运动标识的比重大于第四门限值时判断当前帧 相对于相邻帧为全局运动。  The determining module 130 is further configured to determine whether the current frame is globally moved relative to the adjacent frame by determining whether the proportion of the motion identifier after the result is greater than a fourth threshold, and determining that the proportion of the motion identifier is greater than The four threshold value determines that the current frame is globally moved relative to the adjacent frame.
若判断模块 130判断当前帧的像素为全局运动, 则通知场内插值模块 141对当前帧的像素进行 场内插值运算, 例如可以对运动的采用自适应滤波算法; 若判断模块 130判断当前帧的像素不是全 局运动, 则继续通过判断或运算后的运算结果中的运动标识来判断所述当前帧的顶场与底场的相同 空间位置的像素是否至少有一个像素的运动状态为运动。  If the determining module 130 determines that the pixel of the current frame is a global motion, the intra-field interpolation module 141 is notified to perform intra-field interpolation on the pixel of the current frame. For example, an adaptive filtering algorithm may be used for the motion; if the determining module 130 determines the current frame If the pixel is not a global motion, it is determined whether the pixel of the same spatial position of the top field and the bottom field of the current frame is the motion state of at least one pixel of the current frame by the motion identifier in the operation result after the judgment or the operation.
通过上述本发明实施例 1所提供的去隔行装置和视频处理系统, 就可以保证当前帧的像素不会 产生漏检, 提高了判断当前帧的像素的运动状态的精确度, 并且减少了待插值点的像素值误差, 从 而提高了图像的清晰度。  By the deinterlacing device and the video processing system provided in Embodiment 1 of the present invention, it is ensured that the pixels of the current frame are not missed, the accuracy of determining the motion state of the pixels of the current frame is improved, and the value to be interpolated is reduced. The pixel value error of the point increases the sharpness of the image.
值得注意的是, 上述系统和装置实施例中, 所包括的各个单元只是按照功能逻辑进行划分的, 但并不局限于上述的划分, 只要能够实现相应的功能即可; 另外, 各功能单元的具体名称也只是为 了便于相互区分, 并不用于限制本发明的保护范围。  It should be noted that, in the foregoing system and device embodiments, the included units are only divided according to functional logic, but are not limited to the foregoing division, as long as the corresponding functions can be implemented; The specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
实施例 2: 本发明实施例 2提供了一种去隔行方法, 如图 2所示为本发明实施 2所提供的去隔 行方法的总体流程图, 图中包括:  Embodiment 2: Embodiment 2 of the present invention provides a deinterlacing method, and FIG. 2 is a general flowchart of a deinterlacing method provided by Embodiment 2 of the present invention, and the figure includes:
步骤 S200, 接收视频数据。  Step S200, receiving video data.
步骤 S202, 检测视频数据中当前帧的顶场的像素相对于相邻帧的顶场的相同空间位置的像素的 运动状态, 并检测当前帧的底场的像素相对于相邻帧的底场的相同空间位置的像素的运动状态。  Step S202, detecting a motion state of a pixel of a top field of the current frame in the video data with respect to a pixel of a same spatial position of a top field of the adjacent frame, and detecting a bottom field of the current frame relative to a bottom field of the adjacent frame. The motion state of pixels in the same spatial position.
步骤 S204, 通过判断所述当前帧的顶场与底场的相同空间位置的像素是否至少有一个像素的运 动状态为运动来判断所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态。  Step S204, determining whether the pixel of the current frame is relative to the pixel of the same spatial position of the adjacent frame by determining whether the pixel of the same spatial position of the top field and the bottom field of the current frame is motion of at least one pixel. Movement state.
在本实施例 2中, 步骤 S204还包括以下步骤: 步骤 A、 对所述当前帧的顶场与底场的像素的运 动状态进行标识; 步骤 B、 将所述顶场像素的运动状态的标识与底场中相同空间位置的像素的运动 状态的标识进行或运算; 步骤 C、 通过判断或运算后的运算结果中的运动标识来判断所述当前帧的 顶场与底场的相同空间位置的像素是否至少有一个像素的运动状态为运动。  In the second embodiment, step S204 further includes the following steps: Step A: identifying a motion state of a pixel of a top field and a bottom field of the current frame; Step B, identifying an activity state of the top field pixel Performing an operation with the identifier of the motion state of the pixel at the same spatial position in the bottom field; Step C: determining the same spatial position of the top field and the bottom field of the current frame by using the motion identifier in the operation result after the judgment or operation Whether the pixel has at least one pixel of motion is motion.
步骤 S206, 对当前帧的待插值行中的运动状态为运动的像素进行场内插值运算, 之后执行步骤 S210, 输出处理后的当前帧, 并结束。 步骤 S208, 对当前帧的待插值行的运动状态为静止的像素进行场间插值运算, 之后执行步骤 S210, 并结束。 Step S206, performing an intra-field interpolation operation on the pixels whose motion state is to be interpolated in the current frame to be moved, and then performing step S210, outputting the processed current frame, and ending. Step S208, performing inter-field interpolation on the pixels whose motion state of the current frame to be interpolated is still, and then performing step S210, and ending.
上述待插值行的像素包括当前帧和相邻帧中的待插值行的象素。  The pixels to be interpolated are included in the current frame and the pixels of the adjacent frame in the adjacent frame.
实施例 3: 本发明实施例 3提供了另一种去隔行方法, 如图 3所示为本发明实施 3所提供另一 种去隔行方法的详细流程图, 图中包括:  Embodiment 3: Embodiment 3 of the present invention provides another deinterlacing method. FIG. 3 is a detailed flowchart of another deinterlacing method provided by Embodiment 3 of the present invention, and the figure includes:
步骤 S300, 接收视频数据, 该视频数据为隔行扫描后的视频数据, 其中的视频数据的每一帧包 括顶场的像素点及底场的像素点。  Step S300: Receive video data, where the video data is interlaced video data, where each frame of the video data includes a pixel of a top field and a pixel of a bottom field.
步骤 S302, 计算当前帧的顶场与相邻帧的顶场的相同空间位置的像素点的像素绝对差值, 及计 算当前帧的底场与相邻帧的相同空间位置的底场的像素点的像素绝对差值。  Step S302, calculating a pixel absolute difference of pixel points of the same spatial position of the top field of the current frame and the top field of the adjacent frame, and calculating a pixel point of the bottom field of the same spatial position of the bottom field of the current frame and the adjacent frame. The absolute difference in pixels.
举例来说, 将一个大小为 8 X 6图像的当前帧, 分成大小为 8 X 6的当前帧的顶场 (如图 4) 和大小为 8 X 6的当前帧的底场 (如图 5), 由于顶场的奇数行的像素点具有像素值, 而偶数行的像 素点没有像素值, 亦该行可作为插值行, 故将顶场中偶数行的像素点的像素值置 0, 且该像素点作 为插值点, 而底场与顶场相反, 底场中的偶数行的像素点有像素值, 而奇数行的像素点没有像素值, 故奇数行作为插值行; 同理, 将相邻帧分成 8x 6的相邻帧的顶场 (如图 6) 和大小为 8 X 6的相邻 帧的底场 (如图 7)。 将当前帧的顶场与相邻帧的相同空间位置的顶场的像素点进行像素绝对差值计 算, 则得到图 8; 将当前帧的底场与相邻帧的相同空间位置的底场的像素点进行像素绝对差值计算, 则得到图 9。 For example, divide a current frame of size 8 X 6 into the top field of the current frame of size 8 X 6 (as in Figure 4) and the bottom field of the current frame of size 8 X 6 (Figure 5). Since the pixels of the odd-numbered rows of the top field have pixel values, and the pixels of the even-numbered rows have no pixel values, the row can also be used as an interpolation row, so the pixel value of the pixels of the even-numbered rows in the top field is set to 0, and The pixel is used as the interpolation point, and the bottom field is opposite to the top field. The pixel of the even line in the bottom field has the pixel value, and the pixel of the odd line has no pixel value, so the odd line is used as the interpolation line; similarly, the adjacent The frame is divided into a top field of 8x6 adjacent frames (as in Figure 6) and a bottom field of adjacent frames of size 8 x 6 (Figure 7). Pixel absolute difference calculation is performed on the top field of the current frame and the pixel of the top field of the same spatial position of the adjacent frame, and FIG. 8 is obtained ; the bottom field of the current frame and the bottom field of the same spatial position of the adjacent frame are obtained. The pixel is subjected to pixel absolute difference calculation, and FIG. 9 is obtained.
步骤 S304, 检测当前帧顶场的像素点相对于相邻帧顶场的相同空间位置的像素点的运动状态, 及检测当前帧底场的像素点相对于相邻帧底场的相同空间位置的像素点的运动状态。  Step S304, detecting a motion state of a pixel point of a pixel position of a current frame top field relative to a same spatial position of an adjacent frame top field, and detecting a same spatial position of a pixel point of a current frame bottom field relative to an adjacent frame bottom field. The motion state of the pixel.
在本实施例 3中, 通过判断当前帧的顶场与相邻帧的顶场的相同空间位置的像素点的像素绝对 差值是否大于第一门限值来检测当前帧的顶场的相同空间位置的像素点相对于相邻帧顶场的像素点 的运动状态, 及通过判断当前帧的底场与相邻帧的底场的相同空间位置的像素点的像素绝对差值是 否大于第一门限值来检测当前帧底场的像素点相对于相邻帧底场的相同空间位置的像素点的运动状 态。 在具体实现过程中, 第一门限值可以为 5, 亦可为其它数值。  In the third embodiment, the same space of the top field of the current frame is detected by determining whether the pixel absolute difference of the pixel points of the same spatial position of the top field of the current frame and the top field of the adjacent frame is greater than the first threshold value. The motion state of the pixel of the position relative to the pixel of the top field of the adjacent frame, and whether the absolute difference of the pixel of the pixel of the same spatial position of the bottom field of the current frame and the bottom field of the adjacent frame is greater than the first gate The limit value is used to detect the motion state of the pixel point of the current frame bottom field relative to the same spatial position of the adjacent frame bottom field. In a specific implementation process, the first threshold may be 5 or other values.
若检测当前帧顶场的像素点相对于相邻帧顶场的相同空间位置的像素点的运动状态为静止, 或 检测当前帧底场的像素点相对于相邻帧底场的相同空间位置的像素点的运动状态为静止, 则进入步 骤 S306, 将静止的像素点的运动状态用 0进行标识, 亦可用其它数值进行标识。 举例来说, 若图 8 中的像素点的像素绝对差值小于 5, 即为静止, 则用 0标识该像素点的运动状态; 同理, 若图 9中 的像素点的像素绝对差值小于 5, 即为静止, 则用 0标识该像素点的运动状态。  If the motion state of the pixel point of the same spatial position of the top field of the adjacent frame is detected to be stationary, or the pixel position of the bottom field of the current frame is detected with respect to the same spatial position of the bottom field of the adjacent frame When the motion state of the pixel is still, the process proceeds to step S306, and the motion state of the stationary pixel is identified by 0, and other values may be used for identification. For example, if the pixel absolute difference of the pixel in FIG. 8 is less than 5, that is, stationary, the motion state of the pixel is identified by 0. Similarly, if the pixel absolute difference of the pixel in FIG. 9 is less than 5, that is, if it is still, use 0 to identify the motion state of the pixel.
若检测当前帧顶场的像素点相对于相邻帧顶场的相同空间位置的像素点的运动状态为运动, 及 检测当前帧底场的像素点相对于相邻帧底场的相同空间位置的像素点的运动状态为运动, 则进入步 骤 308, 将运动的像素点的运动状态用 1进行标识, 亦可用其它数值进行标识。 举例来说, 将顶场 的图 8中的每个数值与第一门限值进行比较,若图 10中的像素点的像素绝对差值大于 5,即为运动, 则用 1标识该像素点的运动状态; 同理, 若图 9中的像素点的像素绝对差值大于 5, 即为运动, 则 用 1标识该像素点的运动状态。 在执行完步骤 S306或步骤 S308后, 就可以得到顶场的图 10及底场的图 11。 If it is detected that the motion state of the pixel point of the top field of the current frame relative to the same spatial position of the adjacent frame top field is motion, and detecting the same spatial position of the pixel point of the bottom field of the current frame relative to the bottom field of the adjacent frame When the motion state of the pixel is motion, the process proceeds to step 308, and the motion state of the moving pixel is identified by 1, and may be identified by other values. For example, comparing each value in FIG. 8 of the top field with the first threshold value, if the pixel absolute difference of the pixel in FIG. 10 is greater than 5, that is, motion, the pixel is identified by 1 For the same reason, if the pixel absolute difference of the pixel in FIG. 9 is greater than 5, that is, motion, the motion state of the pixel is identified by 1. After step S306 or step S308 is performed, FIG. 10 of the top field and FIG. 11 of the bottom field are obtained.
步骤 S310, 将顶场像素点的运动状态的标识与底场中相同空间位置的像素点的运动状态的标识 进行或运算。  Step S310, the identifier of the motion state of the top field pixel point is ORed with the identifier of the motion state of the pixel point of the same spatial position in the bottom field.
在本实施例 3中, 在进行或运算之前, 需将判断之后的顶场的标识与底场的标识进行扩展运算, 其中包括两种情况, 如下:  In the third embodiment, before the OR operation, the identifier of the top field after the judgment and the identifier of the bottom field need to be expanded, including two cases, as follows:
第一情况, 在顶场中, 由于偶数行始终为 0, 故将偶数行相邻的奇数行的标识复制到偶数行中, 即将图 10变成图 12所示; 同理, 将底场的图 11变成图 13所示, 最后, 将扩展之后的顶场与底场 的标识进行或运算, 即将图 12与图 13的标识进行或运算, 得到图 14所示。  In the first case, in the top field, since the even rows are always 0, the identifiers of the odd rows adjacent to the even rows are copied into the even rows, that is, FIG. 10 is changed to that shown in FIG. 12; similarly, the bottom field is Fig. 11 is changed to Fig. 13. Finally, the top field after the expansion is ORed with the flag of the bottom field, that is, the sign of Fig. 12 and Fig. 13 is ORed to obtain Fig. 14.
在本实施例 3中, 运算后的结果仍为标识, 即一个标识与另一个标识进行或运算后, 其结果仍 为标识, 该标识还是标识某一个像素点的运动状态。 如图 14中, 1标识着当前帧的某一个像素点的 运动状态为运动, 0标识着当前帧的另一个像素点的运动状态为静止。  In the third embodiment, the result of the operation is still an identifier, that is, after an identifier is ORed with another identifier, the result is still an identifier, and the identifier still identifies the motion state of a certain pixel. As shown in Fig. 14, 1 indicates that the motion state of one pixel of the current frame is motion, and 0 indicates that the motion state of another pixel of the current frame is still.
第二情况, 在顶场中, 将偶数行置 0, 同理, 将底场中的奇数行置 0, 由于顶场中的偶数行的像 素值为 0, 则扩展之后的顶场与未扩展之前的标识未变, 同理, 扩展之后的底场与未扩展之前的标 识未变, 最后, 将顶场与底场的标识进行或运算, 则得到图 15所示。  In the second case, in the top field, the even rows are set to 0. Similarly, the odd rows in the bottom field are set to 0. Since the pixel values of the even rows in the top field are 0, the top field after expansion and the unexpanded The previous identifier has not changed. Similarly, the bottom field after expansion and the identifier before expansion are unchanged. Finally, the top field and the bottom field identifier are ORed, and the result shown in FIG. 15 is obtained.
步骤 S312, 通过判断或运算后的运算结果中的运动标识来判断当前帧的像素点相对于相邻帧的 相同空间位置的像素点的运动状态。  Step S312, judging the motion state of the pixel point of the current frame with respect to the pixel position of the same spatial position of the adjacent frame by the motion identifier in the operation result after the judgment or the operation.
在本实施例 3中, 若对当前帧进行底场插值运算, 则判断底场的插值行的像素点的运动状态。 若对当前帧进行顶场插值运算, 则判断顶场的插值行的像素点的运动状态。  In the third embodiment, if the bottom field interpolation operation is performed on the current frame, the motion state of the pixel point of the interpolation line of the bottom field is judged. If the top field interpolation operation is performed on the current frame, the motion state of the pixel point of the interpolation line of the top field is judged.
若判断当前帧的像素点相对于相邻帧的相同空间位置的像素点的运动状态为运动运动, 则进入 步骤 S314, 对该像素点采用场内插值运算。 在本实施例 3中, 当对当前帧的底场进行插值运算时, 若判断底场的插值行的像素点的运动状态为运动, 则对该像素点 (即插值点) 采用场内插值运算, 同理, 当对当前帧的顶场采用插值运算时, 若判断顶场的插值行的像素点发生运动, 则对该像素点 (即插值点) 采用场内插值运算。  If it is determined that the motion state of the pixel point of the current frame relative to the same spatial position of the adjacent frame is motion motion, then step S314 is performed, and an intra-field interpolation operation is performed on the pixel point. In the third embodiment, when the bottom field of the current frame is interpolated, if the motion state of the pixel of the interpolation line of the bottom field is determined to be motion, the intra-field interpolation operation is performed on the pixel point (ie, the interpolation point). Similarly, when an interpolation operation is performed on the top field of the current frame, if it is determined that the pixel of the interpolation field of the top field is moving, an intra-field interpolation operation is performed on the pixel point (ie, the interpolation point).
若判断当前帧的像素点相对于相邻帧的相同空间位置的像素点的运动状态为静止, 则进入步骤 S316, 对该像素点采用场间插值运算。 在本实施例 3中, 当对当前帧的底场进行插值运算时, 若判 断底场的插值行的像素点的运动状态为静止, 则对该像素点(即插值点)采用场间插值运算, 同理, 当对当前帧的顶场采用插值运算时, 若判断顶场的插值行的像素点的运动状态为静止, 则对该像素 点 (即插值点) 采用场间插值运算。 在本实施例 3中, 场内插值运算为边沿自适应滤波算法, 场间 插值运算为像素复制算法, 因场内插值及场间插值皆为习知技术, 此处不再叙述。  If it is determined that the motion state of the pixel point of the current frame with respect to the same spatial position of the adjacent frame is still, then the process proceeds to step S316, and an inter-field interpolation operation is performed on the pixel point. In the third embodiment, when the bottom field of the current frame is interpolated, if the motion state of the pixel of the interpolation line of the bottom field is determined to be stationary, the inter-field interpolation operation is performed on the pixel point (ie, the interpolation point). Similarly, when an interpolation operation is performed on the top field of the current frame, if it is determined that the motion state of the pixel of the interpolation field of the top field is stationary, an inter-field interpolation operation is performed on the pixel point (ie, the interpolation point). In the third embodiment, the intra-field interpolation operation is an edge-adaptive filtering algorithm, and the inter-field interpolation operation is a pixel copy algorithm. Since intra-field interpolation and inter-field interpolation are well-known techniques, they are not described here.
在执行步骤 S314或 S316后, 再执行步骤 S318, 输出运算后的当前帧。  After performing step S314 or S316, step S318 is executed to output the current frame after the operation.
通过本发明实施例 3技术方案的实施, 就可以提高判断当前帧的像素的运动状态的精确度, 从 而保证了当前帧的像素点不会产生漏检, 并且减少了待插值点的像素误差, 从而提高了图像的清晰 度。  By implementing the technical solution of Embodiment 3 of the present invention, the accuracy of determining the motion state of the pixel of the current frame can be improved, thereby ensuring that the pixel point of the current frame does not cause missed detection, and the pixel error of the point to be inserted is reduced. Thereby improving the sharpness of the image.
实施例 4: 本发明实施例 4提供了另一种去隔行方法, 如图 16所示为本发明实施 4所提供的另 一种去隔行方法的详细流程图, 图中包括: 步骤 S400, 接收视频数据流。 Embodiment 4: Embodiment 4 of the present invention provides another deinterlacing method. FIG. 16 is a detailed flowchart of another deinterlacing method according to Embodiment 4 of the present invention. The figure includes: Step S400, receiving a video data stream.
步骤 S402, 将当前帧及相邻帧的顶场与底场分成多个像素块。  Step S402, dividing the top field and the bottom field of the current frame and the adjacent frame into a plurality of pixel blocks.
在本实施例 4中, 若帧的图像大小为 N*M, 则检测模块 110将帧的顶场与底场按 N* (M/2 )进行 分块, 亦可按其它方式进行分块。 若假设帧的图像大小为 8x12,则将帧的顶场与底场按 8x6分成二 个像素块, 如图 17为当前帧的顶场, 图 18为当前帧的底场, 图 19为相邻帧的顶场, 图 20为相邻 帧的底场。  In the fourth embodiment, if the image size of the frame is N*M, the detecting module 110 blocks the top field and the bottom field of the frame by N* (M/2), and may also perform blocking in other manners. If the image size of the frame is assumed to be 8x12, the top field and the bottom field of the frame are divided into two pixel blocks by 8x6, as shown in Fig. 17 as the top field of the current frame, and Fig. 18 is the bottom field of the current frame, and Fig. 19 is adjacent The top field of the frame, Figure 20 is the bottom field of the adjacent frame.
步骤 S404, 计算当前帧的顶场与相邻帧的相同空间位置的顶场的像素点的像素绝对差值, 及计 算当前帧的底场与相邻帧的相同空间位置的底场的像素点的绝对差值。  Step S404, calculating a pixel absolute difference of a pixel of a top field of a top field of the current frame and an identical spatial position of an adjacent frame, and calculating a pixel point of a bottom field of the same spatial position of the bottom field of the current frame and the adjacent frame. The absolute difference.
在本实施例 4中, 通过计算可得到顶场的像素绝对差值, 如图 21 ; 同理, 可得底场的像素绝对 差值, 如图 22。  In the fourth embodiment, the absolute difference of the pixels of the top field can be obtained by calculation, as shown in Fig. 21; similarly, the absolute difference of the pixels of the bottom field can be obtained, as shown in Fig. 22.
步骤 S406, 检测当前帧的顶场中每个像素块的像素点相对于相邻帧的顶场的相同空间位置的像 素块的像素点的运动状态, 及检测当前帧的底场每个像素块的像素点相对于相邻帧的底场的相同空 间位置的像素块的像素点的运动状态。  Step S406, detecting a motion state of a pixel point of a pixel block of each pixel block in a top field of a current frame with respect to a same spatial position of a top field of an adjacent frame, and detecting each pixel block of a bottom field of the current frame. The motion state of the pixel point of the pixel block relative to the same spatial position of the bottom field of the adjacent frame.
在本实施例 4中, 通过判断当前帧的顶场每个像素块的像素点与相邻帧的顶场的相同空间位置 的像素块的像素点的像素绝对差值是否大于第二门限值来检测当前帧的顶场每个像素块的像素点的 运动状态, 及通过判断当前帧的底场每个像素块的像素点与相邻帧的底场的相同空间位置的像素块 的像素点的绝对差值是否大于第二门限值来检测当前帧的底场每个像素块的像素点的运动状态。 在 本实施例 4中, 第二门限值可以为 2, 亦可为其它数值。  In the fourth embodiment, whether the pixel absolute difference of the pixel points of the pixel block of the pixel position of each pixel block of the top field of the current frame and the pixel of the same spatial position of the adjacent frame is greater than the second threshold value. To detect the motion state of the pixel point of each pixel block of the top field of the current frame, and to determine the pixel point of the pixel block of the same spatial position of the pixel point of each pixel block of the bottom field of the current frame and the bottom field of the adjacent frame. Whether the absolute difference is greater than the second threshold to detect the motion state of the pixel of each pixel block of the bottom field of the current frame. In the fourth embodiment, the second threshold value may be 2, and may be other values.
若检测当前帧的顶场中的每个像素块的像素点相对于相邻帧的顶场中的相同空间位置的像素块 的像素点的运动状态为静止, 或若检测当前帧的底场中的每个像素块的像素点相对于相邻帧的底场 中的相同空间位置的像素块的像素点为静止, 则进入步骤 S408, 将该像素点的运动状态用 0标识, 亦可用其它数值进行标识。  If the motion state of the pixel point of the pixel block of each pixel block in the top field of the current frame is detected to be stationary relative to the pixel position of the same spatial position in the top field of the adjacent frame, or if the bottom field of the current frame is detected If the pixel of each pixel block is stationary relative to the pixel of the pixel block of the same spatial position in the bottom field of the adjacent frame, the process proceeds to step S408, and the motion state of the pixel is marked with 0, and other values may be used. Mark it.
若检测当前帧的顶场中的每个像素块的像素点相对于相邻帧的顶场中的相同空间位置的像素块 的像素点的运动状态为运动, 或若判断当前帧的底场中的每个像素块的像素点相对于相邻帧的底场 中的相同空间位置的像素块的像素点的运动状态为运动, 则进入步骤 S410, 将该像素点的运动状态 用 1标识为, 亦可用其它数值进行标识, 并统计顶场与底场中每个像素块的运动像素点标识的个数。  If the motion state of the pixel point of the pixel block of each pixel block in the top field of the current frame relative to the pixel position of the same spatial position in the top field of the adjacent frame is detected as motion, or if the bottom field of the current frame is determined The motion state of the pixel point of the pixel block of each pixel block relative to the pixel position of the same spatial position in the bottom field of the adjacent frame is motion, and then proceeds to step S410, and the motion state of the pixel point is identified by 1, Other values can also be used to identify and count the number of motion pixel points for each pixel block in the top and bottom fields.
执行完步骤 S408或 S410, 就可以得到顶场的标识图, 如图 23所示; 同理, 可得底场的标识图, 如图 24所示。  After performing step S408 or S410, the identification map of the top field can be obtained, as shown in FIG. 23; similarly, the identification map of the bottom field can be obtained, as shown in FIG.
步骤 S412, 检测顶场与底场中每个像素块的运动状态。  Step S412, detecting a motion state of each pixel block in the top field and the bottom field.
在本实施例 4中, 通过判断顶场中每个像素块的运动像素点的个数是否大于第三门限值来检测 顶场中的每个像素块的运动状态, 及通过判断底场中每个像素块的运动像素点的个数是否大于第三 门限值来判断底场中的每个像素块的运动状态。 在本实施例 4中, 第三门限值为 11, 亦可为其它数 值。  In the fourth embodiment, the motion state of each pixel block in the top field is detected by determining whether the number of motion pixel points of each pixel block in the top field is greater than a third threshold value, and by determining the bottom field Whether the number of moving pixel points of each pixel block is greater than a third threshold value determines the motion state of each pixel block in the bottom field. In the fourth embodiment, the third threshold value is 11, and may be other values.
若判断顶场中的像素块的运动状态为运动时, 或若判断底场中的像素块的运动状态为运动时, 进入步骤 S416, 将该块的运动状态标识为 1, 亦可用其它数值进行标识。 若判断顶场中的像素块不是运动块时, 或若判断顶场中的像素块不是运动块时, 即静止块, 进 入步骤 S414, 将该块标识为 0, 亦可用其它数值进行标识。 If it is determined that the motion state of the pixel block in the top field is motion, or if it is determined that the motion state of the pixel block in the bottom field is motion, the process proceeds to step S416, and the motion state of the block is marked as 1, and other values may be used. Logo. If it is determined that the pixel block in the top field is not a motion block, or if it is determined that the pixel block in the top field is not a motion block, that is, a static block, the process proceeds to step S414, and the block is identified as 0, and may be identified by other values.
在本实施例 4中, 图 23中, 顶场中左边像素块的标识为 1的个数为 12, 右边像素块的标识 1 的个数为 2 ; 图 24中, 底场中左边像素块的标识为 1的个数为 14, 右边像素块的标识为 1的个数为 15 , 则将顶场左边像素块的运动状态标识为 1, 右边像素块的运动状态标识 0, 将底场左边像素块的 运动状态标识 1, 右边像素块的运动状态标识为 1。 In the fourth embodiment, in FIG. 23, the number of the identifier of the left pixel block in the top field is 12, and the number of the identifier 1 of the right pixel block is 2 ; in FIG. 24, the left pixel block in the bottom field The number of the identifier 1 is 14, and the number of the identifier of the right pixel block is 15. The motion state of the pixel block on the left side of the top field is identified as 1, the motion state of the right pixel block is 0, and the pixel on the left side of the bottom field. The motion state of the block is identified by 1, and the motion state of the right pixel block is identified as 1.
步骤 S418, 将顶场中每个像素块的运动状态的标识与底场中的相同空间位置的像素块的运动状 态的标识进行或运算。  Step S418, the identifier of the motion state of each pixel block in the top field is ORed with the identifier of the motion state of the pixel block in the same spatial position in the bottom field.
在本实施例 4中, 将顶场中左边像素块的运动状态的标识与底场中左边像素块的运动状态的标 识进行或运算, 则运算结果为 1 ; 将顶场中的右边像素块的运动状态的标识与底场中右边像素块的 运动状态的标识进行或运算, 则运算结果为 1。  In the fourth embodiment, if the identifier of the motion state of the left pixel block in the top field is ORed with the identifier of the motion state of the left pixel block in the bottom field, the operation result is 1; the right pixel block in the top field is The operation state is ORed with the flag of the motion state of the right pixel block in the bottom field, and the operation result is 1.
步骤 S420, 判断当前帧的每个像素块相对于相邻帧的相同空间位置的像素块的运动状态。 在本实施例 4中,通过判断步骤 S418中的或运算结果中的运动标识来判断当前帧的每个像素块 相对于相邻帧的相同空间位置的像素块的运动状态。  Step S420: Determine a motion state of a pixel block of the same spatial position of each pixel block of the current frame with respect to the adjacent frame. In the fourth embodiment, the motion state of the pixel block of the same spatial position of each pixel block of the current frame with respect to the adjacent frame is judged by judging the motion flag in the OR operation result in step S418.
若判断当前帧的像素块的运动状态为运动,进入步骤 S422,对当前帧的该块进行场内插值运算。 在本实施例 4中, 当对当前帧的底场进行插值运算, 则对底场的该块中的所有插值行采用场内插值 运算。 当对当前帧的顶场进行插值运算, 则对顶场的该块中的所有插值行采用场内插值运算。  If it is determined that the motion state of the pixel block of the current frame is motion, the process proceeds to step S422, and the intra-frame interpolation operation is performed on the block of the current frame. In the fourth embodiment, when the bottom field of the current frame is interpolated, an intra-field interpolation operation is performed on all the interpolation lines in the block of the bottom field. When the top field of the current frame is interpolated, an interpolated operation is performed on all interpolated lines in the block of the top field.
若判断当前帧的像素块的运动状态为静止,进入步骤 S424,对当前帧的该块进行场间插值运算。 在本实施例 4中, 当对当前帧的底场进行插值运算, 则对底场的该块中的所有插值行采用场间插值 运算。 当对当前帧的顶场进行插值运算, 则对顶场的该块中的所有插值行采用场间插值运算。  If it is determined that the motion state of the pixel block of the current frame is still, the process proceeds to step S424, and the inter-field interpolation operation is performed on the block of the current frame. In the fourth embodiment, when the bottom field of the current frame is interpolated, inter-field interpolation is performed on all the interpolated lines in the block of the bottom field. When interpolating the top field of the current frame, inter-field interpolation is used for all interpolated lines in the block of the top field.
在本实施例 4中, 由于运算结果皆为 1, 则进入步骤 S422。  In the fourth embodiment, since the operation results are all 1, the process proceeds to step S422.
在执行完步骤 S422或 S424后, 执行步骤 S426 , 输出处理后的当前帧。  After step S422 or S424 is performed, step S426 is executed to output the processed current frame.
在本实施例 4中, 执行完步骤 S422 , 输出处理后的当前帧。  In the fourth embodiment, step S422 is executed, and the processed current frame is output.
实施例 5 : 为进一步提高图像的清晰度, 本发明实施例 5提供了另一种去隔行方法, 如图 25所 示为本发明实施 5所提供的另一种去隔行方法的总体流程图, 图中包括:  Embodiment 5: In order to further improve the clarity of an image, Embodiment 5 of the present invention provides another deinterlacing method, and FIG. 25 is a general flowchart of another deinterlacing method provided by Embodiment 5 of the present invention. The figure includes:
步骤 S500, 接收视频数据。  Step S500, receiving video data.
步骤 S502, 检测视频数据中当前帧的顶场的像素相对于相邻帧的顶场的相同空间位置的像素的 运动状态, 及检测当前帧的底场的像素相对于相邻帧的底场的相同空间位置的像素的运动状态。  Step S502, detecting a motion state of a pixel of a top field of the current frame in the video data with respect to a pixel of a same spatial position of a top field of the adjacent frame, and detecting a bottom field of the current frame with respect to a bottom field of the adjacent frame. The motion state of pixels in the same spatial position.
步骤 S504, 判断当前帧相对于相邻帧是否为全局运动。  Step S504, determining whether the current frame is globally moved with respect to the adjacent frame.
在本实施例 5中, 步骤 S504还包括以下步骤: 步骤 C、 对所述当前帧的顶场与底场的像素的运 动状态进行标识; 步骤 D、 将所述顶场像素的运动状态的标识与底场中相同空间位置的像素的运动 状态的标识进行或运算; 步骤 F、 通过判断或运算结果后的运动标识的比重是否大于第四门限值来 判断当前帧相对于相邻帧是否为全局运动。  In the embodiment 5, the step S504 further includes the following steps: Step C: identifying a motion state of a pixel of a top field and a bottom field of the current frame; Step D: identifying an activity state of the top field pixel And performing an operation with the identifier of the motion state of the pixel in the same spatial position in the bottom field; Step F: determining whether the current frame is relative to the adjacent frame by determining whether the specific gravity of the motion identifier after the result is greater than a fourth threshold Global movement.
若判断当前帧为全局运动, 则进入步骤 S508。  If it is determined that the current frame is a global motion, then step S508 is reached.
若判断当前帧不为全局运动, 则进入步骤 S506 , 进一步通过判断所述当前帧的顶场与底场的相 同空间位置的像素是否至少有一个像素的运动状态为运动来判断所述当前帧的像素相对于相邻帧相 同空间位置的像素的运动状态。 If it is determined that the current frame is not global motion, proceed to step S506, and further determine the phase of the top field and the bottom field of the current frame. Whether the pixel of the same spatial position has a motion state of at least one pixel is motion to determine the motion state of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame.
若判断当前帧的像素相对于相邻帧的像素的为运动, 则进入步骤 S508, 对当前帧进行场内插值 运算, 之后执行步骤 S512 , 输出处理后的当前帧, 并结束。  If it is determined that the pixel of the current frame is moving relative to the pixel of the adjacent frame, the process proceeds to step S508, and the current frame is subjected to the intra-field interpolation operation, and then step S512 is performed, and the processed current frame is output, and the process ends.
若判断当前帧的像素点相对于相邻帧的像素为静止, 则进入步骤 S510, 对当前帧进行场间插值 运算, 之后执行步骤 S512 , 并结束。  If it is determined that the pixel of the current frame is stationary with respect to the pixel of the adjacent frame, the process proceeds to step S510, and the inter-field interpolation operation is performed on the current frame, and then step S512 is performed, and the process ends.
实施例 6 : 本发明实施例 6提供了另一种去隔行方法, 如图 26所示为本发明实施例 6所提供的 另一种去隔行方法的详细流程图, 图中包括:  Embodiment 6: Embodiment 6 of the present invention provides another deinterlacing method. FIG. 26 is a detailed flowchart of another deinterlacing method according to Embodiment 6 of the present invention. The figure includes:
在本实施例 6中, 步骤 S600至步骤 S610的实施过程与实施例 3中的步骤 S300至步骤 S310的 实施过程为相同的过程, 此处不再描述。  In the sixth embodiment, the implementation process of step S600 to step S610 is the same as the implementation process of step S300 to step S310 in the embodiment 3, and is not described here.
步骤 S612 , 判断当前帧相对于相邻帧是否为全局运动。  Step S612: Determine whether the current frame is globally moved with respect to the adjacent frame.
在本实施例 6中, 通过判断运算后的标识中的像素点的运动标识的比重是否大于第四门限值来 判断当前帧相对于相邻帧是否为全局运动。 在本实施例 6中, 第四门限值为 50%, 亦可为其它数值, 但至少要大于或等于 50%。  In the sixth embodiment, it is judged whether the current frame is globally moved with respect to the adjacent frame by determining whether the specific gravity of the motion indicator of the pixel point in the calculated flag is greater than the fourth threshold value. In the sixth embodiment, the fourth threshold value is 50%, and may be other values, but at least 50% or more.
若判断当前帧相对于相邻帧为全局运动, 则进入步骤 S614。  If it is determined that the current frame is globally moved with respect to the adjacent frame, then step S614 is reached.
若判断当前帧相对于相邻帧不为全局运动, 则进入步骤 S616 , 继续判断所述当前帧的像素相对 于相邻帧相同空间位置的像素点的运动状态。  If it is determined that the current frame is not globally moved with respect to the adjacent frame, then step S616 is continued to continue to determine the motion state of the pixel of the current frame relative to the pixel position of the same spatial position of the adjacent frame.
若判断当前帧的像素点相对于相邻帧的相同空间位置的像素点的运动状态为运动, 则进入步骤 S614, 对该像素点采用场内插值运算。 在本实施例 6中, 当对当前帧的底场进行插值运算时, 若判 断底场的插值行的像素点的运动状态为运动, 则对该像素点(即插值点)采用场内插值运算, 同理, 当对当前帧的顶场采用插值运算时, 若判断顶场的插值行的像素点发生运动, 则对该像素点 (即插 值点) 采用场内插值运算。  If it is determined that the motion state of the pixel point of the current frame relative to the pixel position of the same spatial position of the adjacent frame is motion, then step S614 is performed, and an intra-field interpolation operation is performed on the pixel point. In the sixth embodiment, when the bottom field of the current frame is interpolated, if the motion state of the pixel of the interpolation line of the bottom field is determined to be motion, the intra-field interpolation operation is performed on the pixel point (ie, the interpolation point). Similarly, when an interpolation operation is performed on the top field of the current frame, if it is determined that the pixel of the interpolation field of the top field is moving, an intra-field interpolation operation is performed on the pixel point (ie, the interpolation point).
若判断当前帧的像素点相对于相邻帧的相同空间位置的像素点的运动状态为静止, 则进入步骤 S618, 对该像素点采用场间插值运算。 在本实施例 6中, 当对当前帧的底场进行插值运算时, 若判 断底场的插值行的像素点的运动状态为静止, 则对该像素点(即插值点)采用场间插值运算, 同理, 当对当前帧的顶场采用插值运算时, 若判断顶场的插值行的像素点未发生运动, 则对该像素点 (即 插值点)采用场间插值运算。  If it is determined that the motion state of the pixel point of the current frame with respect to the same spatial position of the adjacent frame is still, then the process proceeds to step S618, and an inter-field interpolation operation is performed on the pixel point. In the sixth embodiment, when the bottom field of the current frame is interpolated, if the motion state of the pixel of the interpolation line of the bottom field is determined to be stationary, inter-field interpolation is used for the pixel (ie, the interpolation point). Similarly, when an interpolation operation is performed on the top field of the current frame, if it is determined that the pixel of the interpolation field of the top field does not move, an inter-field interpolation operation is performed on the pixel point (ie, the interpolation point).
在执行步骤 S614或 S618后, 再执行步骤 S620, 输出运算后的当前帧。  After performing step S614 or S618, step S620 is performed to output the current frame after the operation.
实施例 7 : 本发明实施例 7提供了另一种去隔行方法, 如图 27所示为本发明实施例 7所提供另 一种去隔行方法的详细流程图, 图中包括:  Embodiment 7: Embodiment 7 of the present invention provides another deinterlacing method. FIG. 27 is a detailed flowchart of another deinterlacing method according to Embodiment 7 of the present invention. The figure includes:
在本实施例 7中, 步骤 S700至步骤 S718的实施过程与实施例 4中的步骤 S400至步骤 S418的 实施过程为相同的过程, 此处不再描述。  In the seventh embodiment, the implementation process of step S700 to step S718 is the same as the implementation process of step S400 to step S418 in the embodiment 4, and is not described here.
步骤 S720, 判断当前帧相对于相邻帧是否为全局运动。  Step S720: Determine whether the current frame is globally moved with respect to the adjacent frame.
在本实施例 7中, 通过判断运算后的标识中像素块的运动标识的比重是否大于第四门限值来判 断当前帧相对于相邻帧是否为全局运动。 在本实施例 7 中, 第四门限值为 50%, 亦可为其它数值, 但至少要大于或等于 50%。 In the seventh embodiment, it is determined whether the current frame is globally moved with respect to the adjacent frame by determining whether the specific gravity of the motion indicator of the pixel block in the calculated identifier is greater than the fourth threshold. In the seventh embodiment, the fourth threshold value is 50%, and other values may be used. But at least 50% or more.
若判断当前帧相对于相邻帧为全局运动, 则进入步骤 S722。  If it is determined that the current frame is globally moved with respect to the adjacent frame, then step S722 is reached.
若判断当前帧相对于相邻帧不为全局运动, 则进入步骤 S724, 继续通过判断每个像素块运算后 的运算结果中的运动标识判断当前帧的每个像素块相对于相邻帧的相同空间位置的像素块的运动状 态。  If it is determined that the current frame is not globally moved with respect to the adjacent frame, the process proceeds to step S724, and it is determined that the motion identifier in the operation result after each pixel block operation is determined to determine that each pixel block of the current frame is the same as the adjacent frame. The motion state of the pixel block in the spatial position.
若判断当前帧的每个像素块相对于相邻帧的相同空间位置的像素块的运动状态为运动, 则进入 步骤 S722, 对该块采用场内插值运算。 在本实施例 7中, 当对当前帧的底场进行插值运算, 则对底 场的该块中的所有插值行采用场内插值运算。 当对当前帧的顶场进行插值运算, 则对顶场的该块中 的所有插值行采用场内插值运算。  If it is determined that the motion state of each pixel block of the current frame relative to the same spatial position of the adjacent frame is motion, then step S722 is performed, and an intra-field interpolation operation is performed on the block. In the seventh embodiment, when the bottom field of the current frame is interpolated, an intra-field interpolation operation is performed on all the interpolation lines in the block of the bottom field. When the top field of the current frame is interpolated, an interpolated operation is performed on all interpolated lines in the block of the top field.
若判断当前帧的每个像素块相对于相邻帧的相同空间位置的像素块的运动状态为静止, 则进入 步骤 S726, 对该块采用场间插值运算。 在本实施例 7中, 当对当前帧的底场进行插值运算, 则对底 场的该块中的所有插值行采用场间插值运算。 当对当前帧的顶场进行插值运算, 则对顶场的该块中 的所有插值行采用场间插值运算。  If it is judged that the motion state of each pixel block of the current frame with respect to the same spatial position of the adjacent frame is still, then the flow proceeds to step S726, where an inter-field interpolation operation is employed. In the seventh embodiment, when the bottom field of the current frame is interpolated, inter-field interpolation is performed on all the interpolated lines in the block of the bottom field. When interpolating the top field of the current frame, inter-field interpolation is used for all interpolated lines in the block of the top field.
在执行步骤 S722或 S726后, 再执行步骤 S728, 输出运算后的当前帧。  After step S722 or S726 is performed, step S728 is performed to output the current frame after the operation.
通过上述实施例 6和 7技术方案的实施, 就可以保证当前帧的像素不会产生漏检, 提高了判断 当前帧的像素的运动状态的精确度, 并且减少了待插值点的像素误差, 从而提高了图像的清晰度。  Through the implementation of the foregoing technical solutions of Embodiments 6 and 7, it is ensured that the pixels of the current frame are not missed, the accuracy of determining the motion state of the pixels of the current frame is improved, and the pixel error of the point to be interpolated is reduced, thereby Improve the clarity of the image.
另外, 本领域技术人员可以理解, 本发明各实施例所提供的方法中, 其全部或部分步骤是可以 通过程序指令相关的硬件来完成。 比如可以通过计算机运行程来完成, 该程序可以存储在可读取存 储介质, 例如随机存储器、 磁盘、 光盘等。  In addition, those skilled in the art can understand that all or part of the steps in the methods provided by the embodiments of the present invention can be completed by using related hardware. For example, it can be completed by a computer running program, which can be stored in a readable storage medium such as a random access memory, a magnetic disk, an optical disk, or the like.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案而非对其进行限制, 尽管参照较佳 实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然可以对本发明的技术 方案进行修改或者等同替换, 而这些修改或者等同替换亦不能使修改后的技术方案脱离本发明技术 方案的精神和范围。  It should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the embodiments of the present invention. The technical solutions of the present invention may be modified or equivalently substituted, and the modified technical solutions may not deviate from the spirit and scope of the technical solutions of the present invention.

Claims

权利要求 Rights request
1、 一种视频数据的去隔行方法, 其特征在于, 包括:  A deinterlacing method for video data, characterized in that it comprises:
检测视频数据中当前帧的顶场像素相对于相邻帧的顶场在相同空间位置上的像素的运动状态, 并检测当前帧的底场像素相对于相邻帧的底场在相同空间位置上的像素的运动状态;  Detecting a motion state of a top field pixel of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detecting that a bottom field pixel of the current frame is in the same spatial position with respect to a bottom field of the adjacent frame The motion state of the pixel;
通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一个像素的运动状态为运 动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态;  Judging whether the pixel of the current frame is in motion with respect to the same spatial position pixel of the adjacent frame by determining whether the motion of the pixel of the same spatial position of the top field and the bottom field of the current frame is at least one pixel;
根据所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态来对待插值行的像素进行 插值处理。  The pixels to be interpolated are interpolated according to the motion state of the pixels of the current frame relative to the pixels of the same spatial position of the adjacent frames.
2、 根据权利要求 1所述的方法, 其特征在于, 所述待插值行的像素包括: 当前帧和相邻帧中 的待插值行的象素。  2. The method according to claim 1, wherein the pixels of the row to be interpolated comprise: pixels of a current frame and an adjacent frame in an adjacent frame.
3、 根据权利要求 1所述的视频数据的去隔行方法, 其特征在于, 所述通过判断所述当前帧的 顶场与底场的相同空间位置的像素是否至少有一个像素的运动状态为运动, 来判断所述当前帧的像 素相对于相邻帧相同空间位置像素的运动状态, 具体包括:  The method for deinterlacing video data according to claim 1, wherein the determining whether the pixel of the same spatial position of the top field and the bottom field of the current frame has at least one pixel is motion , to determine the motion state of the pixel of the current frame relative to the same spatial position pixel of the adjacent frame, specifically including:
当判断所述当前帧的顶场与底场的相同空间位置的像素至少有一个像素的运动状态为运动时, 则所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态为运动;  When it is determined that the motion state of at least one pixel of the pixel of the same spatial position of the top field and the bottom field of the current frame is motion, the motion state of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame is Exercise
当判断所述当前帧的顶场与底场的相同空间位置的像素没有一个像素的运动状态为运动时,则 所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态为静止。  When it is determined that the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is not moving, the motion state of the pixel of the current frame relative to the pixel of the same spatial position of the adjacent frame is static. .
4、 根据权利要求 3所述的视频数据的去隔行方法, 其特征在于, 所述根据所述当前帧的像素 相对于相邻帧相同空间位置像素的运动状态来对待插值行的像素进行插值处理, 具体包括:  The deinterlacing method for video data according to claim 3, wherein the pixel of the interpolation row is interpolated according to a motion state of a pixel of the current frame with respect to a pixel of the same spatial position of an adjacent frame. Specifically, including:
对所述待插值行中运动状态为运动的像素进行场内插值运算,并对所述待插值行中运动状态为 静止的像素进行场间插值运算。  Performing an intra-field interpolation operation on the pixels whose motion state is motion in the to-be-interpolated row, and performing inter-field interpolation operations on the pixels whose motion state is still in the to-be-interpolated row.
5、 根据权利要求 1所述的视频数据的去隔行方法, 其特征在于, 所述检测视频数据中当前帧的 顶场像素相对于相邻帧的顶场在相同空间位置上的像素的运动状态, 并检测当前帧的底场像素相对 于相邻帧的底场在相同空间位置上的像素的运动状态, 具体包括:  The deinterlacing method for video data according to claim 1, wherein the detecting the motion state of the top field pixel of the current frame in the video data with respect to the top field of the adjacent frame at the same spatial position And detecting the motion state of the pixel of the bottom field pixel of the current frame relative to the bottom field of the adjacent frame in the same spatial position, specifically including:
通过判断所述当前帧的顶场与所述相邻帧的顶场的相同空间位置上的像素点的像素绝对差值是 否大于第一门限值, 来检测所述当前帧的顶场的像素点相对所述相邻帧顶场的相同空间位置上的像 素点的运动状态;  Detecting a pixel of a top field of the current frame by determining whether a pixel absolute difference of a pixel point at a same spatial position of a top field of the current frame and a top field of the adjacent frame is greater than a first threshold value a motion state of a pixel point at a same spatial position relative to a top field of the adjacent frame;
通过判断所述当前帧的底场与相邻帧的底场的相同空间位置上的像素点的像素绝对差值是否大 于第一门限值, 来检测所述当前帧底场的像素点相对所述相邻帧底场的相同空间位置上的像素点的 运动状态。  Detecting a pixel point of the bottom field of the current frame by determining whether a pixel absolute difference of a pixel point at a same spatial position of a bottom field of the current frame and a bottom field of an adjacent frame is greater than a first threshold value The state of motion of the pixel points at the same spatial position of the bottom field of the adjacent frame.
6、 根据权利要求 1所述的视频数据的去隔行方法, 其特征在于, 所述检测视频数据中当前帧的 顶场像素相对于相邻帧的顶场在相同空间位置上的像素的运动状态, 并检测当前帧的底场像素相对 于相邻帧的底场在相同空间位置上的像素的运动状态, 具体包括:  The deinterlacing method for video data according to claim 1, wherein the detecting the motion state of the top field pixel of the current frame in the video data with respect to the top field of the adjacent frame at the same spatial position And detecting the motion state of the pixel of the bottom field pixel of the current frame relative to the bottom field of the adjacent frame in the same spatial position, specifically including:
将所述当前帧及所述相邻帧的顶场与底场分成多个像素块;  Dividing the top field and the bottom field of the current frame and the adjacent frame into a plurality of pixel blocks;
通过判断所述当前帧的顶场每个像素块的像素点与所述相邻帧的顶场的相同空间位置上的像素 块的像素点的像素绝对差值是否大于第二门限值, 来判断所述当前帧的顶场每个像素块的像素点的 运动状态; Determining pixels at the same spatial position of a pixel of each pixel block of the top field of the current frame and a top field of the adjacent frame Whether the pixel absolute difference of the pixel of the block is greater than the second threshold to determine the motion state of the pixel of each pixel block of the top field of the current frame;
通过判断所述当前帧的底场每个像素块的像素点与所述相邻帧的底场的相同空间位置上的像素 块的像素点的绝对差值是否大于所述第二门限值, 来判断所述当前帧的底场每个像素块的像素点的 运动状态。  Determining whether an absolute difference between a pixel point of a pixel block of each pixel block of the bottom field of the current frame and a pixel block at a same spatial position of a bottom field of the adjacent frame is greater than the second threshold value, The motion state of the pixel point of each pixel block of the bottom field of the current frame is determined.
7、 根据权利要求 1所述的视频数据的去隔行方法, 其特征在于, 所述检测视频数据中当前帧的 顶场像素相对于相邻帧的顶场在相同空间位置上的像素的运动状态, 并检测当前帧的底场像素相对 于相邻帧的底场在相同空间位置上的像素的运动状态, 具体包括:  The deinterlacing method for video data according to claim 1, wherein the detecting the motion state of the top field pixel of the current frame in the video data with respect to the top field of the adjacent frame at the same spatial position And detecting the motion state of the pixel of the bottom field pixel of the current frame relative to the bottom field of the adjacent frame in the same spatial position, specifically including:
对所述当前帧的顶场与底场的每个像素块的像素点的运动状态进行标识;  Identifying a motion state of a pixel point of each pixel block of the top field and the bottom field of the current frame;
统计所述当前帧的顶场与底场中每个像素块的运动状态为运动的像素点的标识的个数; 通过判断所述顶场中每个像素块的运动状态为运动的像素点的个数是否大于第三门限值,来检 测所述顶场的每个像素块的运动状态;  Counting, in the top field and the bottom field, the motion state of each pixel block in the bottom field is the number of identifiers of the moving pixel points; determining that the motion state of each pixel block in the top field is a moving pixel point Whether the number is greater than a third threshold to detect a motion state of each pixel block of the top field;
并通过判断所述底场中每个像素块的运动像素点的个数是否大于所述第三门限值,来检测所述 底场的每个像素块的运动状态。  And detecting, by determining whether the number of motion pixel points of each pixel block in the bottom field is greater than the third threshold value, detecting a motion state of each pixel block of the bottom field.
8、 根据权利要求 1所述的视频数据的去隔行方法, 其特征在于, 所述通过判断所述当前帧的 顶场与底场的相同空间位置像素是否至少有一个像素的运动状态为运动, 来判断所述当前帧的像素 相对于相邻帧相同空间位置像素的运动状态, 具体包括:  The deinterlacing method for video data according to claim 1, wherein the determining whether the motion state of at least one pixel of the top field and the bottom field of the current frame is motion is The determining, by the pixel of the current frame, the motion state of the pixel in the same spatial position relative to the adjacent frame, specifically includes:
对所述当前帧的顶场与底场的像素的运动状态进行标识;  Identifying a motion state of a pixel of a top field and a bottom field of the current frame;
将所述顶场像素的运动状态的标识与底场中相同空间位置的像素的运动状态的标识进行或运 算;  Performing or calculating an identifier of a motion state of the top field pixel and an identifier of a motion state of a pixel at the same spatial position in the bottom field;
通过判断或运算后的运算结果中的运动标识,来判断所述当前帧的顶场与底场的相同空间位置 的像素是否至少有一个像素的运动状态为运动。  Whether the pixel of the same spatial position of the top field and the bottom field of the current frame has a motion state of at least one pixel is motion by determining the motion identifier in the operation result after the operation or the operation.
9、 根据权利要求 8所述的视频数据的去隔行方法, 其特征在于, 所述通过判断或运算后的运算 结果中的运动标识, 来判断所述当前帧的顶场与底场的相同空间位置的像素是否至少有一个像素的 运动状态为运动, 具体包括:  The deinterlacing method for video data according to claim 8, wherein the determining the same space of the top field and the bottom field of the current frame by using the motion identifier in the operation result after the judgment or the operation Whether the pixel of the position has at least one pixel of motion state is motion, and specifically includes:
通过判断或运算结果后的运动标识的比重是否大于第四门限值来判断当前帧相对于相邻帧是否 为全局运动;  Whether the current frame is globally moved relative to the adjacent frame by determining whether the proportion of the motion identifier after the result is greater than the fourth threshold value;
若判断运动标识的比重大于第四门限值, 则当前帧相对于相邻帧为全局运动, 并对当前帧进行 场内插值运算;  If it is determined that the proportion of the motion indicator is greater than the fourth threshold, the current frame is globally moved relative to the adjacent frame, and the intraframe interpolation operation is performed on the current frame;
若判断运动标识的比重不大于第四门限值, 则当前帧相对于相邻帧不为全局运动, 并通过判断 或运算后的运算结果中的运动标识, 来判断所述当前帧的顶场与底场的相同空间位置的像素是否至 少有一个像素的运动状态为运动。  If it is determined that the proportion of the motion indicator is not greater than the fourth threshold, the current frame is not globally moved relative to the adjacent frame, and the top field of the current frame is determined by the motion identifier in the operation result after the judgment or operation. Whether the pixel of the same spatial position as the bottom field has a motion state of at least one pixel is motion.
10、 一种视频数据的去隔行装置, 其特征在于, 包括:  10. A deinterlacing device for video data, comprising:
检测模块, 用于检测视频数据中当前帧的顶场像素相对于相邻帧的顶场在相同空间位置上的像 素的运动状态,并检测当前帧的底场像素相对于相邻帧的底场在相同空间位置上的像素的运动状态; 判断模块, 用于通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一个像素的 运动状态为运动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态; a detecting module, configured to detect a motion state of a top field pixel of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detect a bottom field of the current frame relative to a bottom field of the adjacent frame The motion state of a pixel at the same spatial position; a judging module, configured to determine, by motion, that a pixel of the current frame is in the same spatial position as a pixel of the adjacent frame by determining whether a motion state of at least one pixel of the top field and the bottom field of the current frame is motion State of motion;
插值模块, 用于根据所述判断模块判断的所述当前帧的像素相对于相邻帧相同空间位置像素的 运动状态来对待插值行的像素进行插值处理。  And an interpolation module, configured to perform interpolation processing on the pixels of the interpolation row according to the motion state of the pixel of the current frame determined by the determining module with respect to the pixel of the same spatial position of the adjacent frame.
11、 根据权利要求 10所述的去隔行装置, 其特征在于,  11. The deinterlacing device of claim 10, wherein
所述判断模块,还用于当所述当前帧的顶场与底场的相同空间位置的像素至少有一个像素的运 动状态为运动时, 判断所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态为运动; 并 当所述当前帧的顶场与底场的相同空间位置的像素没有一个像素的运动状态为运动时, 判断所述当 前帧的像素相对于相邻帧相同空间位置的像素的运动状态为静止。  The determining module is further configured to: when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is at least one pixel, determine that the pixel of the current frame is the same space as the adjacent frame. The motion state of the pixel of the position is motion; and when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is not the motion state of the pixel, it is determined that the pixel of the current frame is the same as the adjacent frame The motion state of the pixel at the spatial position is stationary.
12、 根据权利要求 11所述的去隔行装置, 其特征在于, 所述插值模块包括:  The deinterlacing device according to claim 11, wherein the interpolation module comprises:
场内插值模块, 用于对所述待插行中运动状态为运动的像素进行场内插值运算;  An intra-field interpolation module, configured to perform an intra-field interpolation operation on a pixel whose motion state is to be inserted in the row;
场间插值模块, 用于对所述待插行中运动状态为静止的像素进行场间插值运算。  The inter-field interpolation module is configured to perform inter-field interpolation on the pixels whose motion state is stationary in the row to be inserted.
13、 根据权利要求 10所述的去隔行装置, 其特征在于,  13. The deinterlacing device of claim 10, wherein
所述检测模块, 还用于通过判断所述当前帧的顶场与所述相邻帧的顶场的相同空间位置的像素 点的像素绝对差值是否大于第一门限值, 来检测所述当前帧的顶场的像素点相对所述相邻帧顶场的 相同空间位置的像素点的运动状态; 并通过判断所述当前帧的底场与相邻帧的底场的相同空间位置 的像素点的像素绝对差值是否大于第一门限值, 来检测所述当前帧底场的像素点相对所述相邻帧底 场的相同空间位置的像素点的运动状态。  The detecting module is further configured to detect, by determining whether a pixel absolute difference of a pixel point of a same spatial position of a top field of the current frame and a top field of the adjacent frame is greater than a first threshold value. a motion state of a pixel point of a top field of the current frame relative to a pixel point of the same spatial position of the adjacent frame top field; and by determining a pixel of the same spatial position of the bottom field of the current frame and the bottom field of the adjacent frame Whether the pixel absolute difference of the point is greater than the first threshold value, to detect the motion state of the pixel point of the current frame bottom field relative to the same spatial position of the adjacent frame bottom field.
14、 根据权利要求 10所述的去隔行装置, 其特征在于,  14. The deinterlacing device of claim 10, wherein:
所述检测模块,还用于将所述当前帧的顶场及底场与所述相邻帧的顶场与底场分成多个像素块, 通过判断所述当前帧的顶场每个像素块的像素点与所述相邻帧的顶场的相同空间位置的像素块的像 素点的像素绝对差值是否大于第二门限值, 来检测所述当前帧的顶场每个像素块的像素点的运动状 态; 并通过判断所述当前帧的底场每个像素块的像素点与所述相邻帧的底场的相同空间位置的像素 块的像素点的绝对差值是否大于第二门限值, 来检测所述当前帧的底场每个像素块的像素点的运动 状态。  The detecting module is further configured to divide the top field and the bottom field of the current frame and the top field and the bottom field of the adjacent frame into a plurality of pixel blocks, by determining each pixel block of the top field of the current frame. Detecting whether the pixel absolute difference of the pixel point of the pixel block of the same spatial position of the top field of the adjacent frame is greater than a second threshold value to detect the pixel of each pixel block of the top field of the current frame a motion state of the point; and determining whether the absolute difference of the pixel points of the pixel block of the same spatial position of the pixel of each pixel block of the bottom field of the current frame and the bottom field of the adjacent frame is greater than the second gate a limit value to detect a motion state of a pixel point of each pixel block of the bottom field of the current frame.
15、 根据权利要求 14所述的去隔行装置, 其特征在于, 所述装置还包括:  The deinterlacing device according to claim 14, wherein the device further comprises:
运算模块,用于标识所述当前帧的顶场与底场的每个像素块的像素点的运动状态,并统计所述 当前帧的顶场与底场中每个像素块的运动像素点标识的个数。  An operation module, configured to identify a motion state of a pixel point of each pixel block of the top field and the bottom field of the current frame, and collect a motion pixel point identifier of each pixel block in the top field and the bottom field of the current frame The number.
16、 根据权利要求 15所述的去隔行装置, 其特征在于,  16. The deinterlacing device of claim 15 wherein:
所述检测模块, 还用于通过判断所述顶场中每个像素块的运动状态为运动的像素点的个数是否 大于第三门限值, 来检测所述顶场的每个像素块的运动状态; 并通过检测所述底场中每个像素块的 运动像素点的个数是否大于所述第三门限值, 来检测所述底场的每个像素块的运动状态。  The detecting module is further configured to detect, by determining whether the motion state of each pixel block in the top field is the number of pixels of the motion is greater than a third threshold, to detect each pixel block of the top field. a motion state; and detecting a motion state of each pixel block of the bottom field by detecting whether the number of motion pixel points of each pixel block in the bottom field is greater than the third threshold value.
17、 根据权利要求 15所述的去隔行装置, 其特征在于,  17. The deinterlacing device of claim 15 wherein:
所述运算模块,还用于对所述当前帧的顶场与底场的像素的运动状态进行标识,并将所述顶场 像素的运动状态的标识与底场中相同空间位置的像素的运动状态的标识进行或运算。 The operation module is further configured to identify a motion state of a pixel of a top field and a bottom field of the current frame, and identify a motion state of the top field pixel and a motion of a pixel at a same spatial position in a bottom field The identity of the state is ORed.
18、 根据权利要求 17所述的去隔行装置, 其特征在于, 18. The deinterlacing device of claim 17 wherein:
所述判断模块,还用于通过判断或运算后的运算结果中的运动标识来判断所述当前帧的顶场与 底场的相同空间位置的像素是否至少有一个像素的运动状态为运动。  The determining module is further configured to determine, by using the motion identifier in the operation result of the judgment or the operation, whether the pixel of the same spatial position of the top field and the bottom field of the current frame has a motion state of at least one pixel as motion.
19、 根据权利要求 18所述的去隔行装置, 其特征在于,  19. The deinterlacing device of claim 18, wherein
所述判断模块, 还用于通过判断或运算结果后的运动标识的比重是否大于第四门限值, 来判断 当前帧相对于相邻帧是否为全局运动; 并在运动标识的比重大于第四门限值时, 判断当前帧相对于 相邻帧为全局运动。  The determining module is further configured to determine whether the current frame is globally moved relative to the adjacent frame by determining whether the proportion of the motion identifier after the result is greater than a fourth threshold; and the proportion of the motion identifier is greater than the fourth At the threshold value, it is judged that the current frame is globally moved with respect to the adjacent frame.
20、 一种视频数据的视频处理系统, 其特征在于, 包括:  20. A video processing system for video data, comprising:
数据接收装置, 用于接收视频数据;  a data receiving device, configured to receive video data;
去隔行装置, 用于检测视频数据中当前帧的顶场像素相对于相邻帧的顶场在相同空间位置上的 像素的运动状态, 并检测当前帧的底场像素相对于相邻帧的底场在相同空间位置上的像素的运动状 态; 再通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一个像素的运动状态为运 动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态; 并根据所述当前帧的像 素相对于相邻帧相同空间位置像素的运动状态来对待插值行的像素进行插值处理。  Deinterlacing means for detecting a motion state of a pixel of a top field of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detecting a bottom field pixel of the current frame relative to a bottom of the adjacent frame Determining the motion state of the pixel in the same spatial position; determining whether the pixel of the current frame is relative by determining whether the motion state of at least one pixel of the top field and the bottom field of the current frame is motion The motion state of the pixel in the same spatial position of the adjacent frame; and interpolating the pixels of the interpolation row according to the motion state of the pixel of the current frame with respect to the same spatial position pixel of the adjacent frame.
21、 根据权利要求 20所述的视频处理系统, 其特征在于, 所述去隔行装置包括:  The video processing system according to claim 20, wherein the deinterlacing device comprises:
检测模块, 用于检测视频数据中当前帧的顶场像素相对于相邻帧的顶场在相同空间位置上的像 素的运动状态,并检测当前帧的底场像素相对于相邻帧的底场在相同空间位置上的像素的运动状态; 判断模块, 用于通过判断所述当前帧的顶场与底场的相同空间位置像素是否至少有一个像素的 运动状态为运动, 来判断所述当前帧的像素相对于相邻帧相同空间位置像素的运动状态;  a detecting module, configured to detect a motion state of a top field pixel of a current frame in a video data with respect to a top field of an adjacent frame at a same spatial position, and detect a bottom field of the current frame relative to a bottom field of the adjacent frame a motion state of the pixel at the same spatial position; a determining module, configured to determine the current frame by determining whether a motion state of at least one pixel of the top spatial field and the bottom field of the current frame is motion The motion state of the pixels relative to the same spatial position of the adjacent frame;
插值模块, 用于根据所述判断模块判断的所述当前帧的像素相对于相邻帧相同空间位置像素的 运动状态来对待插值行的像素进行插值处理。  And an interpolation module, configured to perform interpolation processing on the pixels of the interpolation row according to the motion state of the pixel of the current frame determined by the determining module with respect to the pixel of the same spatial position of the adjacent frame.
22、 根据权利要求 21所述的视频处理系统, 其特征在于,  22. The video processing system of claim 21, wherein:
所述判断模块,还用于当所述当前帧的顶场与底场的相同空间位置的像素至少有一个像素的运 动状态为运动时, 判断所述当前帧的像素相对于相邻帧相同空间位置的像素的运动状态为运动; 并 当所述当前帧的顶场与底场的相同空间位置的像素没有一个像素的运动状态为运动时, 判断所述当 前帧的像素相对于相邻帧相同空间位置的像素的运动状态为静止。  The determining module is further configured to: when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is at least one pixel, determine that the pixel of the current frame is the same space as the adjacent frame. The motion state of the pixel of the position is motion; and when the motion state of the pixel of the same spatial position of the top field and the bottom field of the current frame is not the motion state of the pixel, it is determined that the pixel of the current frame is the same as the adjacent frame The motion state of the pixel at the spatial position is stationary.
23、 根据权利要求 22所述的视频处理系统, 其特征在于, 所述插值模块包括:  The video processing system according to claim 22, wherein the interpolation module comprises:
场内插值模块, 用于对所述待插值行中的运动状态为运动的像素进行场内插值运算; 场间插值模块, 用于对所述待插值行中的运动状态为静止的像素进行场间插值运算。  An intra-field interpolation module, configured to perform an intra-field interpolation operation on a pixel whose motion state is motion in the row to be interpolated; an inter-field interpolation module, configured to perform a field on the pixel in which the motion state in the row to be interpolated is still Interpolation operation.
24、 根据权利要求 21所述的视频处理系统, 其特征在于,  24. The video processing system of claim 21, wherein:
所述检测模块, 还用于通过判断所述当前帧的顶场与所述相邻帧的顶场的相同空间位置的像素 点的像素绝对差值是否大于第一门限值, 来检测所述当前帧的顶场的像素点相对所述相邻帧顶场的 相同空间位置的像素点的运动状态; 并通过判断所述当前帧的底场与相邻帧的底场的相同空间位置 的像素点的像素绝对差值是否大于第一门限值, 来检测所述当前帧底场的像素点相对所述相邻帧底 场的相同空间位置的像素点的运动状态。 The detecting module is further configured to detect, by determining whether a pixel absolute difference of a pixel point of a same spatial position of a top field of the current frame and a top field of the adjacent frame is greater than a first threshold value. a motion state of a pixel point of a top field of the current frame relative to a pixel point of the same spatial position of the adjacent frame top field; and by determining a pixel of the same spatial position of the bottom field of the current frame and the bottom field of the adjacent frame Whether the pixel absolute difference of the point is greater than the first threshold value, to detect the motion state of the pixel point of the current frame bottom field relative to the same spatial position of the adjacent frame bottom field.
25、 根据权利要求 21所述的视频处理系统, 其特征在于, 25. The video processing system of claim 21, wherein:
所述检测模块,还用于将所述当前帧的顶场及底场与所述相邻帧的顶场与底场分成多个像素块, 通过判断所述当前帧的顶场每个像素块的像素点与所述相邻帧的顶场的相同空间位置的像素块的像 素点的像素绝对差值是否大于第二门限值, 来检测所述当前帧的顶场每个像素块的像素点的运动状 态; 并通过判断所述当前帧的底场每个像素块的像素点与所述相邻帧的底场的相同空间位置的像素 块的像素点的绝对差值是否大于第二门限值, 来检测所述当前帧的底场每个像素块的像素点的运动 状态。  The detecting module is further configured to divide the top field and the bottom field of the current frame and the top field and the bottom field of the adjacent frame into a plurality of pixel blocks, by determining each pixel block of the top field of the current frame. Detecting whether the pixel absolute difference of the pixel point of the pixel block of the same spatial position of the top field of the adjacent frame is greater than a second threshold value to detect the pixel of each pixel block of the top field of the current frame a motion state of the point; and determining whether the absolute difference of the pixel points of the pixel block of the same spatial position of the pixel of each pixel block of the bottom field of the current frame and the bottom field of the adjacent frame is greater than the second gate a limit value to detect a motion state of a pixel point of each pixel block of the bottom field of the current frame.
26、 根据权利要求 25所述的视频处理系统, 其特征在于, 所述去隔行装置还包括: 运算模块,用于标识所述当前帧的顶场与底场的每个像素块的像素点的运动状态,并统计所述 当前帧的顶场与底场中每个像素块的运动像素点标识的个数。  The video processing system according to claim 25, wherein the deinterlacing device further comprises: an operation module, configured to identify a pixel of each pixel block of the top field and the bottom field of the current frame The motion state, and counting the number of motion pixel points of each pixel block in the top field and the bottom field of the current frame.
27、 根据权利要求 26所述的视频处理系统, 其特征在于,  27. The video processing system of claim 26, wherein:
所述检测模块, 还用于通过判断所述顶场中每个像素块的运动状态为运动的像素点的个数是否 大于第三门限值, 来检测所述顶场的每个像素块的运动状态; 并通过判断所述底场中每个像素块的 运动像素点的个数是否大于所述第三门限值, 来检测所述底场的每个像素块的运动状态。  The detecting module is further configured to detect, by determining whether the motion state of each pixel block in the top field is the number of pixels of the motion is greater than a third threshold, to detect each pixel block of the top field. a motion state; and detecting a motion state of each pixel block of the bottom field by determining whether the number of motion pixel points of each pixel block in the bottom field is greater than the third threshold value.
28、 根据权利要求 26所述的视频处理系统, 其特征在于,  28. The video processing system of claim 26, wherein:
所述运算模块,还用于对所述当前帧的顶场与底场的像素的运动状态进行标识,并将所述顶场 像素的运动状态的标识与底场中相同空间位置的像素的运动状态的标识进行或运算。  The operation module is further configured to identify a motion state of a pixel of a top field and a bottom field of the current frame, and identify a motion state of the top field pixel and a motion of a pixel at a same spatial position in a bottom field The identity of the state is ORed.
29、 根据权利要求 28所述的视频处理系统, 其特征在于,  29. The video processing system of claim 28, wherein:
所述判断模块,还用于通过判断或运算后的运算结果中的运动标识来判断所述当前帧的顶场与 底场的相同空间位置的像素是否至少有一个像素的运动状态为运动。  The determining module is further configured to determine, by using the motion identifier in the operation result of the judgment or the operation, whether the pixel of the same spatial position of the top field and the bottom field of the current frame has a motion state of at least one pixel as motion.
30、 根据权利要求 29所述的视频处理系统, 其特征在于,  30. The video processing system of claim 29, wherein:
所述判断模块, 还用于通过判断或运算结果后的运动标识的比重是否大于第四门限值, 来判断 当前帧相对于相邻帧是否为全局运动; 并在运动标识的比重大于第四门限值时, 判断当前帧相对于 相邻帧为全局运动。  The determining module is further configured to determine whether the current frame is globally moved relative to the adjacent frame by determining whether the proportion of the motion identifier after the result is greater than a fourth threshold; and the proportion of the motion identifier is greater than the fourth At the threshold value, it is judged that the current frame is globally moved with respect to the adjacent frame.
PCT/CN2009/071867 2008-05-20 2009-05-20 Deinterlacing method, deinterlacing device and video process system for video data WO2009140916A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810067381.X 2008-05-20
CN200810067381XA CN101588444B (en) 2008-05-20 2008-05-20 Interlacing removal method, interlacing removal device and video processing system for video data

Publications (1)

Publication Number Publication Date
WO2009140916A1 true WO2009140916A1 (en) 2009-11-26

Family

ID=41339784

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071867 WO2009140916A1 (en) 2008-05-20 2009-05-20 Deinterlacing method, deinterlacing device and video process system for video data

Country Status (2)

Country Link
CN (1) CN101588444B (en)
WO (1) WO2009140916A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868870A (en) * 2012-09-28 2013-01-09 许丹 Deinterlacing processing method

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702877A (en) * 2014-12-02 2015-06-10 深圳市云宙多媒体技术有限公司 Video de-interlacing method and device
CN105898179A (en) * 2015-12-14 2016-08-24 乐视云计算有限公司 Deinterlace method and device for interlaced video
CN107306346B (en) * 2016-04-18 2019-11-22 深圳市中兴微电子技术有限公司 Image processing method and device, player, electronic equipment
CN107666560B (en) * 2016-07-28 2020-11-17 北京数码视讯科技股份有限公司 Video de-interlacing method and device
CN108810601B (en) * 2017-05-04 2020-10-27 福州瑞芯微电子股份有限公司 Motion subtitle de-interleaving method, system, mobile terminal and readable storage medium
CN113822866A (en) * 2021-09-23 2021-12-21 深圳爱莫科技有限公司 Widely-adaptive axle number identification method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1173776A (en) * 1996-01-27 1998-02-18 三星电子株式会社 Interlaced-to-progressive conversion apparatus and method using motion and spatial correlation
US6188437B1 (en) * 1998-12-23 2001-02-13 Ati International Srl Deinterlacing technique
CN1477869A (en) * 2002-07-26 2004-02-25 ���ǵ�����ʽ���� Interlacing-removing device and method
CN1512771A (en) * 2002-12-30 2004-07-14 三星电子株式会社 Method and device for video frequency removing interleave

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100464580C (en) * 2006-06-12 2009-02-25 北京中星微电子有限公司 Motion detecting and uninterlacing method for digital video frequency processing and apparatus thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1173776A (en) * 1996-01-27 1998-02-18 三星电子株式会社 Interlaced-to-progressive conversion apparatus and method using motion and spatial correlation
US6188437B1 (en) * 1998-12-23 2001-02-13 Ati International Srl Deinterlacing technique
CN1477869A (en) * 2002-07-26 2004-02-25 ���ǵ�����ʽ���� Interlacing-removing device and method
CN1512771A (en) * 2002-12-30 2004-07-14 三星电子株式会社 Method and device for video frequency removing interleave

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868870A (en) * 2012-09-28 2013-01-09 许丹 Deinterlacing processing method

Also Published As

Publication number Publication date
CN101588444B (en) 2011-07-20
CN101588444A (en) 2009-11-25

Similar Documents

Publication Publication Date Title
WO2009140916A1 (en) Deinterlacing method, deinterlacing device and video process system for video data
US8199252B2 (en) Image-processing method and device
US6999128B2 (en) Stillness judging device and scanning line interpolating device having it
US9049336B2 (en) Auto-detect method for detecting image format and playback method applying the same
JP4869045B2 (en) Interpolation frame creation method and interpolation frame creation apparatus
CN100433791C (en) Film mode correction in still areas
JP2005318621A (en) Ticker process in video sequence
US20050225671A1 (en) Method of Processing Fields of Images and Related Device for Data Lines Similarity Detection
JP3893227B2 (en) Scanning line interpolation apparatus and scanning line interpolation method
WO2004017634A1 (en) Image processing device and method, video display device, and recorded information reproduction device
JP2005045803A (en) Apparatus and method for detecting 2:2 pull-down sequence
JP4510874B2 (en) Composite image detector
US8059920B2 (en) Method and apparatus for pixel interpolation
US20050163355A1 (en) Method and unit for estimating a motion vector of a group of pixels
US20120274845A1 (en) Image processing device and method, and program
US8254682B2 (en) Pattern detecting method and related image processing apparatus
US20060033839A1 (en) De-interlacing method
JP5241632B2 (en) Image processing circuit and image processing method
JP2007129400A (en) Film mode detector and video display
JP2003179886A (en) Image processing apparatus and method, recording medium, and program
US20050219411A1 (en) Method of Processing Video Fields and Related Fields Similarity Detection Apparatus
Tai et al. A motion and edge adaptive deinterlacing algorithm
TWI489873B (en) Image detecting device and method
JP4929963B2 (en) Pull-down sequence detection program and pull-down sequence detection device
US10015513B2 (en) Image processing apparatus and image processing method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09749459

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09749459

Country of ref document: EP

Kind code of ref document: A1