Video signal de-interlacing method and device and electronic equipment
By combining direction correlation interpolation and median filtering algorithms, the interpolation method is selected according to the motion state, the image quality problem of the existing deinterlacing technology in different motion scenarios is solved, and high-quality image recovery is achieved.
Patent Information
- Application Number
- CN202510545321.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-07-04
AI Technical Summary
The existing deinterlacing technology has problems with large image differences and sawtooth effects in scenes with slower motion and faster motion. A single directional correlation interpolation or median filtering algorithm cannot meet the needs of high-quality images.
Combining direction correlation interpolation and median filtering algorithm, by obtaining the motion coefficient of the pixel points to be interpolated, selecting the appropriate interpolation algorithm according to the motion state, and optimizing the interpolation method.
The interpolation effect is optimized in different motion scenarios, the image quality is improved, the sawtooth effect and image differences are avoided, and high-quality deinterlacing is achieved.
Smart Images

Figure CN120263928A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video signal processing, and particularly relates to a video signal deinterlacing method, device and electronic device. Background Art
[0002] Video signals are transmitted in the form of data frames, and the transmitted data often includes multiple lines of data. Currently, the corresponding scanning transmission technologies include progressive scanning technology and interlaced scanning technology. Among them, each field of data transmitted by the progressive scanning technology contains all lines of data. As Figure 1 shown, for the three lines of data among them, the first line of data includes three pixel points a, b, c, the second line includes three pixel points x, y, z, and the third line includes three pixel points d, e, f. However, if each field of data transmitted by the digital video signal includes all lines of data, the amount of data to be transmitted is too large, and the bandwidth requirement is very high. Therefore, traditional broadcast television technologies usually adopt interlaced scanning technology to save bandwidth.
[0003] In the data transmitted by the interlaced scanning technology, each field of data only contains odd-numbered lines of data or even-numbered lines of data, and the odd and even numbers of lines of data transmitted by two adjacent fields are exactly complementary. As Figure 2 shown, the previous field F(n - 1), the current field F(n), and the subsequent field F(n + 1) are respectively three adjacent fields of data transmitted in the interlaced scanning technology. Among them, the current field F(n) is the field being deinterlaced scanned. The pixel points a, b, c and the pixel points d, e, f are the odd-numbered or even-numbered lines adjacent to the current field F(n). There are missing even-numbered or odd-numbered lines between the two lines of data, that is, the actually transmitted data does not include the pixel points y, x, z. Figure 2 The lines composed of the pixel points k, g, h in the previous field F(n - 1) shown and the lines composed of the pixel points l, i, j in the subsequent field F(n + 1) are both even-numbered or odd-numbered lines in their respective fields. The previous field F(n - 1) and the subsequent field F(n + 1) both lack odd-numbered or even-numbered lines of data.
[0004] As can be seen from the above, the input fields received in the interlaced scanning technology include odd fields and even fields. The odd field only contains the odd-numbered lines of the source image, and the even field only contains the even-numbered lines of the source image. This method can indeed save transmission resources. However, the interlaced scanning technology sacrifices image quality, and the transmitted image can no longer meet the high-quality requirements of the audience at the receiving end for the image. Moreover, currently most display devices adopt progressive scanning technology. Therefore, at the receiving end, the deinterlacing technology that converts interlaced scanning data into progressive scanning data again is a new requirement in the current field of image data transmission and processing.
[0005] Therefore, the deinterlacing technology needs to insert the missing even or odd lines of data between the adjacent two lines of data transmitted in each field, that is, to convert the field with incomplete line data into a complete data frame, and the data frame contains all the line data of the image. Taking Figure 2 the current field F(n) in
[0006] as an example, the purpose of the deinterlacing technology is to insert the missing even or odd lines of pixel interpolation values y, x, and z between the line data of pixel points a, b, c and the line data of pixel points d, e, f in the current field F(n). Figure 2 Specifically, assume that
[0007] the signal frame of the current field F(n) in Summary of the Invention
[0008] The purpose of the present invention is to provide a video signal deinterlacing method, device and electronic device, aiming to optimize the interpolation method and interpolation effect during deinterlacing.
[0009] In the first aspect of the present invention, there is provided a video signal deinterlacing method, which is characterized by including:
[0010] S100. Obtain the directional correlation interpolation result P of the pixel point to be interpolated in the current field 方向性插值 , and obtain the median filtering result P of the pixel point to be interpolated in the current field 中值滤波 ;
[0011] S200. Obtain the motion coefficient M of the pixel point to be interpolated in the current field. According to the interval where the motion coefficient M is located, perform interpolation calculation on the pixel point to be interpolated in the current field through the following formula:
[0012]
[0013] Where T1 is the upper threshold of the preset low-speed motion state, and T2 is the lower threshold of the preset high-speed motion state.
[0014] As a preferred technical solution, in step S100, calculate the correlation coefficients in multiple directions of the current field according to the differences between the pixel values of the pixel points in multiple directions of the pixel point to be interpolated in the current field. Compare the correlation coefficients in multiple directions, and perform interpolation along the direction with the smallest correlation coefficient to obtain the direction correlation interpolation result P 方向性插值 .
[0015] As a specific technical solution, the multiple directions include: the connection direction between the corresponding pixel points in the previous row and the next row of the pixel point to be interpolated in the current field, the connection direction between the previous pixel point in the previous row and the next pixel point in the next row of the pixel point to be interpolated in the current field, the connection direction between the previous two pixel points in the previous row and the next two pixel points in the next row of the pixel point to be interpolated in the current field, the connection direction between the next pixel point in the previous row and the previous pixel point in the next row of the pixel point to be interpolated in the current field, and the connection direction between the next two pixel points in the previous row and the previous two pixel points in the next row of the pixel point to be interpolated in the current field.
[0016] As a preferred technical solution, in step S100, perform median filtering according to the pixel value of the pixel point in the previous field at the same position as the pixel point to be interpolated in the current field and the pixel values of the corresponding pixel points in the previous row and the next row of the pixel point to be interpolated in the current field, and obtain the median filtering result P 中值滤波 .
[0017] As a preferred technical solution, in step S200, detect the motion state of the pixel point to be interpolated in the current nth field and obtain the motion coefficient M by obtaining the gray-scale changes of the pixel points related to the pixel point to be interpolated in the current nth field in the previous (n - 2)th field, the previous (n - 1)th field, the subsequent (n + 1)th field, and the subsequent (n + 2)th field.
[0018] As a preferred technical solution, the method for obtaining the motion coefficient M of the pixel point to be interpolated in the current field in step S200 specifically includes:
[0019] S210. Calculate the motion correlation coefficient P between the (n - 2)th field and the nth field, calculate the motion correlation coefficient Q between the nth field and the (n + 2)th field, and calculate the motion correlation coefficient S between the (n - 1)th field and the (n + 1)th field;
[0020] S220. Calculate the motion coefficient M through the following formula:
[0021]
[0022] As a specific technical solution, in step S210, the formulas for calculating the motion correlation coefficients P and Q are as follows:
[0023]
[0024] Among them, let the pixel point to be interpolated in the nth field be point C, T -1 , T0, T1 and B -1 , B0, B1 are respectively the pixel values of the pixel points in the upper row and the lower row corresponding to point C in the field with the same parity as the nth field.
[0025] As a specific technical solution, in step S220, the formula for calculating the motion correlation coefficient S is as follows:
[0026]
[0027] Among them, let the pixel point to be interpolated in the nth field be point C, X -1 , X0, X1 are the pixel values of the pixel points in the row corresponding to point C in the field with different parity from the nth field.
[0028] In a second aspect of the present invention, there is provided a video signal deinterlacing device, characterized by comprising:
[0029] A direction correlation interpolation acquisition module for acquiring the direction correlation interpolation result P of the pixel point to be interpolated in the current field 方向性插值 ;
[0030] A median filtering result acquisition module for acquiring the median filtering result P of the pixel point to be interpolated in the current field 中值滤波 ;
[0031] A motion state threshold configuration module for presetting an upper threshold of the low-speed motion state as T1 and a lower threshold of the high-speed motion state as T2;
[0032] A motion coefficient acquisition module for acquiring the motion coefficient M of the pixel point to be interpolated in the current field;
[0033] An interpolation calculation module for performing interpolation calculation on the pixel point to be interpolated in the current field according to the interval where the motion coefficient M is located through the following formula:
[0034]
[0035] A third aspect of the present invention provides an electronic device, which is characterized by including a DMA controller, a RAM, a data operation processor, a motion detection processor, and an SFR controller; the RAM provides a storage space for caching data; the DMA controller is used to control the interaction between newly input data and the data to be read during the operation process and the RAM; the operation data processor is responsible for the calculation of direction correlation interpolation and median filtering, and there is a small buff inside it to cache the calculation results; the motion detection processor performs motion detection and calculates the motion coefficient M, and calculates the final interpolation result according to the motion coefficient and the set thresholds T1 and T2; the SFR controller is used to set the thresholds T1 and T2, and the storage start address of the DMA controller; the DMA controller, the RAM, the data operation processor, the motion detection processor, and the SFR controller cooperate with each other and execute the video signal deinterlacing method described above.
[0036] For the video signal deinterlacing method, device, and electronic device provided by the above technical solution of the present invention, the working principle and beneficial effects are as follows: First, the interpolation results of two algorithms (direction correlation interpolation and median filtering) are calculated respectively, and then motion detection is performed to divide the motion regions of the pixels to be interpolated. Subsequently, according to the divided regions, a suitable interpolation algorithm is selected, that is, the optimal interpolation method for the pixels to be interpolated is selected through motion detection, so as to obtain the final interpolation applicable to various motion scenarios, greatly optimizing the interpolation method and interpolation effect during deinterlacing. Description of the Drawings
[0037] Figure 1 It is a pixel map of the data transmitted by the progressive scanning technology.
[0038] Figure 2 It is a pixel map of the previous field, current field, and subsequent field in the deinterlacing method.
[0039] Figure 3 It is a block diagram of the composition of the video signal deinterlacing device provided by the embodiment of the present invention.
[0040] Figure 4 It is a flowchart of the video signal deinterlacing method provided by the embodiment of the present invention.
[0041] Figure 5 It is a schematic diagram of obtaining the direction correlation interpolation result of the pixels to be interpolated in the current field in the video signal deinterlacing method provided by the embodiment of the present invention.
[0042] Figure 6 It is a schematic diagram of obtaining the median filtering result of the pixels to be interpolated in the current field in the video signal deinterlacing method provided by the embodiment of the present invention.
[0043] Figure 7It is a schematic diagram for obtaining the motion coefficient of the to-be-interpolated pixel points in the current field in the video signal deinterlacing method provided by the embodiments of the present invention.
[0044] Figure 8 It is a block diagram of the composition of the electronic device provided by the embodiments of the present invention.
[0045] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. Specific Embodiments
[0046] To make the technical solution of the present invention clearer and the technical advantages more obvious, the technical solution of the present invention will be clearly and completely described below in conjunction with specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope disclosed by the present invention.
[0047] For the sake of convenience of description, the terms "previous field", "next field", "previous row", and "next row" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Moreover, in the embodiments of the present invention, unless otherwise clearly specified and limited, terms such as "connection", "transmission", "reception", and "transfer" should be understood in a broad sense. For example, it can be directly connected or indirectly connected through an intermediate medium; it can be directly transferred or indirectly transferred through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0048] The video signal deinterlacing method, device, and electronic device provided by this embodiment are based on the current field image (abbreviated as the current field), the previous field image (abbreviated as the previous field), and the subsequent field image (abbreviated as the subsequent field). Through the operation and detection of relevant pixels in multiple adjacent fields, the interlaced scanning data is converted into progressive scanning technology, that is, the pixel values of the missing row of pixel points in each field are generated. For example, in the time domain, taking the nth field input at the current time t as the current field, its previous field may include the (n - 1)th field input at time t - 1, and its subsequent field may include the (n + 1)th field input at time t + 1. Among them, each field without deinterlacing operation only contains pixel data of odd rows or even rows, and the parities of adjacent fields are different, while the parities of alternate fields are the same; here, the same parity means that the row distributions of the two fields are the same; here, the different parities mean that the row distributions of the two fields are complementary.
[0049] Such as Figure 3As shown in the figure, the video signal deinterlacing device provided in this embodiment includes the following modules: a direction correlation interpolation acquisition module 10, a median filtering result acquisition module 20, a motion state threshold configuration module 30, a motion coefficient acquisition module 40, and an interpolation calculation module 50. Among them, the direction correlation interpolation acquisition module 10 is used to obtain the direction correlation interpolation result P of the pixel points to be interpolated in the current field 方向性插值 ; the median filtering result acquisition module 20 is used to obtain the median filtering result P of the pixel points to be interpolated in the current field 中值滤波 ; the motion state threshold configuration module 30 is used to preset the upper threshold of the low-speed motion state as T1 and the lower threshold of the high-speed motion state as T2; the motion coefficient acquisition module 40 is used to obtain the motion coefficient M of the pixel points to be interpolated in the current field; the interpolation calculation module 50 is used to perform interpolation calculation on the pixel points to be interpolated in the current field according to the interval where the motion coefficient M is located through the following formula:
[0050]
[0051] Combined Figure 4 As shown in the figure, the video signal deinterlacing method provided in this embodiment includes the following steps:
[0052] S100. Obtain the direction correlation interpolation result P of the pixel points to be interpolated in the current field 方向性插值 , and obtain the median filtering result P of the pixel points to be interpolated in the current field 中值滤波 ;
[0053] S200. Obtain the motion coefficient M of the pixel points to be interpolated in the current field, and perform interpolation calculation on the pixel points to be interpolated in the current field according to the interval where the motion coefficient M is located through the following formula:
[0054]
[0055] where T1 is the preset upper threshold of the low-speed motion state, and T2 is the preset lower threshold of the high-speed motion state
[0056] In step S100 of this embodiment, the interpolations of the pixel points to be interpolated in the current field are respectively obtained through two deinterlacing algorithms with their own characteristics; moreover, the direction correlation interpolation algorithm selected in this embodiment performs better in the high-speed motion state, while the median filtering algorithm performs better in the low-speed motion state; the specific implementation methods of the two interpolation algorithms are described as follows
[0057] 1. Direction correlation interpolation
[0058] For the pixel point to be interpolated in the image, there is a direction with strong correlation centered on this pixel point to be interpolated, which appears as an edge in space. Interpolating along this edge can ensure that the interpolation result has the least impact on the original image. Since the human eye is sensitive to object edges, if the edge is damaged, it will cause the sawtooth phenomenon, thus affecting the viewing effect. Therefore, using directional correlation interpolation in scenes with fast movement can greatly avoid the sawtooth effect and obtain a better deinterlacing effect. The following is a brief introduction to this interpolation method.
[0059] In step S100, calculate the correlation coefficients in multiple directions of the current field based on the differences between the pixel values of the pixel points in multiple directions of the pixel point to be interpolated in the current field. Compare the correlation coefficients in multiple directions and perform interpolation along the direction with the smallest correlation coefficient to obtain the directional correlation interpolation result P 方向性插值 .
[0060] Combined Figure 5 As shown, the multiple directions include: the connection direction of the corresponding pixel points in the previous row (i.e., row y - 1) and the next row (i.e., row y + 1) of the pixel point to be interpolated in the current field (corresponding to Figure 5 the c direction in Figure 5 ), the connection direction of the previous pixel point in the previous row and the next pixel point in the next row of the pixel point to be interpolated in the current field (corresponding to Figure 5 the b direction in Figure 5 ), the connection direction of the previous two pixel points in the previous row and the next two pixel points in the next row of the pixel point to be interpolated in the current field (corresponding to Figure 5 the a direction in
[0061] In this embodiment, R a , R b , R c , R d , R e respectively represent the correlation coefficients in their respective five directions, and P i represents the pixel value of the corresponding pixel point. The calculation formula is as follows:
[0062] R a = |P i (x - 2, y - 1) - P i (x + 2, y + 1)|
[0063] R b = |P i (x - 1, y - 1) - P i (x + 1, y + 1)|
[0064] R c = |P i (x,y - 1)-P i (x,y + 1)|;
[0065] R d = |P i (x + 1,y - 1)-P i (x - 1,y + 1)|
[0066] R e = |P i (x + 2,y - 1)-P i (x - 2,y + 1)|
[0067] Then, compare the R values in each direction. The smaller the R value, the smaller the difference between the two sampling points corresponding to that direction, and the stronger the possible correlation. Therefore, interpolation is selected along this direction. The average interpolation method is used in this embodiment, and the relevant formula is as follows:
[0068]
[0069] Wherein, R min = {R a , R b , R c , R d , R e}, that is, the minimum value of the correlation coefficients in five directions, and P 方向性插值 is the interpolation result of the direction correlation.
[0070] II. Median filtering interpolation.
[0071] For the sampling points of interlaced data, in the case of a slow motion scene, the correlation and continuity between adjacent two fields of data are strong. Therefore, in this embodiment, the data of the previous field and the current field are used for median filtering interpolation to obtain the de-interlaced data. Through analysis, it is found that when the motion between two fields is slow enough, the effect of median filtering will be very close to the original image. Therefore, in step S100, according to the pixel value of the pixel point in the previous field at the same position as the pixel point to be interpolated in the current field and the pixel values of the corresponding pixel points in the previous row and the next row of the pixel point to be interpolated in the current field, median filtering is performed to obtain the median filtering result P 中值滤波 .
[0072] Specifically, as shown in Figure 6 , in this embodiment, median filtering uses one original pixel point at the same position as the point to be interpolated in the previous field, and two original pixel points at the same horizontal position as the point to be interpolated in the previous row and the next row of the current field for median filtering. The calculation formula is as follows:
[0073]
[0074] Among them, P 中值滤波 is the result of median filtering.
[0075] Through the above process, the directional correlation interpolation result P of the pixel points to be interpolated in the current field is obtained through two characteristic algorithms respectively 方向性插值 and the median filtering result P 中值滤波 ; Next, by detecting and predicting the motion state of the pixel points to be interpolated, the best interpolation method is selected and the optimal interpolation result is calculated.
[0076] Combined with Figure 7 As shown, in step S200, by obtaining the gray-scale changes of the pixel points related to the pixel points to be interpolated in the current nth field in the previous (n - 2)th field, the previous (n - 1)th field, the subsequent (n + 1)th field, and the subsequent (n + 2)th field, the motion state of the pixel points to be interpolated in the current nth field is detected and the motion coefficient M is obtained.
[0077] Among them, in the time domain, the nth field is the current field, its previous fields include the (n - 2)th field and the (n - 1)th field, and its subsequent fields include the (n + 1)th field and the (n + 2)th field. As Figure 7 shown, five consecutive fields of images of n - 2, n - 1, n, n + 1, n + 2, where the gray pixel points are known pixel points, the white pixel points are the points to be interpolated, and the C point in the nth field is the current pixel point to be interpolated, T -1 , T0, T1 and B -1 , B0, B1 are respectively the pixel values of the upper row pixel points and the lower row pixel points corresponding to the C point in the fields with the same parity as the nth field, and X -1 , X0, X1 are the pixel values of the pixel points corresponding to the C point in the fields with different parity from the nth field in the corresponding rows.
[0078] In step S200, the method for obtaining the motion coefficient M of the pixel points to be interpolated in the current field includes:
[0079] S210. Calculate the motion correlation coefficient P between the (n - 2)th field and the nth field, calculate the motion correlation coefficient Q between the nth field and the (n + 2)th field, and calculate the motion correlation coefficient S between the (n - 1)th field and the (n + 1)th field;
[0080] First of all, the formulas for calculating the motion correlation coefficients P and Q are as follows:
[0081]
[0082] Among them, since the (n - 2)-th field and the n-th field, and the n-th field and the (n + 2)-th field both lack the row where the pixel point C to be interpolated is located, in this embodiment, the method of taking the average of the upper and lower two rows of pixel points is used to infer the value of the pixel point to be interpolated. Moreover, in this embodiment, the motion state of the pixel point to be interpolated is judged by the field with the same parity as the field where the point to be interpolated is located, which expands the type of field samples (especially introducing the field with the same parity) and the time domain width. The calculated motion correlation coefficients P and Q have good representativeness and accuracy.
[0083] In addition, the formulas for calculating the motion correlation coefficient S are as follows:
[0084]
[0085] Among them, since the parities of the (n - 1)-th field and the (n + 1)-th field are different from the parity of the field where the pixel point to be interpolated is located, in this embodiment, the rows identical to the pixel point C to be interpolated in these two fields are directly used for correlation calculation, which can well represent the motion states of the pixel point to be interpolated and the two adjacent fields before and after.
[0086] S220. Calculate the motion coefficient M through the following formula:
[0087]
[0088] Finally, according to the motion coefficient M, motion division and interpolation calculation are performed on the pixel point to be interpolated. Specifically, when M is less than the motion threshold T1, the pixel point is considered to be in a low-speed motion state, and at this time, only median filtering is used for interpolation; when M is greater than the motion threshold T2, the pixel point is considered to be in a large-amplitude motion state, and at this time, only direction correlation interpolation is used for calculation; when M is between the two motion thresholds, the pixel point is considered to be in a transition state, and at this time, mixed interpolation is calculated.
[0089] Combined Figure 8 As shown, this embodiment also provides an electronic device, including a DMA controller, a RAM, a data operation processor, a motion detection processor, and an SFR controller; multiple devices among the above-mentioned DMA controller, RAM, data operation processor, motion detection processor, and SFR controller can be integrated in a certain system-on-chip (SOC).
[0090] Among them, the RAM provides a storage space for caching data; the DMA controller is used to control the interaction between the newly input data and the data to be read during the operation process and the RAM; since the motion detection module needs to store at least four fields of image data, and the deinterlacing algorithm module needs to read adjacent fields of data, a DMA controller is required to ensure that the data written to the RAM is written to the correct position and can read data from the correct position of the RAM; and the DMA controller can also minimize the required storage space and save hardware resources by controlling the address of the written data so that the newly written data overwrites the invalid data without affecting the valid data.
[0091] In addition, the operation data processor is responsible for the calculation of direction correlation interpolation and median filtering, and there is a small buff inside it to cache the calculation results; the motion detection processor performs motion detection and calculates the motion coefficient M, and calculates the final interpolation result according to the motion coefficient and the set thresholds T1 and T2; the SFR controller is used to set the thresholds T1 and T2, and the storage start address of the DMA controller.
[0092] The above DMA controller, RAM, data operation processor, motion detection processor and SFR controller cooperate with each other and execute the video signal deinterlacing method described above. An exemplary work flow is as follows:
[0093] The first step: Set the motion detection thresholds T1 and T2 through the SFR controller, and configure the start address of the DMA controller;
[0094] The second step: Obtain the data (data_in) of the sampling point YUV channel;
[0095] The third step: Write the data_in data into the RAM for caching through the DMA controller;
[0096] The fourth step: Read adjacent field data from the RAM, calculate the results of direction correlation interpolation and median filtering through the data operation processor, and cache them through the internal buff;
[0097] The fifth step: Use the motion detection processor to perform motion detection with the motion thresholds set by the SFR controller, then calculate the final interpolation according to the motion detection results, and store the operation results in the RAM through the DMA controller;
[0098] The sixth step: Read the deinterlaced operation data from the RAM according to actual needs and output it to the next level (data_out).
[0099] The method, apparatus, and electronic device for video signal deinterlacing provided by the above embodiments have the following working principles and beneficial effects: First, the interpolation results of two algorithms (directional correlation interpolation and median filtering) are calculated separately, and then motion detection is performed to divide the motion regions of the pixels to be interpolated. Subsequently, according to the divided regions, a suitable interpolation algorithm is selected, that is, the optimal interpolation method for the pixels to be interpolated is selected through motion detection, and thus the final interpolation applicable to various motion scenarios is obtained, greatly optimizing the interpolation method and interpolation effect during deinterlacing.
[0100] Of course, the above embodiments are only the preferred embodiments of the present invention. In actual applications, there may be more variations. The present invention is not limited to the above embodiments. For example, changes in specific calculation methods, changes in specific calculation formulas, and other variations should also be included in the protection scope of the claims of the present invention.
Claims
1. A video signal deinterlacing method, characterized in that, Including: S100. Obtain the directional correlation interpolation result P of the pixel point to be interpolated in the current field 方向性插值 , and obtain the median filtering result P of the pixel point to be interpolated in the current field 中值滤波 ; S200. Obtain the motion coefficient M of the pixel to be interpolated in the current field. According to the interval where the motion coefficient M is located, perform interpolation calculation on the pixel to be interpolated in the current field through the following formula: where T1 is the upper threshold of the preset low-speed motion state, and T2 is the lower threshold of the preset high-speed motion state.
2. The video signal deinterlacing method according to claim 1, characterized in that, In step S100, the correlation coefficients in multiple directions of the current field are calculated based on the differences between the pixel values of the pixels in multiple directions of the pixel points to be interpolated in the current field. The correlation coefficients in multiple directions are compared, and interpolation is performed along the direction with the smallest correlation coefficient to obtain the direction correlation interpolation result P 方向性插值 .
3. The video signal deinterlacing method according to claim 2, characterized in that, The multiple directions include: the connection direction between the corresponding pixels in the previous row and the next row of the pixel to be interpolated in the current field, the connection direction between the previous pixel in the previous row and the next pixel in the next row of the pixel to be interpolated in the current field, the connection direction between the two previous pixels in the previous row and the two next pixels in the next row of the pixel to be interpolated in the current field, the connection direction between the next pixel in the previous row and the previous pixel in the next row of the pixel to be interpolated in the current field, and the connection direction between the two next pixels in the previous row and the two previous pixels in the next row of the pixel to be interpolated in the current field.
4. The video signal deinterlacing method according to claim 1, characterized in that In step S100, median filtering is performed based on the pixel value of the pixel at the same position in the previous field as the pixel to be interpolated in the current field and the pixel values of the corresponding pixels in the previous and next rows of the pixel to be interpolated in the current field, and the median filtering result P is obtained 中值滤波 .
5. The video signal deinterlacing method according to claim 1, wherein In step S200, by obtaining the gray-scale changes of the pixels related to the pixel to be interpolated in the current nth field in the previous (n - 2)th field, the previous (n - 1)th field, the subsequent (n + 1)th field, and the subsequent (n + 2)th field, detect the motion state of the pixel to be interpolated in the current nth field and obtain the motion coefficient M.
6. The video signal deinterlacing method according to claim 5, wherein In step S200, the method for obtaining the motion coefficient M of the pixel to be interpolated in the current field specifically includes: S210. Calculate the motion correlation coefficient P between the (n - 2)th field and the nth field, calculate the motion correlation coefficient Q between the nth field and the (n + 2)th field, and calculate the motion correlation coefficient S between the (n - 1)th field and the (n + 1)th field; S220. Calculate the motion coefficient M through the following formula:
7. The video signal deinterlacing method according to claim 6, characterized in that, In step S210, the formulas for calculating the motion correlation coefficients P and Q are as follows: Among them, let the pixel point to be interpolated in the nth field be point C, T -1 , T0, T1 and B -1 , B0, B1 are the pixel values of the pixel points in the upper row and the lower row corresponding to point C in the field with the same parity as the nth field, respectively.
8. The video signal deinterlacing method according to claim 6, characterized in that, In step S220, the formula for calculating the motion correlation coefficient S is as follows: Among them, let the pixel point to be interpolated in the nth field be point C, and X -1 , X0, and X1 are the pixel values of the pixel points corresponding to the row of point C in the field with a different parity from the nth field.
9. A video signal deinterlacing device, characterized in that, Including: Direction correlation interpolation acquisition module, which acquires the direction correlation interpolation result P of the pixel points to be interpolated in the current field 方向性插值 ; Median filtering result acquisition module, which acquires the median filtering result P of the pixel points to be interpolated in the current field 中值滤波 ; A motion state threshold configuration module that presets the upper threshold of the low-speed motion state as T1 and the lower threshold of the high-speed motion state as T2; A motion coefficient acquisition module that acquires the motion coefficient M of the pixel to be interpolated in the current field; An interpolation calculation module that performs interpolation calculation on the pixel to be interpolated in the current field according to the interval where the motion coefficient M is located through the following formula:
10. An electronic device, characterized in that, Including a DMA controller, a RAM, a data operation processor, a motion detection processor, and an SFR controller; the RAM provides a storage space for caching data; the DMA controller is used to control the interaction between the newly input data and the data to be read during the operation and the RAM; the operation data processor is responsible for the calculation of direction correlation interpolation and median filtering, and there is a small buff inside it to cache the calculation results; the motion detection processor performs motion detection and calculates the motion coefficient M, and calculates the final interpolation result according to the motion coefficient and the set thresholds T1 and T2; the SFR controller is used to set the thresholds T1 and T2, as well as the storage start address of the DMA controller; the DMA controller, the RAM, the data operation processor, the motion detection processor, and the SFR controller cooperate with each other and execute the video signal deinterlacing method according to any one of claims 1-8.
Citation Information
Cited By
A de-interlacing method and controller
CN122661400A