CN113645424A - Solid-state noise calibration method and system and video stream processing method and system - Google Patents

Solid-state noise calibration method and system and video stream processing method and system Download PDF

Info

Publication number
CN113645424A
CN113645424A CN202111210126.8A CN202111210126A CN113645424A CN 113645424 A CN113645424 A CN 113645424A CN 202111210126 A CN202111210126 A CN 202111210126A CN 113645424 A CN113645424 A CN 113645424A
Authority
CN
China
Prior art keywords
groups
solid
column
state noise
calculating
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202111210126.8A
Other languages
Chinese (zh)
Other versions
CN113645424B (en
Inventor
罗晶宜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Xinmai Microelectronics Co ltd
Original Assignee
Hangzhou Xiongmai Integrated Circuit Technology Co Ltd
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 Hangzhou Xiongmai Integrated Circuit Technology Co Ltd filed Critical Hangzhou Xiongmai Integrated Circuit Technology Co Ltd
Priority to CN202111210126.8A priority Critical patent/CN113645424B/en
Publication of CN113645424A publication Critical patent/CN113645424A/en
Application granted granted Critical
Publication of CN113645424B publication Critical patent/CN113645424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/52Automatic gain control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/21Circuitry for suppressing or minimising disturbance, e.g. moiré or halo
    • H04N5/213Circuitry for suppressing or minimising impulsive noise

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a solid-state noise calibration method and a system thereof, and a video stream processing method and a system thereof, belonging to the technical field of video processing, wherein n groups of image frames are taken under the condition of obtaining different gains, and the average value of each group of image frames is taken to obtain the average value of the n groups of image frames; taking the numerical values of odd rows and odd columns, the numerical values of even rows and even columns, the numerical values of odd rows and odd columns and the numerical values of even rows and even columns of the average value of each group of image frames, and calculating all column-direction average values of four groups of numerical values; calculating four groups of image mean values according to the column mean values; taking each line of data in the column direction mean value to respectively form u groups of line data sets; calculating a weight coefficient of each group of column data sets, and processing u groups of column data sets through the weight coefficient to obtain four groups of column matrix arrays after weight processing; then calculating four groups of overall mean values; and calculating the standard solid-state noise calibration value as the difference between the array of the column matrix and the overall average value. The invention provides a set of complete calibration process, and a noise processing method and system based on the calibration value.

Description

Solid-state noise calibration method and system and video stream processing method and system
Technical Field
The present invention relates to video processing technologies, and in particular, to a solid-state noise calibration method and a method for removing solid-state noise in a video stream.
Background
In the video processing process, vertical bars of dark transformation with regularity in the column direction of an image are often interwoven together due to the deviation of system structures and processes such as a front-end analog-digital converter and the like, and the vertical bars are mainly represented as uneven brightness, so that a mode capable of eliminating the form noise and better recovering the image quality is needed.
In the prior art, a set of system is not formed to stably and reliably process the noise, firstly, the calibration process is incomplete, and a set of complete calibration process is not formed, so that the subsequent video stream processing is more stable and reliable. Secondly, there is no real effective characteristic of catching solid-state noise in the video stream processing mode, resulting in poor processing effect.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a set of perfect calibration process.
In order to solve the technical problem, the invention is solved by the following technical scheme:
a solid state noise calibration method comprises the following steps:
acquiring image data under a plurality of different gains;
taking n groups of image frames under each gain, superposing each group of image frames and averaging to obtain an average value of the n groups of image frames;
taking the numerical values of odd rows and odd columns, the numerical values of even rows and even columns, the numerical values of odd rows and odd columns and the numerical values of even rows and even columns of the average value of each group of image frames, and calculating all column direction average values of four groups of numerical values; obtaining n groups of screening data, wherein each group of screening data comprises four groups of column-direction mean values; calculating four groups of image mean values in each group of screening data according to the transverse pixels of the column mean values; calculating four groups of overall mean values according to the four groups of image mean values;
taking each line of data in the column direction mean value in the n groups of screening data to respectively form u groups of line data sets; calculating a weight coefficient of each group of column data sets, and processing u groups of column data sets through the weight coefficient to obtain four groups of column matrix arrays after weight processing;
and calculating the standard solid-state noise calibration value as the difference between the array of the column matrix and the overall average value.
As an embodiment, the method for calculating the weight coefficient of each group of column data sets includes:
sorting the numerical values in each group of column data sets from small to large respectively, and marking sequence numbers;
calculating a weight coefficient for each group of sorted row data sets, and if the sequence number is less than or equal to the median of the row data number of each group of sets, taking the sequence number by the weight coefficient;
and if the sequence number is greater than the median of the data quantity of each group of the aggregation columns, the weight coefficient is the difference between the quantity value and the sequence number plus one.
As one embodiment, the column-wise mean calculation method includes:
dividing the image frame average data into four groups, wherein the first group takes the numerical values of odd rows and even columns, the second group takes the numerical values of odd rows and odd columns, the third group takes the numerical values of odd rows and odd columns, and the fourth group takes the numerical values of even rows and even columns; and accumulating all the pixels in the column direction of each group respectively to generate a column direction addition pixel sum, and dividing the column direction addition pixel sum by one half width of the image frame to obtain a column direction average value.
As an embodiment, the method for calculating four sets of image means according to four sets of column-wise means includes:
and accumulating all the horizontal pixels of the four groups of column-direction mean values respectively to generate horizontal addition pixel sums, and dividing the horizontal addition pixel sums by half of the length of the image frame to obtain four groups of image mean values.
As an embodiment, the method for calculating the four sets of overall mean values according to the four sets of image mean values includes:
and accumulating n values in the four groups of image mean value arrays respectively, and averaging to obtain the integral mean value.
As an embodiment, the method for obtaining four sets of column matrix arrays after weight coefficient processing by processing u sets of column data sets with weight coefficients includes:
and multiplying the numerical value points in the row data sets by the corresponding weight coefficients, dividing the numerical value points by the sum of the weight coefficients to obtain all the row data sets after being processed by the weight coefficients, and combining the row data sets into a row matrix array.
As one of the embodiments, u is from 1 to x/2, where x is the length of the image frame.
As one embodiment, the method for acquiring image data under a plurality of different gains comprises:
taking a pure white background plate and an adjustable light source;
adjusting the intensity of a light source, aligning the light source to a pure white background plate, and collecting n groups of bayer format data under different gain multiples;
and setting the length and width of each acquired frame of bayer format data image.
As one embodiment, the method for displaying calibration values under different gain multiples further includes:
taking the length of each group of four groups of images in each frame as an abscissa and taking the mean value of each group of column-direction pixels of each frame of image as an ordinate;
observing the floating range of the mean value of each group of column-direction pixels under each gain, and if the floating range regularly and uniformly rises, calculating the calibration values under different gain multiples correctly; if not, the calculation is wrong.
The invention also provides a video stream processing method, which comprises the following steps:
acquiring a video stream to be processed and a gain of the video stream to be processed;
calling the solid-state noise calibration value with the same gain as the video to be processed, or calling the solid-state noise calibration value with the different gain from the video to be processed to calculate the solid-state noise calibration value with the same gain as the video to be processed;
and calculating the difference between the video stream data to be processed and the solid-state noise calibration value, and outputting a processing result.
As an embodiment, the odd-numbered columns and the odd-numbered rows of the video stream subtract the odd-numbered columns and the odd-numbered rows of the video stream from the solid-state noise calibration value under the corresponding gain, the odd-numbered rows and the even-numbered columns subtract the odd-numbered rows and the even-numbered rows of the video stream from the solid-state noise calibration value under the corresponding gain, and the even-numbered columns and the even-numbered rows subtract the even-numbered rows and the even-numbered rows of the video stream from the solid-state noise calibration value under the corresponding gain.
As one of the implementation manners, if there is no gain of the video stream to be processed, then two groups of solid-state noise calibration values corresponding to gains adjacent to each other before and after the gain of the video stream to be processed are called; and averaging the solid-state noise calibration values of the two groups of gains adjacent to each other to obtain the solid-state noise calibration value corresponding to the gain of the video stream to be processed.
The invention also provides a solid-state noise calibration system, comprising:
the first processing unit is used for acquiring image data under a plurality of different gains;
the second processing unit is used for acquiring n groups of image frames under each gain, and averaging each group of image frames to obtain an average value of the n groups of image frames;
the third processing unit is used for calculating all column direction mean values of the four groups of numerical values by taking the numerical values of odd columns and odd rows, the numerical values of odd rows and even rows, the numerical values of even rows and odd columns and the numerical values of even rows of each group of image frame mean values; obtaining n groups of screening data, wherein each group of screening data comprises four groups of column-direction mean values; calculating four groups of image mean values according to the column mean values; taking each line of data in the column direction mean value in the n groups of screening data to respectively form u groups of line data sets;
the fourth processing unit is used for calculating the weight coefficient of each group of column data sets, and obtaining four groups of column matrix arrays after weight processing after the u groups of column data sets are processed by the weight coefficient; calculating four groups of overall average values according to the image average values;
and the fifth processing unit is used for calculating a standard solid-state noise calibration value, namely calculating the difference between the array of the column matrix and the overall mean value.
The invention also provides a video stream processing system, which comprises a solid-state noise calibration value calculated according to the solid-state noise calibration method, and an acquisition unit used for acquiring the video stream to be processed and the gain of the video stream to be processed;
a sixth processing unit, configured to invoke the solid-state noise calibration value with the same gain as the video stream to be processed, or invoke a solid-state noise calibration value with a different gain from the video stream to be processed to calculate the solid-state noise calibration value with the same gain as the video stream to be processed;
and the seventh processing unit is used for calculating the difference between the video stream data to be processed and the solid-state noise calibration value and outputting a processing result.
The invention has the beneficial effects that:
1. the solid-state noise processing module has a set of perfect calibration process, and has better effect on subsequent solid-state noise processing.
2. The processing process of the invention is more high-speed and effective, the characteristic of solid-state noise is grasped, the whole isp effect is more effectively improved by combining the video stream processing, and the image quality displayed by the video stream recovery is better.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a solid state noise calibration method;
fig. 2 is a solid state noise calibration line graph.
Detailed Description
The present invention will be described in further detail with reference to examples, which are illustrative of the present invention and are not to be construed as being limited thereto.
Example 1:
the embodiment discloses a solid-state noise calibration method, as shown in fig. 1, including the following steps:
acquiring image data under a plurality of different gains;
taking n groups of image frames under each gain, and averaging each group of image frames to obtain an average value of the n groups of image frames;
taking the numerical values of odd rows and odd columns, the numerical values of even rows and even columns, the numerical values of odd rows and odd columns and the numerical values of even rows and even columns of the average value of each group of image frames, and calculating all column-direction average values of four groups of numerical values; obtaining n groups of screening data, wherein each group of screening data comprises four groups of column-direction mean values; calculating four groups of image mean values according to the column mean values; taking each line of data in the column direction mean value in the n groups of screening data to respectively form u groups of line data sets;
calculating a weight coefficient of each group of column data sets, and processing u groups of column data sets through the weight coefficient to obtain four groups of column matrix arrays after weight processing;
calculating four groups of overall average values according to the image average values; and calculating the standard solid-state noise calibration value as the difference between the array of the column matrix and the overall average value.
The method for acquiring the image data under the plurality of different gains comprises the following steps:
taking a pure white background plate and an adjustable light source;
adjusting the intensity of a light source, aligning the light source to a pure white background plate, and collecting n groups of bayer format data under different gain multiples;
and setting the length and width of each acquired frame of bayer format data image.
The specific scheme adopted in the embodiment is as follows:
preparing a pure white paperboard and adjusting a light source (such as a lamp box) to regulate and control the light source.
Adjusting the intensity of a light source, aligning a lens to a pure white paper board, and respectively acquiring nmax groups of 100-frame bayer format data under 1, 4, 16, 64, 128 and 256-time gains (sensor gains), wherein nmax is a self-defined number, and the larger the numerical value is, the higher the subsequent processing accuracy is. Wherein nmax takes an odd value.
Let each frame of image data be
Figure 591793DEST_PATH_IMAGE001
N represents the number of groups captured at the gain, nmax is the number of groups captured in total and is set to be only odd, o represents the data at several gains, and p represents the number of frames in 100 frames, e.g., data at several gains
Figure 5456DEST_PATH_IMAGE002
Representing the 12 th frame data in the captured 2 nd group of 100 frame data under 1-time gain;
further, the length of each frame of data is set to be x, and the width is set to be y.
The method for obtaining the average value of the n groups of image frames comprises the following steps:
data under each captured gain is extracted, and the following example is to process the 1 st group of data of 1-time gain data, namely to extract
Figure 889099DEST_PATH_IMAGE003
To
Figure 362805DEST_PATH_IMAGE004
The data of (1). The data of 1-nmax groups can be calculated by taking the data of the 1 st group of the 1-time gain data as an example, and the calculation methods under different gains can be calculated.
Firstly, 100 captured images are overlapped and averaged to obtain an image, namely
Figure 331899DEST_PATH_IMAGE005
Wherein
Figure 782209DEST_PATH_IMAGE006
Multiplying the calculated average value of the image frames of the following group 1 data for 1 catch data, wherein
Figure 520358DEST_PATH_IMAGE007
Representative matrix
Figure 899387DEST_PATH_IMAGE008
To the matrix
Figure 355776DEST_PATH_IMAGE009
Directly adding each other in a superposition way.
(III) then calculating a column-wise mean: the column-wise mean calculation method comprises the following steps: dividing the image frame average value data into four groups of small images, wherein the first group takes the numerical values of odd rows and even columns; the second group takes the numerical values of odd rows and odd columns, and the third group takes the numerical values of even rows and odd columns and the fourth group takes the numerical values of even rows and even columns; and accumulating all the pixels in the column direction of each group respectively to generate a column direction addition pixel sum, and dividing the column direction addition pixel sum by the width of the image frame to obtain a column direction average value.
Specifically, the method comprises the following steps: will be provided with
Figure 111242DEST_PATH_IMAGE010
The calculation is divided into 4 small images, i.e. into
Figure 703898DEST_PATH_IMAGE011
Figure 519407DEST_PATH_IMAGE012
Figure 463092DEST_PATH_IMAGE013
And
Figure 756670DEST_PATH_IMAGE014
4 groups of data are calculated in the following way:
Figure 970876DEST_PATH_IMAGE015
Figure 691707DEST_PATH_IMAGE016
Figure 122689DEST_PATH_IMAGE017
Figure 219958DEST_PATH_IMAGE018
the above formula is in matlab function form, and is specifically expressed
Figure 787205DEST_PATH_IMAGE019
Get
Figure 944517DEST_PATH_IMAGE020
The value of the odd column and the odd row of,
Figure 862795DEST_PATH_IMAGE021
get
Figure 232596DEST_PATH_IMAGE022
The value of the odd rows and even columns,
Figure 919929DEST_PATH_IMAGE023
get
Figure 770115DEST_PATH_IMAGE024
The value of the odd column of the even row,
Figure 910110DEST_PATH_IMAGE025
get
Figure 349181DEST_PATH_IMAGE026
Even columns and even rows.
Are respectively paired
Figure 891021DEST_PATH_IMAGE027
Figure 390135DEST_PATH_IMAGE028
Figure 751847DEST_PATH_IMAGE029
Figure 994609DEST_PATH_IMAGE030
Is accumulated to generate a column-wise summed pixel sum, and divided by one-half of the width y of the image frame to obtain a column-wise mean for each column, i.e.
Figure 390955DEST_PATH_IMAGE031
Wherein the content of the first and second substances,
Figure 60971DEST_PATH_IMAGE032
representation handle matrix
Figure 677023DEST_PATH_IMAGE033
The summation is carried out in the column direction,
Figure 192317DEST_PATH_IMAGE034
Figure 708749DEST_PATH_IMAGE035
Figure 549667DEST_PATH_IMAGE036
the same is true.
The method for calculating four groups of image mean data according to four groups of column-wise means comprises the following steps: and accumulating all the horizontal pixels of the four groups of column-direction mean values respectively to generate horizontal addition pixel sums, and dividing the horizontal addition pixel sums by one half of the length x of the image frame to obtain four groups of image mean value data. Namely:
Figure 151549DEST_PATH_IMAGE037
Figure 736114DEST_PATH_IMAGE038
Figure 841474DEST_PATH_IMAGE039
Figure 853292DEST_PATH_IMAGE040
wherein the content of the first and second substances,
Figure 676891DEST_PATH_IMAGE041
representation handle matrix
Figure 563683DEST_PATH_IMAGE042
The summation is carried out in the row direction,
Figure 523548DEST_PATH_IMAGE043
,
Figure 706268DEST_PATH_IMAGE044
,
Figure 282743DEST_PATH_IMAGE045
the same is true.
Thus, all the above values are calculated at 1-fold gain, i.e. all
Figure 209110DEST_PATH_IMAGE046
Figure 23483DEST_PATH_IMAGE047
Figure 642683DEST_PATH_IMAGE048
Figure 440875DEST_PATH_IMAGE049
And
Figure 905354DEST_PATH_IMAGE050
Figure 341277DEST_PATH_IMAGE051
Figure 131378DEST_PATH_IMAGE052
Figure 151287DEST_PATH_IMAGE053
where n is the nth set of data captured at the current gain of 1.
Since the averaging is performed to avoid the influence of random noise in the time domain, 100 frames of image data are superimposed, and only the influence of solid-state noise in the spatial domain is obtained after the superimposition.
Taking each line of data in the mean value of the column directions in the n groups of screening data to respectively form u groups of line data sets; calculating a weight coefficient of each group of column data sets, and processing u groups of column data sets through the weight coefficient to obtain four groups of column matrix arrays after weight processing; and multiplying the numerical value points in the row data sets by the corresponding weight coefficients, dividing the numerical value points by the sum of the weight coefficients to obtain all the row data sets after being processed by the weight coefficients, and combining the row data sets into a row matrix array. Following to process
Figure 685036DEST_PATH_IMAGE054
These n sets of screening data are illustrated as examples.
Now there are n groups
Figure 739580DEST_PATH_IMAGE055
Where n is 1 to nmax, extracting
Figure 169424DEST_PATH_IMAGE056
Divide each column of data into a set named
Figure 942208DEST_PATH_IMAGE057
Where u is a half-length per frame, i.e., u is 1 to x/2, where x is the length of the image frame.
As u =2 represents
Figure 14070DEST_PATH_IMAGE058
Set of all data column 2 data, i.e. to be ready
Figure 923120DEST_PATH_IMAGE059
Figure 553559DEST_PATH_IMAGE060
Figure 548060DEST_PATH_IMAGE061
The number of the 2 nd column in each matrix is extracted as a set. For each one now
Figure 158033DEST_PATH_IMAGE062
The data in the matrix are respectively sorted from small to large, and the sorting result is
Figure 187169DEST_PATH_IMAGE063
J denotes a sequence number, e.g.
Figure 224395DEST_PATH_IMAGE064
The number of the 4 th decimal in the 3 rd column data set in the first histogram is shown with a gain of 1.
Calculating a weight coefficient for each group of sorted row data sets, and if the sequence number is less than or equal to the median of the row data number of each group of sets, taking the sequence number by the weight coefficient; and if the sequence number is greater than the median of the data quantity of each group of the collection columns, the weight coefficient is the difference between the total quantity value nmax and the sequence number plus one.
Kj is calculated separately for each column set below, kj being the weighting factor, taking the first column set as an example.
Figure 706192DEST_PATH_IMAGE065
Figure 119855DEST_PATH_IMAGE066
Wherein
Figure 3498DEST_PATH_IMAGE067
Representation handle matrix
Figure 211625DEST_PATH_IMAGE068
Summing according to the row direction;
the final weight processing result in column 1 is
Figure 682183DEST_PATH_IMAGE069
Is 1 number and is combined into a matrix as follows:
Figure 633959DEST_PATH_IMAGE070
u is 1 to
Figure 372107DEST_PATH_IMAGE071
Figure 16715DEST_PATH_IMAGE072
I.e. the column-wise mean solid state noise value of the first histogram at 1 time of gain obtained by calculation, and so on
Figure 473105DEST_PATH_IMAGE073
Figure 962992DEST_PATH_IMAGE074
Figure 821226DEST_PATH_IMAGE075
And (6) calculating.
Figure 371156DEST_PATH_IMAGE076
Figure 49262DEST_PATH_IMAGE077
I.e. the overall mean of the first small graph at 1 time of gain obtained by calculation, and so on
Figure 106955DEST_PATH_IMAGE078
Figure 819696DEST_PATH_IMAGE079
Figure 806106DEST_PATH_IMAGE080
And (6) calculating.
Finally, the
Figure 971509DEST_PATH_IMAGE081
All standard solid-state noise calibration values of the first group under the gain of 1 multiplication can be calculated,
Figure 68778DEST_PATH_IMAGE082
i.e. the calculated solid state noise calibration value, the same principle can be used
Figure 636025DEST_PATH_IMAGE083
Figure 527758DEST_PATH_IMAGE084
Figure 446035DEST_PATH_IMAGE085
And (6) calculating.
According to the method, the solid-state noise calibration values under the residual 4, 16, 64, 128 and 256 multiplication gain factors are calculated, and the whole calibration process is finished by analogy.
According to the characteristics of the solid noise, the solid noise is removed, the weight is calculated, the numerical values are sequenced and then subjected to weight processing, the calibration value with large difference occupies smaller weight, and therefore the final calibration effect of the solid noise is good.
Further, this embodiment also provides a method for displaying calibration values under different gain multiples by using a line graph, including:
taking the length of each group of four groups of images in each frame as an abscissa and taking the mean value of each group of column-direction pixels of each frame of image as an ordinate;
observing the floating range of the mean value of each group of column-direction pixels under each gain, and if the floating range regularly and uniformly rises (for example, whether the solid-state noise calibration value has a uniformly rising trend along with the increase of the gain or not), calculating the calibration values under different gain multiples correctly; if not, the calculation is wrong.
And (3) displaying the calibration curve values under several multiples by using a broken line diagram, wherein the abscissa is the length of each group of four groups of images in each frame, and the ordinate is the mean value of column-direction pixels of each group of each frame of image. The purpose of this process is to observe whether the foregoing processing flow has errors and find whether there is a certain rule, in the example of fig. 2, the expression of the first group of image columns to the mean value of the pixels in each frame of image is obtained under 1, 4, 8 times of gain, each gain in the figure captures 5 groups of data, and the expression graph of the mean value of the pixels in the first group of image columns under 8 times of gain, 4 times of gain, 1 time of gain is displayed from top to bottom.
Through the line graph, the column-direction mean value of the image and the approximate floating range of the column vector mean value under each gain can be seen, the approximate floating is compared with the solid-state noise calibration value floating rule finally obtained by the user, whether the solid-state noise calibration value is similar or not is observed, and if the solid-state noise calibration value is similar, no error occurs.
Example 2:
a video stream processing method, comprising the steps of:
acquiring a video stream to be processed and the gain of the video to be processed;
calling the solid-state noise calibration value with the same gain as the video stream to be processed, or calling the solid-state noise calibration value with the different gain from the video stream to be processed to calculate the solid-state noise calibration value with the same gain as the video stream to be processed;
and calculating the difference between the video stream data to be processed and the solid-state noise calibration value, and outputting a processing result.
Specifically, the odd-numbered columns and the odd-numbered rows of the video stream subtract the odd-numbered columns and the odd-numbered rows of the video stream from the solid-state noise calibration value under the corresponding gain, the odd-numbered rows and the even-numbered rows of the video stream subtract the odd-numbered rows and the even-numbered rows of the video stream from the solid-state noise calibration value under the corresponding gain, the even-numbered rows and the odd-numbered rows of the video stream subtract the even-numbered rows and the odd-numbered rows of the video stream from the solid-state noise calibration value under the corresponding gain, and the even-numbered rows of the video stream subtract the even-numbered rows and the even-numbered rows of the video stream from the solid-state noise calibration value under the corresponding gain.
If the gain of the video stream to be processed does not exist, calling solid-state noise calibration values corresponding to two groups of gains adjacent to the front and back of the gain of the video stream to be processed; and taking a weighted average value of the solid-state noise calibration values of the two groups of gains adjacent to each other in front and back, or calculating the solid-state noise calibration value of the gain between the two groups of gains adjacent to each other by adopting other interpolation calculation, wherein the specific calculation logic can also adopt other mathematical means.
In particular, it may be that the final video stream solid state noise processing, e.g. under 1-fold gain, uses the above calculated
Figure 81416DEST_PATH_IMAGE086
Figure 270214DEST_PATH_IMAGE087
Figure 598427DEST_PATH_IMAGE088
Figure 472842DEST_PATH_IMAGE089
This is a 1-fold gain calibration of solid state noise. During video stream processing, odd column paritySubtraction of several lines
Figure 911914DEST_PATH_IMAGE090
Odd rows and even columns minus
Figure 453754DEST_PATH_IMAGE091
Odd columns of even rows minus
Figure 952868DEST_PATH_IMAGE092
Even columns and even rows minus
Figure 580159DEST_PATH_IMAGE093
Namely, the solid-state noise processing with 1-time gain is completed.
Since the embodiment calibrates and calculates the standard value of solid state noise under all gains, if the solid state noise processing under 4-fold gain is selected
Figure 557342DEST_PATH_IMAGE094
The scaled value, if it is 2 times gain, will be based on the weight, such as for the gain that has been set
Figure 219267DEST_PATH_IMAGE095
And
Figure 387818DEST_PATH_IMAGE096
and taking a weighted average, performing certain interpolation in the process of analogizing other gains, and finally realizing solid-state noise processing of all video streams.
For the
Figure 236826DEST_PATH_IMAGE097
Figure 17700DEST_PATH_IMAGE098
This calibration is an example, which is a calibration of 4 times gain and 1 time gain, if required
Figure 534132DEST_PATH_IMAGE099
Is that
Figure 375049DEST_PATH_IMAGE100
Calculated in this way, if a value of 3 times the gain is to be calculated, it is
Figure 445773DEST_PATH_IMAGE101
The calculation is performed in this way, and so on, and will not be described herein.
Other specific remarks are that although the median of 1 and 4 is not 2, in practice the gain interpolation is performed by adding multiples, and 1, 2, 4, 8, 16, i.e. 2 multiples is 1 stage.
The above is the column term mean minus the whole graph, i.e. the solid state noise characteristic we have found. In normal video streams, the scaling value is directly subtracted according to the solid-state noise characteristic. The solid state noise of the video stream is removed.
Example 3:
a solid state noise calibration system, comprising:
the first processing unit is used for acquiring image data under a plurality of different gains;
the second processing unit is used for acquiring n groups of image frames under each gain, and averaging each group of image frames to obtain an average value of the n groups of image frames;
the third processing unit is used for calculating all column direction mean values of the four groups of numerical values by taking the numerical values of odd columns and odd rows, the numerical values of odd rows and even rows, the numerical values of even rows and odd columns and the numerical values of even rows of each group of image frame mean values; obtaining n groups of screening data, wherein each group of screening data comprises four groups of column-direction mean values; calculating four groups of image mean values according to the column mean values; taking each line of data in the column direction mean value in the n groups of screening data to respectively form u groups of line data sets;
the fourth processing unit is used for calculating the weight coefficient of each group of column data sets, and obtaining four groups of column matrix arrays after weight processing after the u groups of column data sets are processed by the weight coefficient; calculating four groups of overall average values according to the image average values;
and the fifth processing unit is used for calculating a standard solid-state noise calibration value, namely calculating the difference between the array of the column matrix and the overall mean value.
Example 4:
a video stream processing system, comprising: a solid-state noise calibration value calculated according to the solid-state noise calibration method disclosed in embodiment 1, and an acquisition unit configured to acquire a video stream to be processed and a gain of the video stream to be processed;
a sixth processing unit, configured to invoke the solid-state noise calibration value with the same gain as the video stream to be processed, or invoke a solid-state noise calibration value with a different gain from the video stream to be processed to calculate the solid-state noise calibration value with the same gain as the video stream to be processed;
and the seventh processing unit is used for calculating the difference between the video stream data to be processed and the solid-state noise calibration value and outputting a processing result.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed.
The units may or may not be physically separate, and components displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be essentially or partially contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (15)

1. A solid-state noise calibration method is characterized by comprising the following steps:
acquiring image data under a plurality of different gains;
taking n groups of image frames under each gain, superposing each group of image frames and averaging to obtain an average value of the n groups of image frames;
taking the numerical values of odd rows and odd columns, the numerical values of even rows and even columns, the numerical values of odd rows and odd columns and the numerical values of even rows and even columns of the average value of each group of image frames, and calculating all column direction average values of four groups of numerical values; obtaining n groups of screening data, wherein each group of screening data comprises four groups of column-direction mean values; calculating four groups of image mean values in each group of screening data according to the transverse pixels of the column mean values; calculating four groups of overall mean values according to the four groups of image mean values;
taking each line of data in the column direction mean value in the n groups of screening data to respectively form u groups of line data sets; calculating a weight coefficient of each group of column data sets, and processing u groups of column data sets through the weight coefficient to obtain four groups of column matrix arrays after weight processing;
and calculating the standard solid-state noise calibration value as the difference between the array of the column matrix and the overall average value.
2. The solid state noise calibration method of claim 1, wherein the method of calculating the weighting coefficients for each set of column data comprises:
sorting the numerical values in each group of column data sets from small to large respectively, and marking sequence numbers;
calculating a weight coefficient for each group of sorted row data sets, and if the sequence number is less than or equal to the median of the row data number of each group of sets, taking the sequence number by the weight coefficient;
and if the sequence number is greater than the median of the data quantity of each group of the aggregation columns, the weight coefficient is the difference between the quantity value and the sequence number plus one.
3. The solid state noise calibration method of claim 1, wherein the column-wise mean calculation method comprises:
dividing the image frame average data into four groups, wherein the first group takes the numerical values of odd rows and even columns, the second group takes the numerical values of odd rows and odd columns, the third group takes the numerical values of odd rows and odd columns, and the fourth group takes the numerical values of even rows and even columns; and accumulating all the pixels in the column direction of each group respectively to generate a column direction addition pixel sum, and dividing the column direction addition pixel sum by one half width of the image frame to obtain a column direction average value.
4. The solid state noise calibration method of claim 3, wherein the method for calculating four sets of the image means from the four sets of the column-wise means comprises:
and accumulating all the horizontal pixels of the four groups of column-direction mean values respectively to generate horizontal addition pixel sums, and dividing the horizontal addition pixel sums by half of the length of the image frame to obtain four groups of image mean values.
5. The solid-state noise calibration method according to claim 1, wherein said calculating four sets of overall means from four sets of image means comprises:
and accumulating n values in the four groups of image mean value arrays respectively, and averaging to obtain the integral mean value.
6. The solid-state noise calibration method according to claim 1, wherein the method for obtaining four sets of column matrix arrays after weight coefficient processing by processing u sets of column data sets with weight coefficients comprises:
and multiplying the numerical value points in the row data sets by the corresponding weight coefficients, dividing the numerical value points by the sum of the weight coefficients to obtain all the row data sets after being processed by the weight coefficients, and combining the row data sets into a row matrix array.
7. The solid state noise calibration method of claim 1 or 6, wherein u is from 1 to x/2, where x is the length of the image frame.
8. The solid state noise calibration method of any one of claims 1-5, wherein the method of acquiring image data at several different gains comprises:
taking a pure white background plate and an adjustable light source;
adjusting the intensity of a light source, aligning the light source to a pure white background plate, and collecting n groups of bayer format data under different gain multiples;
and setting the length and width of each acquired frame of bayer format data image.
9. The solid state noise calibration method of claim 1, further comprising a method of displaying calibration values at different gain factors, comprising:
taking the length of each group of four groups of images in each frame as an abscissa and taking the mean value of each group of column-direction pixels of each frame of image as an ordinate;
observing the floating range of the mean value of each group of column-direction pixels under each gain, and if the floating range regularly and uniformly rises, calculating the calibration values under different gain multiples correctly; if not, the calculation is wrong.
10. A method for processing a video stream, comprising the steps of:
acquiring a video stream to be processed and a gain of the video stream to be processed;
calling the solid-state noise calibration value in the solid-state noise calibration method according to claim 1, which has the same gain as the video to be processed, or calling a solid-state noise calibration value different from the gain of the video to be processed to calculate the solid-state noise calibration value having the same gain as the video to be processed;
and calculating the difference between the video stream data to be processed and the solid-state noise calibration value, and outputting a processing result.
11. The method of claim 10, wherein the calculating the difference between the video stream data to be processed and the solid state noise calibration value comprises:
subtracting the odd-numbered row solid-state noise calibration value under the corresponding gain from the odd-numbered row of the video stream, subtracting the odd-numbered row even-numbered row solid-state noise calibration value under the corresponding gain from the odd-numbered row even-numbered row, subtracting the even-numbered row odd-numbered row solid-state noise calibration value under the corresponding gain from the even-numbered row odd-numbered column, and subtracting the even-numbered row solid-state noise calibration value under the corresponding gain from the even-numbered row.
12. The method according to claim 10, wherein if there is no gain of the video stream to be processed, then adjusting solid-state noise calibration values corresponding to two groups of gains adjacent to each other before and after the gain of the video stream to be processed; and averaging the solid-state noise calibration values of the two groups of gains adjacent to each other to obtain the solid-state noise calibration value corresponding to the gain of the video stream to be processed.
13. A solid state noise calibration system, comprising:
the first processing unit is used for acquiring image data under a plurality of different gains;
the second processing unit is used for acquiring n groups of image frames under each gain, and averaging each group of image frames to obtain an average value of the n groups of image frames;
the third processing unit is used for calculating all column direction mean values of the four groups of numerical values by taking the numerical values of odd columns and odd rows, the numerical values of odd rows and even rows, the numerical values of even rows and odd columns and the numerical values of even rows of each group of image frame mean values; obtaining n groups of screening data, wherein each group of screening data comprises four groups of column-direction mean values; calculating four groups of image mean values according to the column mean values; taking each line of data in the column direction mean value in the n groups of screening data to respectively form u groups of line data sets;
the fourth processing unit is used for calculating the weight coefficient of each group of column data sets, and obtaining four groups of column matrix arrays after weight processing after the u groups of column data sets are processed by the weight coefficient; calculating four groups of overall average values according to the image average values;
and the fifth processing unit is used for calculating a standard solid-state noise calibration value, namely calculating the difference between the array of the column matrix and the overall mean value.
14. A video stream processing system comprising a solid state noise calibration value calculated according to the solid state noise calibration method of claim 1, and,
the device comprises a collecting unit, a processing unit and a processing unit, wherein the collecting unit is used for obtaining a video stream to be processed and the gain of the video stream to be processed;
a sixth processing unit, configured to invoke the solid-state noise calibration value with the same gain as the video stream to be processed, or invoke a solid-state noise calibration value with a different gain from the video stream to be processed to calculate the solid-state noise calibration value with the same gain as the video stream to be processed;
and the seventh processing unit is used for calculating the difference between the video stream data to be processed and the solid-state noise calibration value and outputting a processing result.
15. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the solid-state noise scaling method of any one of claims 1-9.
CN202111210126.8A 2021-10-18 2021-10-18 Solid-state noise calibration method and system and video stream processing method and system Active CN113645424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111210126.8A CN113645424B (en) 2021-10-18 2021-10-18 Solid-state noise calibration method and system and video stream processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111210126.8A CN113645424B (en) 2021-10-18 2021-10-18 Solid-state noise calibration method and system and video stream processing method and system

Publications (2)

Publication Number Publication Date
CN113645424A true CN113645424A (en) 2021-11-12
CN113645424B CN113645424B (en) 2022-01-18

Family

ID=78427280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111210126.8A Active CN113645424B (en) 2021-10-18 2021-10-18 Solid-state noise calibration method and system and video stream processing method and system

Country Status (1)

Country Link
CN (1) CN113645424B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185772A1 (en) * 2016-04-28 2017-11-02 深圳市中兴微电子技术有限公司 Method and device for video image enhancement and computer storage medium
CN108805851A (en) * 2017-04-26 2018-11-13 杭州海康威视数字技术股份有限公司 A kind of appraisal procedure and device of image noise in time domain
CN110246087A (en) * 2018-03-07 2019-09-17 舜宇光学(浙江)研究院有限公司 With reference to the system and method for the multiresolution removal image chroma noise of multichannel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185772A1 (en) * 2016-04-28 2017-11-02 深圳市中兴微电子技术有限公司 Method and device for video image enhancement and computer storage medium
CN108805851A (en) * 2017-04-26 2018-11-13 杭州海康威视数字技术股份有限公司 A kind of appraisal procedure and device of image noise in time domain
CN110246087A (en) * 2018-03-07 2019-09-17 舜宇光学(浙江)研究院有限公司 With reference to the system and method for the multiresolution removal image chroma noise of multichannel

Also Published As

Publication number Publication date
CN113645424B (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN109360168B (en) Method and device for removing stripes of infrared image, infrared detector and storage medium
JP5493760B2 (en) Image processing apparatus and digital camera
US8059910B2 (en) Image processing method for removing noise from an image
US7983503B2 (en) Advanced noise reduction in digital cameras
CN104867111B (en) A kind of blind deblurring method of non-homogeneous video based on piecemeal fuzzy core collection
CN104113708B (en) Solid state image pickup device and its signal processing method and electronic equipment
SE0900533A1 (en) Imaging method for suppressing column or row noise in an IR-detected image
US20180075586A1 (en) Ghost artifact removal system and method
JP2010166513A (en) Image processor and digital camera
CN111709904B (en) Image fusion method and device
US8121429B2 (en) Image processing apparatus, image-capturing apparatus, image processing method, and program
US9172869B2 (en) Image data aggregating high dynamic range imaging systems and associated methods
CN113645424B (en) Solid-state noise calibration method and system and video stream processing method and system
EP3001669B1 (en) Image processing apparatus, image processing method and program
JP2015177244A (en) Image processing apparatus and image processing method
JP2009515467A5 (en)
CN103634529B (en) original data processing device, original data processing method and imaging device
CN107292839B (en) TDI flutter image restoration method based on image block self-adaptive adjustment
Peng et al. MND-GAN: A Research on Image Deblurring Algorithm Based on Generative Adversarial Network
US8400534B2 (en) Noise reduction methods and systems for imaging devices
CN104915937B (en) Quick simple lens based on frequency domain matrix decomposition calculates imaging method
Zhu et al. LLISP: Low-light image signal processing net via two-stage network
CN109767403B (en) Infrared focal plane array strip noise elimination method based on scene
US20080118171A1 (en) Image data restoration apparatus, imaging apparatus, image data restoration method and computer readable medium storing image data restoration program
US8774543B2 (en) Row noise filtering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A solid-state noise calibration method and system, a video stream processing method and system

Effective date of registration: 20230308

Granted publication date: 20220118

Pledgee: Fuyang sub branch of Bank of Hangzhou Co.,Ltd.

Pledgor: Hangzhou xiongmai integrated circuit technology Co.,Ltd.

Registration number: Y2023330000470

PE01 Entry into force of the registration of the contract for pledge of patent right
CP03 Change of name, title or address

Address after: 311422 4th floor, building 9, Yinhu innovation center, 9 Fuxian Road, Yinhu street, Fuyang District, Hangzhou City, Zhejiang Province

Patentee after: Zhejiang Xinmai Microelectronics Co.,Ltd.

Address before: 311400 4th floor, building 9, Yinhu innovation center, No.9 Fuxian Road, Yinhu street, Fuyang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou xiongmai integrated circuit technology Co.,Ltd.

CP03 Change of name, title or address