WO2020082632A1 - Method for processing image data - Google Patents

Method for processing image data Download PDF

Info

Publication number
WO2020082632A1
WO2020082632A1 PCT/CN2019/072496 CN2019072496W WO2020082632A1 WO 2020082632 A1 WO2020082632 A1 WO 2020082632A1 CN 2019072496 W CN2019072496 W CN 2019072496W WO 2020082632 A1 WO2020082632 A1 WO 2020082632A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixels
same
group
value
values
Prior art date
Application number
PCT/CN2019/072496
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 WO2020082632A1 publication Critical patent/WO2020082632A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/2003Display of colours

Definitions

  • the present disclosure relates to the field of display technology, and in particular, to a method for processing picture data.
  • the processing technology of the display screen image by related components in the display device further reflects the display effect of the display.
  • the colors to be expressed on the display screen are becoming richer and richer, and also more delicate, especially for Ultra High Definition (UD), these are derived from the increase of full-screen information data.
  • the same display frame contains The amount of information is even greater.
  • there are more and more calculation technologies for display screen processing and the storage space occupied by full-screen information storage is also very large.
  • the amount of data in one frame of data is 3840 * 2160 * 2 8 * 2 8 * 2 8
  • the total number of pixels of the entire display device reaches more than 8 million, and the amount of data information is particularly large.
  • the ratio of data compression will be large, and the maximum amount of data and the RGB gray scale value of the same data cannot be quickly found from the same frame.
  • the compression ratio The larger the picture, the more the picture is distorted, and the picture processing of the color cast is not ideal, which reduces the display effect of the ultra-high-strength screen. At the same time, when comparing the same frame of data, the amount of data cannot be completed .
  • the present disclosure provides a method for processing image data to solve the problem that the prior art cannot quickly find the maximum amount of the same amount of data and its RGB grayscale value from the same frame when processing more full-screen data and compressing data.
  • the problem of low accuracy is a problem that the prior art cannot quickly find the maximum amount of the same amount of data and its RGB grayscale value from the same frame when processing more full-screen data and compressing data. The problem of low accuracy.
  • a method for processing picture data including the following steps:
  • step S111 Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, then the i-th line is the same, and then jump to step S108 for execution; if the quantity value is less than Hth, execute S112;
  • each data algorithm will process 2, 4, or 8 pixels in the same clock cycle when processing each row of images; in step S102, if R, G in each group , The difference between B and B is not greater than X, the fluctuation state of this clock cycle is recorded as consistent; if the difference between R, G, and B in each group is greater than X, then this clock Periodic fluctuations are recorded as inconsistencies.
  • the number of new pixels is updated to become the number of consecutively identical pixels times n.
  • the number of identical pixels is updated to be n times the number of consecutive identical pixels.
  • the discarded maximum condition value Hthro is set to 960.
  • the data algorithm is twice the clock period when it is assigned.
  • the R, G, and B pixel values of the different pixels are one of 0-255.
  • Group 1 judges whether it is the same as groups 2, 3, and 4, respectively, and adds the number of groups to group 1;
  • Group 2 judges whether it is the same as group 3, and adds the number of the group to group 2;
  • Group 3 judges whether it is the same as group 4, and adds the number of groups to group 3 in the same way.
  • step S111 Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, then the i-th line is the same, and then jump to step S108 for execution; if the quantity value is less than Hth, perform step S112;
  • each data algorithm when processing each line of images, each data algorithm will process 2, 4, or 8 pixels in the same clock cycle point.
  • step S102 if the difference between R, G, and B in each group is not greater than the X, then this clock cycle The fluctuation state of is recorded as self-consistency; if the difference of R, G and B in each group is greater than the X, then the fluctuation state of this clock cycle is recorded as self-inconsistency.
  • the number of new pixels is updated to become the number of consecutive identical pixels times n.
  • the update of the number of the same pixels becomes n times the number of the same pixels in succession.
  • step S105 the maximum condition value Hthro for discarding is set to 960.
  • the data algorithm is twice the clock cycle when it is assigned.
  • the R, G, and B pixel values of the different pixels are one of 0-255.
  • Group 1 judges whether it is the same as groups 2, 3, and 4, respectively, and adds the number of groups to group 1;
  • Group 2 judges whether it is the same as group 3, and adds the number of the group to group 2;
  • Group 3 judges whether it is the same as group 4, and adds the number of groups to group 3 in the same way.
  • the present disclosure separately processes the image and compares the processed image with the set parameter value to obtain the required pixel value and the required number of pixels
  • FIG. 1 is a schematic flowchart of the disclosed algorithm.
  • a method for processing picture data is processed according to the steps provided by the present disclosure.
  • the processing steps are as follows:
  • the processing in step S102 is: comparing R1-R2 ⁇ X, at the same time G1-G2 ⁇ X, and at the same time B1-B2 ⁇ X, when the above three comparison formulas are simultaneously established Then, the fluctuation state of this clock cycle is recorded as self-consistent; if the above three comparisons are not established at the same time, the fluctuation state of this clock cycle is recorded as self-inconsistent.
  • the R, G, and B values to be determined are not changed until a self-consistent clock cycle is counted. At this time, the R, G, and B values of the consistency determination value are changed, and the number of the same pixels is updated. Becomes n times the number of consecutive pixels that are the same;
  • step S111 Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, the i-th row is consistent;
  • n 2
  • the data (n) assignment becomes twice the clock period, so in The number of pixels obtained in subsequent steps needs to be multiplied by 2 to become the new number of pixels obtained.
  • Group 1 determines whether the values in Groups 2, 3, and 4 are the same, and if they are the same, the number of groups is added to Group 1;
  • Group 2 determines whether the values in Groups 3 and 4 are the same, and if they are the same, the number of groups is added to Group 2;
  • Group 3 finally judges whether it is the same as group 4. If it is the same, the group number is added to group 3.
  • S207 Determine whether the i-th group in the matrix is the same as each group after the i-th group, and the same is to add the number of the i-th group to the i-th group;
  • S208 record the group with the largest number as the consistent R, G, and B values of the row, and record the quantity value No. final;
  • the above provides a detailed description of a method for processing image data provided by the embodiments of the present disclosure.
  • the maximum number of identical pixels can be quickly found from a frame And the corresponding R, G, and B pixel values, as well as the number of rows where they are located. For these found pixel points, these pictures can be specifically processed to improve the accuracy of processing.

Abstract

The method in the present disclosure comprises: obtaining pixels of each row of an image, and comparing R, G, and B values of the pixels by means of an algorithm; configuring a discard value, and comparing the quantity of pixels in a clock cycle with the discard value; configuring a discard condition value, and obtaining, for new pixels, RGB grayscale values and the quantity of the new pixels; upon completing processing, performing a matrix operation with respect to the RGB grayscale values and the pixel quantity, and obtaining new mutually consistent RGB values and recording the quantity of corresponding pixels; and performing processing on a column so as to achieve processing of all data.

Description

一种针对画面数据处理的方法Method for processing picture data 技术领域Technical field
本揭示涉及显示技术领域,尤其涉及一种针对画面数据处理的方法。The present disclosure relates to the field of display technology, and in particular, to a method for processing picture data.
背景技术Background technique
随着光电与半导体技术的不断发展,也带动了显示器件等领域的进步。而显示器件中相关部件对显示画面图像的处理技术又进一步反映了显示器显示效果的高低。With the continuous development of optoelectronics and semiconductor technology, it has also led to progress in display devices and other fields. The processing technology of the display screen image by related components in the display device further reflects the display effect of the display.
显示屏幕上所要表达的色彩越来越丰富,而且也更加细腻,尤其是针对超高强屏幕(Ultra High Definition,UD)而言,这些都源于全屏信息数据的增加,同一显示帧中,所包含的信息量更加庞大,目前,针对显示器画面处理的演算技术也越来越多,全屏信息量存储占用的存储空间也非常巨大。例如在UD屏幕中,其一帧数据中的数据量为3840*2160*2 8*2 8*2 8,整个显示设备的总像素数量达到800万以上,数据信息量特别庞大,因此,在对这些数据画面进行处理时,对数据压缩的比例就会很大,而且不能快速的从同一帧中找到数据相同的数量最大值以及其RGB灰阶值,在现有的压缩技术中,压缩的比例越大,画面的失真情况越多,对颜色偏色的画面处理不理想,使得超高强屏幕的显示效果降低,同时在对同一帧数据资料进行比对时,由于数据量太多而无法操作完成。 The colors to be expressed on the display screen are becoming richer and richer, and also more delicate, especially for Ultra High Definition (UD), these are derived from the increase of full-screen information data. The same display frame contains The amount of information is even greater. At present, there are more and more calculation technologies for display screen processing, and the storage space occupied by full-screen information storage is also very large. For example, in the UD screen, the amount of data in one frame of data is 3840 * 2160 * 2 8 * 2 8 * 2 8 , the total number of pixels of the entire display device reaches more than 8 million, and the amount of data information is particularly large. When these data frames are processed, the ratio of data compression will be large, and the maximum amount of data and the RGB gray scale value of the same data cannot be quickly found from the same frame. In the existing compression technology, the compression ratio The larger the picture, the more the picture is distorted, and the picture processing of the color cast is not ideal, which reduces the display effect of the ultra-high-strength screen. At the same time, when comparing the same frame of data, the amount of data cannot be completed .
技术问题technical problem
因此,现有的技术在处理较多全屏数据量以及压缩数据资料时不能快速的从同一帧中找到数据相同的数量最大值以及其RGB灰阶值,准确性低,限制了超高强等屏幕的显示效果,需要提出进一步完善和改进方案。Therefore, the existing technology cannot quickly find the maximum value of the same amount of data and its RGB grayscale value from the same frame when processing more full-screen data and compressed data, which has low accuracy and limits the ultra-high-strength and other screens. To show the effect, further improvement and improvement plans need to be proposed.
技术解决方案Technical solution
本揭示提供一种针对画面数据处理的方法,以解决现有技术在处理较多全屏数据量以及压缩数据资料时不能快速的从同一帧中找到数据相同的数量最大值以及其RGB灰阶值,准确性低的问题。The present disclosure provides a method for processing image data to solve the problem that the prior art cannot quickly find the maximum amount of the same amount of data and its RGB grayscale value from the same frame when processing more full-screen data and compressing data. The problem of low accuracy.
为解决上述技术问题,本揭示提供的技术方案如下:To solve the above technical problems, the technical solutions provided by the present disclosure are as follows:
根据本揭示实施例的第一实施例,提供了一种针对画面数据处理的方法,包括以下步骤:According to the first embodiment of the disclosed embodiments, a method for processing picture data is provided, including the following steps:
S100、获取每一行图像的像素,其中,在处理每一行图像时每一个data算法会同时处理n个像素点;S100. Acquire pixels of each row of images, where each data algorithm processes n pixels simultaneously when processing each row of images;
S101、设置一个波动状态寄存器,其中,所述波动状态寄存器的预定数值为X;S101. Set a fluctuation status register, wherein the predetermined value of the fluctuation status register is X;
S102、将所述data算法处理的不同像素点的R值进行比较,同时比较每一个像素点中对应的G和B的值;S102: Compare the R values of different pixels processed by the data algorithm, and at the same time compare the corresponding G and B values in each pixel;
S103、设置一个舍弃最高值Y;S103. Set a discarding maximum value Y;
S104、从第一个时钟周期开始统计,如果与所述第一个时钟周期自身相同,所述data算法的赋值就变为时钟周期的数量乘以n,如果遇到时钟周期内的像素点R、G、B的值相同,直接跳转到步骤S109;如果所述像素点R、G、B的值与前一个时钟周期内的像素点R、G、B的值不同,那么就跳转到步骤S106,对已经统计到的相同的时钟周期的数量是否足够长进行判断;S104. Statistics start from the first clock cycle. If it is the same as the first clock cycle itself, the assignment of the data algorithm becomes the number of clock cycles multiplied by n. If a pixel R within the clock cycle is encountered , G, B have the same value, jump directly to step S109; if the value of the pixel R, G, B is different from the value of the pixel R, G, B in the previous clock cycle, then jump to Step S106, judging whether the number of the same clock cycles that have been counted is long enough;
S105、设置一个舍弃的最大条件值Hthro;S105. Set a discarded maximum condition value Hthro;
S106、如果统计到的时钟周期的数量不小于Hthro,就记下连续相同的像素的R、G、B的值和相同的像素的数量,放入矩阵,同时,将所述像素的R、G、B的值设定为现有像素的R、G、B值一致性判定值;S106. If the counted number of clock cycles is not less than Hthro, record the values of R, G, and B of the same consecutive pixels and the number of the same pixels, put them into the matrix, and at the same time, put the R, G of the pixels , B value is set to the existing pixel R, G, B value consistency judgment value;
S107、如果遇到上一时钟周期时已经相同的像素的数量如果不小于值Hthro,记下连续相同的像素的R、G、B值和其数量;S107. If the number of pixels that are already the same when the last clock cycle is encountered is not less than the value Hthro, write down the R, G, and B values and the number of consecutive pixels that are the same;
不更改待判定的R、G、B值,直到统计到一个自身一致的时钟周期,此时更改一致性判定值的R、G、B值,并且更新相同像素的数量;Do not change the R, G, and B values to be determined until a self-consistent clock cycle is counted. At this time, change the R, G, and B values of the consistency determination value, and update the number of the same pixels;
S108、一行处理完成之后,根据所述值Hthro来记录保留下的m组像素的R、G、B值和像素的数量;S108. After one line of processing is completed, record the R, G, and B values of the remaining m groups of pixels and the number of pixels according to the value Hthro;
S109、将所述保留下的m组像素的R、G、B值和像素的数量组成一个m*4的矩阵;其中,分别判定矩阵中的第i组与第i组之后的各组是否相同,相同即将所述第i组的数量累加到第i组上;并将数量最多的一组记为所在行的一致性R、G、B值,同时记下数量值;S109. Combine the R, G, and B values of the remaining m groups of pixels and the number of pixels into an m * 4 matrix; where it is separately determined whether the i-th group in the matrix is the same as each group after the i-th group , The same will add the number of the i-th group to the i-th group; and record the group with the largest number as the consistent R, G, B value of the row, and record the quantity value at the same time;
S110、每行设置一个最大舍弃时间Hth;S110. Set a maximum discard time Hth for each line;
S111、将步骤步骤S109中的所述数量值与Hth比较,如果数量大于Hth,那么第i行一致,再跳转到步骤S108执行;若数量值小于Hth,则执行S112;S111. Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, then the i-th line is the same, and then jump to step S108 for execution; if the quantity value is less than Hth, execute S112;
S112、每列设置一个最大舍弃值Vthro,按照步骤S106到S111的同样方法进行运算,从而找出整帧像素相同的R、G、B值与所述像素的行数;S112. Set a maximum discard value Vthro for each column, and perform calculation according to the same method as steps S106 to S111, so as to find out the same R, G, and B values of the entire frame of pixels and the number of rows of the pixels;
其中,所述步骤S101中,在处理每一行图像时每一个data算法会在同一时钟周期内处理2个、4个或者8个像素点;所述步骤S102中,如果每一组中R、G、B三者的差值均不大于所述X,则此时钟周期的波动状态记为自身一致;如果每一组中R、G、B三者的差值均大于所述X,则此时钟周期的波动状态记为自身不一致。Wherein in step S101, each data algorithm will process 2, 4, or 8 pixels in the same clock cycle when processing each row of images; in step S102, if R, G in each group , The difference between B and B is not greater than X, the fluctuation state of this clock cycle is recorded as consistent; if the difference between R, G, and B in each group is greater than X, then this clock Periodic fluctuations are recorded as inconsistencies.
在本揭示第一实施例所提供的针对画面处理的方法中,在所述S106中,所述新的像素的数量更新变为所述连续相同的像素的数量乘以n。In the method for picture processing provided by the first embodiment of the present disclosure, in S106, the number of new pixels is updated to become the number of consecutively identical pixels times n.
在本揭示第一实施例所提供的针对画面处理的方法中,在所述步骤S107中,所述相同像素的数量更新变为n乘以所述连续相同的像素的数量。In the method for picture processing provided by the first embodiment of the present disclosure, in the step S107, the number of identical pixels is updated to be n times the number of consecutive identical pixels.
在本揭示第一实施例所提供的针对画面处理的方法中,在所述步骤S105中,所述舍弃的最大条件值Hthro设定为960。In the method for picture processing provided by the first embodiment of the present disclosure, in the step S105, the discarded maximum condition value Hthro is set to 960.
在本揭示第一实施例所提供的针对画面处理的方法中,所述data算法在赋值时为时钟周期的两倍。In the method for picture processing provided by the first embodiment of the present disclosure, the data algorithm is twice the clock period when it is assigned.
在本揭示第一实施例所提供的针对画面处理的方法中,所述不同像素点的R、G、B像素值为0-255中的一个。In the method for image processing provided by the first embodiment of the present disclosure, the R, G, and B pixel values of the different pixels are one of 0-255.
在本揭示第一实施例所提供的针对画面处理的方法中,所述步骤S109中,当m=4时,具体步骤包括,In the method for picture processing provided in the first embodiment of the present disclosure, in step S109, when m = 4, the specific steps include,
组1分别判断与组2、3、4是否相同,相同将该组数量累加到组1上;Group 1 judges whether it is the same as groups 2, 3, and 4, respectively, and adds the number of groups to group 1;
组2分别判断与组3是否相同,相同将该组数量累加到组2上;Group 2 judges whether it is the same as group 3, and adds the number of the group to group 2;
组3判断与组4是否相同,相同将该组数量累加到组3上。Group 3 judges whether it is the same as group 4, and adds the number of groups to group 3 in the same way.
根据本揭示提供的一种针对画面数据处理的方法的第二实施例,包括以下步骤:A second embodiment of a method for processing picture data according to the present disclosure includes the following steps:
S100、获取每一行图像的像素,其中,在处理每一行图像时每一个data算法会同时处理n个像素点;S100. Acquire pixels of each row of images, where each data algorithm processes n pixels simultaneously when processing each row of images;
S101、设置一个波动状态寄存器,其中,所述波动状态寄存器的预定数值为X;S101. Set a fluctuation status register, wherein the predetermined value of the fluctuation status register is X;
S102、将所述data算法处理的不同像素点的R值进行比较,同时比较每一个像素点中对应的G和B的值;S102: Compare the R values of different pixels processed by the data algorithm, and at the same time compare the corresponding G and B values in each pixel;
S103、设置一个舍弃最高值Y;S103. Set a discarding maximum value Y;
S104、从第一个时钟周期开始统计,如果与所述第一个时钟周期自身相同,所述data算法的赋值就变为时钟周期的数量乘以n,如果遇到时钟周期内的像素点R、G、B的值相同,直接跳转到步骤S109;如果所述像素点R、G、B的值与前一个时钟周期内的像素点R、G、B的值不同,那么就跳转到步骤S106,对已经统计到的相同的时钟周期的数量是否足够长进行判断;S104. Statistics start from the first clock cycle. If it is the same as the first clock cycle itself, the assignment of the data algorithm becomes the number of clock cycles multiplied by n. If a pixel R within the clock cycle is encountered , G, B have the same value, jump directly to step S109; if the value of the pixel R, G, B is different from the value of the pixel R, G, B in the previous clock cycle, then jump to Step S106, judging whether the number of the same clock cycles that have been counted is long enough;
S105、设置一个舍弃的最大条件值Hthro;S105. Set a discarded maximum condition value Hthro;
S106、如果统计到的时钟周期的数量不小于Hthro,就记下连续相同的像素的R、G、B的值和相同的像素的数量,放入矩阵,同时,将所述像素的R、G、B的值设定为现有像素的R、G、B值一致性判定值;S106. If the counted number of clock cycles is not less than Hthro, record the values of R, G, and B of the same consecutive pixels and the number of the same pixels, put them into the matrix, and at the same time, put the R, G of the pixels , B value is set to the existing pixel R, G, B value consistency judgment value;
S107、如果遇到上一时钟周期时已经相同的像素的数量如果不小于值Hthro,记下连续相同的像素的R、G、B值和其数量;S107. If the number of pixels that are already the same when the last clock cycle is encountered is not less than the value Hthro, write down the R, G, and B values and the number of consecutive pixels that are the same;
不更改待判定的R、G、B值,直到统计到一个自身一致的时钟周期,此时更改一致性判定值的R、G、B值,并且更新相同像素的数量;Do not change the R, G, and B values to be determined until a self-consistent clock cycle is counted. At this time, change the R, G, and B values of the consistency determination value, and update the number of the same pixels;
S108、一行处理完成之后,根据所述值Hthro来记录保留下的m组像素的R、G、B值和像素的数量;S108. After one line of processing is completed, record the R, G, and B values of the remaining m groups of pixels and the number of pixels according to the value Hthro;
S109、将所述保留下的m组像素的R、G、B值和像素的数量组成一个m*4的矩阵;其中,分别判定矩阵中的第i组与第i组之后的各组是否相同,相同即将所述第i组的数量累加到第i组上;并将数量最多的一组记为所在行的一致性R、G、B值,同时记下数量值;S109. Combine the R, G, and B values of the remaining m groups of pixels and the number of pixels into an m * 4 matrix; where it is separately determined whether the i-th group in the matrix is the same as each group after the i-th group , The same will add the number of the i-th group to the i-th group; and record the group with the largest number as the consistent R, G, B value of the row, and record the quantity value at the same time;
S110、每行设置一个最大舍弃时间Hth;S110. Set a maximum discard time Hth for each line;
S111、将步骤S109中的所述数量值与Hth比较,如果数量大于Hth,那么第i行一致,再跳转到步骤S108执行;若数量值小于Hth,则执行步骤S112;S111. Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, then the i-th line is the same, and then jump to step S108 for execution; if the quantity value is less than Hth, perform step S112;
S112、每列设置一个最大舍弃值Vthro,按照步骤S106到S111的同样方法进行运算,从而找出整帧像素相同的R、G、B值与所述像素的行数。S112. Set a maximum discard value Vthro for each column, and perform calculation according to the same method as steps S106 to S111, so as to find out the same R, G, and B values of the entire frame of pixels and the number of rows of the pixels.
在本揭示第二实施例所提供的针对画面处理的方法中,在所述步骤S101中,在处理每一行图像时每一个data算法会在同一时钟周期内处理2个、4个或者8个像素点。In the method for image processing provided by the second embodiment of the present disclosure, in the step S101, when processing each line of images, each data algorithm will process 2, 4, or 8 pixels in the same clock cycle point.
在本揭示第二实施例所提供的针对画面处理的方法中,在所述步骤S102中,如果每一组中R、G、B三者的差值均不大于所述X,则此时钟周期的波动状态记为自身一致;如果每一组中R、G、B三者的差值均大于所述X,则此时钟周期的波动状态记为自身不一致。In the method for picture processing provided by the second embodiment of the present disclosure, in the step S102, if the difference between R, G, and B in each group is not greater than the X, then this clock cycle The fluctuation state of is recorded as self-consistency; if the difference of R, G and B in each group is greater than the X, then the fluctuation state of this clock cycle is recorded as self-inconsistency.
在本揭示第二实施例所提供的针对画面处理的方法中,在所述步骤S106中,此时,所述新的像素的数量更新变为所述连续相同的像素的数量乘以n。In the method for picture processing provided by the second embodiment of the present disclosure, in the step S106, at this time, the number of new pixels is updated to become the number of consecutive identical pixels times n.
在本揭示第二实施例所提供的针对画面处理的方法中,在所述步骤S107中,所述相同像素的数量更新变为n乘以所述连续相同的像素的数量。In the method for picture processing provided by the second embodiment of the present disclosure, in the step S107, the update of the number of the same pixels becomes n times the number of the same pixels in succession.
在本揭示第二实施例所提供的针对画面处理的方法中,所述步骤S105中,所述舍弃的最大条件值Hthro设定为960。In the method for picture processing provided in the second embodiment of the present disclosure, in step S105, the maximum condition value Hthro for discarding is set to 960.
在本揭示第二实施例所提供的针对画面处理的方法中,所述data算法在赋值时为时钟周期的两倍。In the method for picture processing provided by the second embodiment of the present disclosure, the data algorithm is twice the clock cycle when it is assigned.
在本揭示第二实施例所提供的针对画面处理的方法中,所述不同像素点的R、G、B像素值为0-255中的一个。In the method for image processing provided by the second embodiment of the present disclosure, the R, G, and B pixel values of the different pixels are one of 0-255.
在本揭示第二实施例所提供的针对画面处理的方法中,所述步骤S109中,当m=4时,具体步骤包括,In the method for picture processing provided by the second embodiment of the present disclosure, in step S109, when m = 4, the specific steps include,
组1分别判断与组2、3、4是否相同,相同将该组数量累加到组1上;Group 1 judges whether it is the same as groups 2, 3, and 4, respectively, and adds the number of groups to group 1;
组2分别判断与组3是否相同,相同将该组数量累加到组2上;Group 2 judges whether it is the same as group 3, and adds the number of the group to group 2;
组3判断与组4是否相同,相同将该组数量累加到组3上。Group 3 judges whether it is the same as group 4, and adds the number of groups to group 3 in the same way.
有益效果Beneficial effect
通过新的程序方法,由上面的描述可知,本揭示分别通过对图像进行不同的处理,并对处理的图像与设定的参数值进行比较,从而得出所需要的像素值和需要的像素的数量,这样,能够快速的从一帧中找出相同的像素点的数量最大值以及其对应的R、G、B像素值,同时还能确定其所在的行数,针对这些找到的像素点,能够有针对性的对这些画面进行特殊处理,解决了在现有技术不能快速的从同一帧中找到数据相同的数量最大值以及其RGB灰阶值,准确性低的问题。Through the new program method, as can be seen from the above description, the present disclosure separately processes the image and compares the processed image with the set parameter value to obtain the required pixel value and the required number of pixels In this way, you can quickly find the maximum number of the same pixel points and their corresponding R, G, B pixel values from a frame, and also determine the number of rows where they are located. For these found pixel points, you can Special processing of these pictures is targeted to solve the problem that the existing technology cannot quickly find the same data maximum value and its RGB gray scale value from the same frame, and the accuracy is low.
附图说明BRIEF DESCRIPTION
为了更清楚地说明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单介绍,显而易见地,下面描述中的附图仅仅是申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments or the technical solutions in the prior art, the following will briefly introduce the drawings required in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for applications For some embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1为本揭示的算法简单流程图示意图。FIG. 1 is a schematic flowchart of the disclosed algorithm.
本发明的实施方式Embodiments of the invention
下面将结合本揭示实施例中的附图,对本揭示实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本揭示一部分实施例,而不是全部的实施例。The technical solution in the disclosed embodiment will be described clearly and completely in conjunction with the drawings in the disclosed embodiment. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, but not all the embodiments.
一种针对画面数据处理的方法,按照本揭示提供的步骤进行处理,处理步骤如下:A method for processing picture data is processed according to the steps provided by the present disclosure. The processing steps are as follows:
S100、获取每一行图像的像素,其中,在处理每一行图像时每一个data算法会同时处理n个像素点;S100. Acquire pixels of each row of images, where each data algorithm processes n pixels simultaneously when processing each row of images;
具体的,其中,data算法中可以在一个时钟周期(clock cycle)内同时处理2个、4个或者8个像素点,即n=2、n=4或n=8。Specifically, in the data algorithm, 2, 4, or 8 pixels can be processed simultaneously in one clock cycle, that is, n = 2, n = 4, or n = 8.
S101、设置一个波动(dithering)状态寄存器,其中,所述波动状态寄存器的预定数值为X;S101. Set a dithering status register, wherein the predetermined value of the dithering status register is X;
S102、将所述data算法处理的不同像素点的R、G、B值进行比较,如果每一组中R、G、B三者的差值均不大于所述X,则此时钟周期的波动状态记为自身一致;如果每一组中R、G、B三者的差值均大于所述X,则此时钟周期的波动状态记为自身不一致;S102. Compare the R, G, and B values of different pixels processed by the data algorithm. If the difference between R, G, and B in each group is not greater than the X, the fluctuation of this clock cycle The state is recorded as self-consistency; if the difference between R, G and B in each group is greater than the X, the fluctuation state of this clock cycle is recorded as self-inconsistency;
具体的,以同时处理两个像素点为例,步骤S102中的处理就为:比较R1-R2≤X,同时G1-G2≤X,同时B1-B2≤X,当上述三个比较式同时成立,才将此时钟周期的波动状态记为自身一致;如果上述三个比较式不同时成立,则将此时钟周期的波动状态记为自身不一致。通过这样的方法以便快速的对不同的像素进行区分。Specifically, taking the simultaneous processing of two pixels as an example, the processing in step S102 is: comparing R1-R2≤X, at the same time G1-G2≤X, and at the same time B1-B2≤X, when the above three comparison formulas are simultaneously established Then, the fluctuation state of this clock cycle is recorded as self-consistent; if the above three comparisons are not established at the same time, the fluctuation state of this clock cycle is recorded as self-inconsistent. Through such a method in order to quickly distinguish between different pixels.
S103、设置一个舍弃最高值Y;S103. Set a discarding maximum value Y;
S104、从第一个时钟周期开始统计,如果与所述第一个时钟周期自身相同,所述data算法的赋值就变为时钟周期的数量乘以n,如果遇到时钟周期内的像素点R、G、B的值相同,但是所述像素点R、G、B的值与前一个时钟周期内的像素点R、G、B的值不同,那么就按照步骤S106,对已经统计到的相同的时钟周期的数量是否足够长进行判断;S104. Statistics start from the first clock cycle. If it is the same as the first clock cycle itself, the assignment of the data algorithm becomes the number of clock cycles multiplied by n. If a pixel R within the clock cycle is encountered , G, B have the same value, but the pixel R, G, B value is different from the pixel R, G, B value in the previous clock cycle, then according to step S106, the same Whether the number of clock cycles is long enough to judge;
S105、设置一个舍弃的最大条件值Hthro;S105. Set a discarded maximum condition value Hthro;
S106、如果统计到的时钟周期的数量不小于Hthro,就记下连续相同的像素的R、G、B的值和相同的像素的数量,同时,将所述像素的R、G、B的值设定为新的像素一致性判定值,此时,所述新的像素的数量更新变为所述连续相同的像素的数量乘以n;S106. If the counted number of clock cycles is not less than Hthro, record the values of R, G, and B of the same consecutive pixels and the number of the same pixels, and at the same time, the values of R, G, and B of the pixels Set to a new pixel consistency judgment value, at this time, the number of the new pixels is updated to be the number of the same consecutive pixels multiplied by n;
S107、如果遇到自身不相同的时钟周期,那么已经相同的像素的数量如果不小于值Hthro,记下连续相同的像素的R、G、B值和其数量;S107. If a different clock cycle is encountered, if the number of pixels that are already the same is not less than the value Hthro, write down the R, G, and B values and the number of consecutive pixels that are the same;
不更改待判定的R、G、B值,直到统计到一个自身一致的时钟周期,此时更改一致性判定值的R、G、B值,并且更新相同像素的数量,所述相同像素的数量变为n乘以所述连续相同的像素的数量;The R, G, and B values to be determined are not changed until a self-consistent clock cycle is counted. At this time, the R, G, and B values of the consistency determination value are changed, and the number of the same pixels is updated. Becomes n times the number of consecutive pixels that are the same;
S108、一行处理完成之后,根据所述值Hthro来记录保留下的m组像素的R、G、B值和像素的数量;S108. After one line of processing is completed, record the R, G, and B values of the remaining m groups of pixels and the number of pixels according to the value Hthro;
S109、将所述保留下的m组像素的R、G、B值和像素的数量组成一个m*4的矩阵;其中,分别判定矩阵中的第i组与第i组之后的各组是否相同,相同即将所述第i组数量累加到第i组上;并将数量最多的一组记为所在行的一致性R、G、B值同时记下数量值;S109. Combine the R, G, and B values of the remaining m groups of pixels and the number of pixels into an m * 4 matrix; where it is separately determined whether the i-th group in the matrix is the same as each group after the i-th group , The same will add the number of the i-th group to the i-th group; and record the group with the largest number as the consistent R, G, B value of the row, and record the quantity value at the same time;
S110、每行设置一个最大舍弃时间Hth;S110. Set a maximum discard time Hth for each line;
S111、将步骤S109中的所述数量值与Hth比较,如果数量大于Hth,那么第i行一致;S111. Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, the i-th row is consistent;
S112、每列设置一个最大舍弃值Vthro,按照步骤S106到S111的同样方法进行运算,从而找出整帧像素相同的R、G、B值与所述像素的行数。S112. Set a maximum discard value Vthro for each column, and perform calculation according to the same method as steps S106 to S111, so as to find out the same R, G, and B values of the entire frame of pixels and the number of rows of the pixels.
优选的,在所述步骤S100中,如果n=2时,即相当于一个data(n)算法中将n赋值为2,这样,data(n)赋值就变为时钟周期的两倍,因此在后续步骤得到的像素数量均需要乘以2,变为新的得到的像素数量。Preferably, in the step S100, if n = 2, it is equivalent to assigning n to 2 in a data (n) algorithm, so that the data (n) assignment becomes twice the clock period, so in The number of pixels obtained in subsequent steps needs to be multiplied by 2 to become the new number of pixels obtained.
一行处理之后会留下若干记下来的RGB值和其数量,记下来的组数取决于Hthro的选取,Hthro越大,记下来的条件越严格,每一行记下来的组数就越少,那么每一行需要的动态空间就越少,在所述步骤S109中,将舍弃的最大条件值Hthro设定为(3840/4)960,那么每一行统计后留下4组RGB值及其数量,因此组成一个如下的4*4的矩阵:After one line of processing, some recorded RGB values and their numbers will be left. The number of recorded groups depends on the selection of Hthro. The larger the Hthro, the stricter the conditions for writing down, and the fewer the number of groups recorded per line, then The less dynamic space required for each row, in the step S109, the maximum condition value Hthro is set to (3840/4) 960, then each row of statistics leaves 4 sets of RGB values and their numbers, so Form a 4 * 4 matrix as follows:
R1    G1    B1    组1R1 G1 B1 Group 1
R2    G2    B2    组2R2 G2 B2 Group 2
R3    G3    B3    组3R3 G3 B3 Group 3
R4    G4    B4    组4R4 G4 B4 Group 4
在对上述矩阵进行处理时,When processing the above matrix,
组1分别判断与组2、3、4中的值是否相同,相同的话就将该组数量累加到组1上;Group 1 determines whether the values in Groups 2, 3, and 4 are the same, and if they are the same, the number of groups is added to Group 1;
组2分别判断与组3、4中的值是否相同,相同的话就将该组数量累加到组2上;Group 2 determines whether the values in Groups 3 and 4 are the same, and if they are the same, the number of groups is added to Group 2;
组3最后与组4进行判断是否相同,相同的话就将该组数量累加到组3上。Group 3 finally judges whether it is the same as group 4. If it is the same, the group number is added to group 3.
如图1中所示,本揭示的一种针对画面数据处理的方法的具体流程图如下:As shown in FIG. 1, a specific flowchart of a method for processing picture data according to the present disclosure is as follows:
S201:提取每一行的像素,时钟周期的统计数量clock在开始时设为0;S201: Extract the pixels of each row, and the statistical number of clock cycles clock is set to 0 at the beginning;
S202:根据判定条件,此时以n=2为例,将不同像素点的R值以及G值和B值同时分别进行比较;S202: According to the judgment condition, taking n = 2 as an example at this time, compare the R value, G value and B value of different pixels at the same time;
S203:将S202中符合条件的值进行统计并记下相应的数量;S203: Count the qualified values in S202 and record the corresponding quantity;
S204:将统计到的时钟周期的数量与Hthro进行判断;S204: Judge the number of clock cycles counted with Hthro;
S205:记下满足步骤S204中等式成立的RGB值,并记下其数量;S205: Write down the RGB value that satisfies the equation established in step S204, and write down the number;
S206:将所得到的每一行的RGB值与其数量组成一个运算矩阵;S206: Combine the obtained RGB value of each row and its quantity into an operation matrix;
S207:分别判定矩阵中的第i组与第i组之后的各组是否相同,相同即将所述第i组数量累加到第i组上;S207: Determine whether the i-th group in the matrix is the same as each group after the i-th group, and the same is to add the number of the i-th group to the i-th group;
S208:将数量最多的一组记为所在行的一致性R、G、B值同时记下数量值No.final;S208: record the group with the largest number as the consistent R, G, and B values of the row, and record the quantity value No. final;
S209:将S208中获得到的No.final与赋值Hth比较。S209: Compare No. final obtained in S208 with the assigned Hth.
最后,将得到的数量最多的一组记为该行的一致性R、G、B值,其中R、G、B值为0-255中的一个,同时记下该相同像素的数量,通过多次这样的处理,能够精确的找到多个相同RGB像素值的数量以及其灰阶值。Finally, record the group with the largest number as the consistent R, G, and B values of the row, where the R, G, and B values are one of 0-255, and simultaneously record the number of the same pixels. After such processing, the number of the same RGB pixel values and their gray scale values can be accurately found.
综上所述,以上对本揭示实施例所提供的一种针对画面数据处理的方法进行了详细介绍,根据本揭示的实施例,能够快速的从一帧中找出相同的像素点的数量最大值以及其对应的R、G、B像素值,同时还能确定其所在的行数,针对这些找到的像素点,能够有针对性的对这些画面进行特殊处理,从而提高处理的准确性。In summary, the above provides a detailed description of a method for processing image data provided by the embodiments of the present disclosure. According to the embodiments of the present disclosure, the maximum number of identical pixels can be quickly found from a frame And the corresponding R, G, and B pixel values, as well as the number of rows where they are located. For these found pixel points, these pictures can be specifically processed to improve the accuracy of processing.
本文中应用了具体个例对本揭示的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本揭示的技术方案及其核心思想;本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本揭示各实施例的技术方案的范围。This article uses specific examples to explain the principles and implementation of the present disclosure. The descriptions of the above embodiments are only used to help understand the technical solutions and core ideas of the present disclosure; those of ordinary skill in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (16)

  1. 一种针对画面数据处理的方法,其中,包括以下步骤:A method for processing picture data, including the following steps:
    S100、获取每一行图像的像素,其中,在处理每一行图像时每一个data算法会同时处理n个像素点;S100. Acquire pixels of each row of images, where each data algorithm processes n pixels simultaneously when processing each row of images;
    S101、设置一个波动状态寄存器,其中,所述波动状态寄存器的预定数值为X;S101. Set a fluctuation status register, wherein the predetermined value of the fluctuation status register is X;
    S102、将所述data算法处理的不同像素点的R值进行比较,同时比较每一个像素点中对应的G和B的值;S102: Compare the R values of different pixels processed by the data algorithm, and at the same time compare the corresponding G and B values in each pixel;
    S103、设置一个舍弃最高值Y;S103. Set a discarding maximum value Y;
    S104、从第一个时钟周期开始统计,如果与所述第一个时钟周期自身相同,所述data算法的赋值就变为时钟周期的数量乘以n,如果遇到时钟周期内的像素点R、G、B的值相同,直接跳转到步骤S109;如果所述像素点R、G、B的值与前一个时钟周期内的像素点R、G、B的值不同,那么就跳转到步骤S106,对已经统计到的相同的时钟周期的数量是否足够长进行判断;S104. Statistics start from the first clock cycle. If it is the same as the first clock cycle itself, the assignment of the data algorithm becomes the number of clock cycles multiplied by n. If a pixel R within the clock cycle is encountered , G, B have the same value, jump directly to step S109; if the value of the pixel R, G, B is different from the value of the pixel R, G, B in the previous clock cycle, then jump to Step S106, judging whether the number of the same clock cycles that have been counted is long enough;
    S105、设置一个舍弃的最大条件值Hthro;S105. Set a discarded maximum condition value Hthro;
    S106、如果统计到的时钟周期的数量不小于Hthro,就记下连续相同的像素的R、G、B的值和相同的像素的数量,放入矩阵,同时,将所述像素的R、G、B的值设定为现有像素的R、G、B值一致性判定值;S106. If the counted number of clock cycles is not less than Hthro, record the values of R, G, and B of the same consecutive pixels and the number of the same pixels, put them into the matrix, and at the same time, put the R, G of the pixels , B value is set to the existing pixel R, G, B value consistency judgment value;
    S107、如果遇到上一时钟周期时已经相同的像素的数量如果不小于值Hthro,记下连续相同的像素的R、G、B值和其数量;S107. If the number of pixels that are already the same when the last clock cycle is encountered is not less than the value Hthro, write down the R, G, and B values and the number of consecutive pixels that are the same;
    不更改待判定的R、G、B值,直到统计到一个自身一致的时钟周期,此时更改一致性判定值的R、G、B值,并且更新相同像素的数量;Do not change the R, G, and B values to be determined until a self-consistent clock cycle is counted. At this time, change the R, G, and B values of the consistency determination value, and update the number of the same pixels;
    S108、一行处理完成之后,根据所述值Hthro来记录保留下的m组像素的R、G、B值和像素的数量;S108. After one line of processing is completed, record the R, G, and B values of the remaining m groups of pixels and the number of pixels according to the value Hthro;
    S109、将所述保留下的m组像素的R、G、B值和像素的数量组成一个m*4的矩阵;其中,分别判定矩阵中的第i组与第i组之后的各组是否相同,相同即将所述第i组的数量累加到第i组上;并将数量最多的一组记为所在行的一致性R、G、B值,同时记下数量值;S109. Combine the R, G, and B values of the remaining m groups of pixels and the number of pixels into an m * 4 matrix; where it is separately determined whether the i-th group in the matrix is the same as each group after the i-th group , The same will add the number of the i-th group to the i-th group; and record the group with the largest number as the consistent R, G, B value of the row, and record the quantity value at the same time;
    S110、每行设置一个最大舍弃时间Hth;S110. Set a maximum discard time Hth for each line;
    S111、将所述步骤S109中的所述数量值与Hth比较,如果数量大于Hth,那么第i行一致,再跳转到所述步骤S108执行;若数量值小于Hth,则执行步骤S112;S111. Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, then the i-th line is the same, and then jump to step S108 for execution; if the quantity value is less than Hth, perform step S112;
    S112、每列设置一个最大舍弃值Vthro,按照步骤S106到S111的同样方法进行运算,从而找出整帧像素相同的R、G、B值与所述像素的行数;S112. Set a maximum discard value Vthro for each column, and perform calculation according to the same method as steps S106 to S111, so as to find out the same R, G, and B values of the entire frame of pixels and the number of rows of the pixels;
    其中,所述步骤S101中,在处理每一行图像时每一个data算法会在同一时钟周期内处理2个、4个或者8个像素点;其中,所述步骤S102中,如果每一组中R、G、B三者的差值均不大于所述X,则此时钟周期的波动状态记为自身一致;如果每一组中R、G、B三者的差值均大于所述X,则此时钟周期的波动状态记为自身不一致。Wherein in step S101, each data algorithm will process 2, 4, or 8 pixels in the same clock cycle when processing each row of images; wherein, in step S102, if R in each group , The difference between the three of G, B is not greater than the X, then the fluctuation state of this clock cycle is recorded as being consistent; if the difference of R, G, and B in each group is greater than the X, then The fluctuation state of this clock cycle is recorded as inconsistency.
  2. 根据权利要求1所述的针对画面数据处理的方法,其中,所述步骤S106中,此时,所述新的像素的数量更新变为所述连续相同的像素的数量乘以n。The method for picture data processing according to claim 1, wherein in step S106, at this time, the number of new pixels is updated to become the number of consecutive identical pixels multiplied by n.
  3. 根据权利要求1所述的针对画面数据处理的方法,其中,所述步骤S107中,所述相同像素的数量更新变为n乘以所述连续相同的像素的数量。The method for picture data processing according to claim 1, wherein in the step S107, the number of identical pixels is updated to become n times the number of consecutive identical pixels.
  4. 根据权利要求1所述的针对画面数据处理的方法,其中,所述步骤S105中,所述舍弃的最大条件值Hthro设定为960。The method for processing picture data according to claim 1, wherein in step S105, the discarded maximum condition value Hthro is set to 960.
  5. 根据权利要求1所述的针对画面数据处理的方法,其中,所述data算法在赋值时为时钟周期的两倍。The method for processing picture data according to claim 1, wherein the data algorithm is twice the clock period when assigned.
  6. 根据权利要求1所述的针对画面数据处理的方法,其中,所述不同像素点的R、G、B像素值为0-255中的一个。The method for processing picture data according to claim 1, wherein the R, G, and B pixel values of the different pixels are one of 0-255.
  7. 根据权利要求1所述的针对画面数据处理的方法,其中,所述步骤S109中,当m=4时,具体步骤包括,The method for processing picture data according to claim 1, wherein in step S109, when m = 4, the specific steps include,
    组1分别判断与组2、3、4是否相同,相同将该组数量累加到组1上;Group 1 judges whether it is the same as groups 2, 3, and 4, respectively, and adds the number of groups to group 1;
    组2分别判断与组3是否相同,相同将该组数量累加到组2上;Group 2 judges whether it is the same as group 3, and adds the number of the group to group 2;
    组3判断与组4是否相同,相同将该组数量累加到组3上。Group 3 judges whether it is the same as group 4, and adds the number of groups to group 3 in the same way.
  8. 一种针对画面数据处理的方法,包括以下步骤:A method for processing picture data includes the following steps:
    S100、获取每一行图像的像素,其中,在处理每一行图像时每一个data算法会同时处理n个像素点;S100. Acquire pixels of each row of images, where each data algorithm processes n pixels simultaneously when processing each row of images;
    S101、设置一个波动状态寄存器,其中,所述波动状态寄存器的预定数值为X;S101. Set a fluctuation status register, wherein the predetermined value of the fluctuation status register is X;
    S102、将所述data算法处理的不同像素点的R值进行比较,同时比较每一个像素点中对应的G和B的值;S102: Compare the R values of different pixels processed by the data algorithm, and at the same time compare the corresponding G and B values in each pixel;
    S103、设置一个舍弃最高值Y;S103. Set a discarding maximum value Y;
    S104、从第一个时钟周期开始统计,如果与所述第一个时钟周期自身相同,所述data算法的赋值就变为时钟周期的数量乘以n,如果遇到时钟周期内的像素点R、G、B的值相同,直接跳转到步骤S109;如果所述像素点R、G、B的值与前一个时钟周期内的像素点R、G、B的值不同,那么就跳转到步骤S106,对已经统计到的相同的时钟周期的数量是否足够长进行判断;S104. Statistics start from the first clock cycle. If it is the same as the first clock cycle itself, the assignment of the data algorithm becomes the number of clock cycles multiplied by n. If a pixel R within the clock cycle is encountered , G, B have the same value, jump directly to step S109; if the value of the pixel R, G, B is different from the value of the pixel R, G, B in the previous clock cycle, then jump to Step S106, judging whether the number of the same clock cycles that have been counted is long enough;
    S105、设置一个舍弃的最大条件值Hthro;S105. Set a discarded maximum condition value Hthro;
    S106、如果统计到的时钟周期的数量不小于Hthro,就记下连续相同的像素的R、G、B的值和相同的像素的数量,放入矩阵,同时,将所述像素的R、G、B的值设定为现有像素的R、G、B值一致性判定值;S106. If the counted number of clock cycles is not less than Hthro, record the values of R, G, and B of the same consecutive pixels and the number of the same pixels, put them into the matrix, and at the same time, put the R, G of the pixels , B value is set to the existing pixel R, G, B value consistency judgment value;
    S107、如果遇到上一时钟周期时已经相同的像素的数量如果不小于值Hthro,记下连续相同的像素的R、G、B值和其数量;S107. If the number of pixels that are already the same when the last clock cycle is encountered is not less than the value Hthro, write down the R, G, and B values and the number of consecutive pixels that are the same;
    不更改待判定的R、G、B值,直到统计到一个自身一致的时钟周期,此时更改一致性判定值的R、G、B值,并且更新相同像素的数量;Do not change the R, G, and B values to be determined until a self-consistent clock cycle is counted. At this time, change the R, G, and B values of the consistency determination value, and update the number of the same pixels;
    S108、一行处理完成之后,根据所述值Hthro来记录保留下的m组像素的R、G、B值和像素的数量;S108. After one line of processing is completed, record the R, G, and B values of the remaining m groups of pixels and the number of pixels according to the value Hthro;
    S109、将所述保留下的m组像素的R、G、B值和像素的数量组成一个m*4的矩阵;其中,分别判定矩阵中的第i组与第i组之后的各组是否相同,相同即将所述第i组的数量累加到第i组上;并将数量最多的一组记为所在行的一致性R、G、B值,同时记下数量值;S109. Combine the R, G, and B values of the remaining m groups of pixels and the number of pixels into an m * 4 matrix; where it is separately determined whether the i-th group in the matrix is the same as each group after the i-th group , The same will add the number of the i-th group to the i-th group; and record the group with the largest number as the consistent R, G, B value of the row, and record the quantity value at the same time;
    S110、每行设置一个最大舍弃时间Hth;S110. Set a maximum discard time Hth for each line;
    S111、将所述步骤S109中的所述数量值与Hth比较,如果数量大于Hth,那么第i行一致,再跳转到所述步骤S108执行;若数量值小于Hth,则执行S112;S111. Compare the quantity value in step S109 with Hth. If the quantity is greater than Hth, the i-th line is the same, and then jump to step S108 for execution; if the quantity value is less than Hth, execute S112;
    S112、每列设置一个最大舍弃值Vthro,按照所述步骤S106到S111的同样方法进行运算,从而找出整帧像素相同的R、G、B值与所述像素的行数。S112. Set a maximum discard value Vthro for each column, and perform calculation according to the same method in steps S106 to S111, so as to find out the same R, G, and B values of the entire frame of pixels and the number of rows of the pixels.
  9. 根据权利要求8所述的针对画面数据处理的方法,其中,所述步骤S101中,在处理每一行图像时每一个data算法会在同一时钟周期内处理2个、4个或者8个像素点。The method for processing picture data according to claim 8, wherein in step S101, when processing each line of images, each data algorithm processes 2, 4, or 8 pixels in the same clock cycle.
  10. 根据权利要求8所述的针对画面数据处理的方法,其中,所述步骤S102中,如果每一组中R、G、B三者的差值均不大于所述X,则此时钟周期的波动状态记为自身一致;如果每一组中R、G、B三者的差值均大于所述X,则此时钟周期的波动状态记为自身不一致。The method for processing picture data according to claim 8, wherein in step S102, if the difference between R, G, and B in each group is not greater than the X, then the fluctuation of the clock period The state is recorded as self-consistency; if the difference between R, G, and B in each group is greater than the X, the fluctuation state of this clock cycle is recorded as self-inconsistency.
  11. 根据权利要求8所述的针对画面数据处理的方法,其中,所述步骤S106中,此时,所述新的像素的数量更新变为所述连续相同的像素的数量乘以n。The method for picture data processing according to claim 8, wherein in step S106, at this time, the number of new pixels is updated to become the number of consecutive identical pixels times n.
  12. 根据权利要求8所述的针对画面数据处理的方法,其中,所述步骤S107中,所述相同像素的数量更新变为n乘以所述连续相同的像素的数量。The method for picture data processing according to claim 8, wherein in step S107, the number of identical pixels is updated to be n times the number of consecutive identical pixels.
  13. 根据权利要求8所述的针对画面数据处理的方法,其中,所述步骤S105中,所述舍弃的最大条件值Hthro设定为960。The method for processing picture data according to claim 8, wherein in step S105, the discarded maximum condition value Hthro is set to 960.
  14. 根据权利要求8所述的针对画面数据处理的方法,其中,所述data算法在赋值时为时钟周期的两倍。The method for processing picture data according to claim 8, wherein the data algorithm is twice the clock period when assigned.
  15. 根据权利要求8所述的针对画面数据处理的方法,其中,所述不同像素点的R、G、B像素值为0-255中的一个。The method for processing picture data according to claim 8, wherein the R, G, and B pixel values of the different pixels are one of 0-255.
  16. 根据权利要求8所述的针对画面数据处理的方法,其中,所述步骤S109中,当m=4时,具体步骤包括,The method for processing picture data according to claim 8, wherein in step S109, when m = 4, the specific steps include,
    组1分别判断与组2、3、4是否相同,相同将该组数量累加到组1上;Group 1 judges whether it is the same as groups 2, 3, and 4, respectively, and adds the number of groups to group 1;
    组2分别判断与组3是否相同,相同将该组数量累加到组2上;Group 2 judges whether it is the same as group 3, and adds the number of the group to group 2;
    组3判断与组4是否相同,相同将该组数量累加到组3上。Group 3 judges whether it is the same as group 4, and adds the number of groups to group 3 in the same way.
PCT/CN2019/072496 2018-10-26 2019-01-21 Method for processing image data WO2020082632A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811257059.3 2018-10-26
CN201811257059.3A CN109640065A (en) 2018-10-26 2018-10-26 A method of for picture data processing

Publications (1)

Publication Number Publication Date
WO2020082632A1 true WO2020082632A1 (en) 2020-04-30

Family

ID=66066731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/072496 WO2020082632A1 (en) 2018-10-26 2019-01-21 Method for processing image data

Country Status (2)

Country Link
CN (1) CN109640065A (en)
WO (1) WO2020082632A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825939A (en) * 2005-02-22 2006-08-30 恩益禧电子股份有限公司 Pull-down detection apparatus and pull-down detection method
WO2008123466A1 (en) * 2007-03-30 2008-10-16 Sharp Kabushiki Kaisha Image processing device, control program, computer-readable recording medium, electronic device, and image processing device control method
CN101324928A (en) * 2007-06-13 2008-12-17 夏普株式会社 Image processing method, image processing apparatus, and image forming apparatus
CN103793873A (en) * 2014-01-26 2014-05-14 大唐移动通信设备有限公司 Obtaining method and device for image pixel mid value
CN107102186A (en) * 2017-06-09 2017-08-29 中国电子科技集团公司第四十研究所 A kind of digital oscilloscope fluoroscopic image parallel high-speed processing system and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7321623B2 (en) * 2002-10-01 2008-01-22 Avocent Corporation Video compression system
CN1308894C (en) * 2003-09-10 2007-04-04 联想(北京)有限公司 Lossless compression method for graphic file
CN100484244C (en) * 2007-06-04 2009-04-29 北京派瑞根科技开发有限公司 Image coding and decoding processing method based on picture element statistical characteristic and visual characteristic
CN103873868A (en) * 2012-12-13 2014-06-18 比亚迪股份有限公司 Bitmap data compression method
CN103139567B (en) * 2013-01-28 2015-11-18 东软集团股份有限公司 The method and apparatus of a kind of image compression and decompression
CN105022788A (en) * 2015-06-19 2015-11-04 江苏新通达电子科技股份有限公司 Lossless compression algorithm for bin file in PNG picture format and full liquid crystal instrument display system
CN107248136B (en) * 2017-05-12 2019-11-08 西安交通大学 A kind of image histogram information acquisition method based on FPGA

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825939A (en) * 2005-02-22 2006-08-30 恩益禧电子股份有限公司 Pull-down detection apparatus and pull-down detection method
WO2008123466A1 (en) * 2007-03-30 2008-10-16 Sharp Kabushiki Kaisha Image processing device, control program, computer-readable recording medium, electronic device, and image processing device control method
CN101641666A (en) * 2007-03-30 2010-02-03 夏普株式会社 Image processing device, control program, computer-readable recording medium, electronic device, and image processing device control method
CN101324928A (en) * 2007-06-13 2008-12-17 夏普株式会社 Image processing method, image processing apparatus, and image forming apparatus
CN103793873A (en) * 2014-01-26 2014-05-14 大唐移动通信设备有限公司 Obtaining method and device for image pixel mid value
CN107102186A (en) * 2017-06-09 2017-08-29 中国电子科技集团公司第四十研究所 A kind of digital oscilloscope fluoroscopic image parallel high-speed processing system and method

Also Published As

Publication number Publication date
CN109640065A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
KR101094674B1 (en) Pixel overdrive for an LCD panel with a very slow presponse pixel
CN104821157B (en) Show correction system
CN101277386B (en) Fixed pattern noise removal circuit, fixed pattern noise removal method, program, and image pickup apparatus
CN106448608B (en) Screen brightness adjusting method and device aiming at mura problem and television
JP2020518863A (en) Display panel unevenness correction method and display panel
US20050083353A1 (en) Display device
CN109767722B (en) OLED module Gamma adjusting method and device
CN107342041B (en) A kind of OLED shows the ameliorative way of non-uniform phenomenon
WO2012043880A1 (en) A correction device and a display
CN109584792B (en) Method for quickly adjusting gray scale gamma of O L ED screen
CN113516939B (en) Brightness correction method and device, display equipment, computing equipment and storage medium
CN105590606A (en) Mura phenomenon compensation method
CN107454285A (en) Image noise estimation method and device and image extraction device
CN110910847A (en) Gamma correction method and device for display module
CN100397451C (en) Method and apparatus for calculating an average picture level and plasma display using the same
WO2020082632A1 (en) Method for processing image data
WO2016206247A1 (en) Method and drive circuit for correcting lcd display effect and liquid crystal display device
CN104394391A (en) Method and system for processing image data of dot matrix images acquired by camera
US8275202B2 (en) Method of grouping pixels in 2D digital image
CN116156140A (en) Video display processing method, device, computer equipment and storage medium
JP4865849B2 (en) Imaging condition determination device, imaging condition determination method, imaging condition determination program, computer-readable recording medium, and unevenness correction system including the imaging condition determination device
US20220068200A1 (en) Gray scale display method
WO2023029199A1 (en) Demura method for display panel
CN111563863B (en) Histogram-limited image enhancement method and device
CN114360449A (en) Multi-pixel fusion compression and decompression method for Mura calibration of display

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: 19875270

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: 19875270

Country of ref document: EP

Kind code of ref document: A1