Image signal sampling processing method and circuit
By converting the image analog signal into a digital signal and performing calculations to remove the DC component, the problems of noise interference and non-simultaneous acquisition in the data temporary storage circuit in the existing technology are solved, the precision and accuracy of image signal processing are improved, and the circuit is simplified structure.
Patent Information
- Application Number
- CN201911329240.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-12-20
AI Technical Summary
Existing image signal acquisition methods suffer from noise interference from data temporary storage circuits, signal errors and noise introduction caused by non-simultaneous acquisition, and cannot make full use of the signal time range. Moreover, the sampling signal contains noise parts, resulting in low accuracy.
Convert the analog signal of the image into a digital signal, collect data in different parts for calculation, remove the DC component, convert it into a digital signal through analog subtraction and amplification, cancel the temporary storage circuit, and improve precision and accuracy.
The circuit structure is simplified, the precision and accuracy of image signal processing are improved, noise interference is reduced, the range requirements of analog-to-digital conversion are met, and the accuracy of acquisition is enhanced.
Smart Images

Figure CN110933319B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image signal processing, and in particular to an image signal sampling processing method and circuit. Background Art
[0002] At present, the image signal adopts the analog method, collects from different positions of the image signal, obtains the image analog quantity, temporarily stores the collected data, and then selects two data at different positions of the same pixel for analog subtraction to obtain the change data, and then amplifies the change data, performs analog-to-digital conversion, and then inputs the control center for calculation. This processing method has the following shortcomings: the two data collected at different positions of the same pixel are not collected at the same time, so a temporary storage circuit needs to be set for storage. Because analog sampling and analog subtraction are performed, each can only be sampled once, so the effective range of the signal in time cannot be fully utilized to achieve full sampling; in the analog subtraction process, various noises are also brought in due to two samplings, and the ADC samples again when output to the ADC, as well as the analog noise brought in during the temporary storage circuit process; on the other hand, the temporary storage circuit generally uses electronic switches and capacitors to store data, which not only requires external analog circuits, but also has noise interference on the image data. In addition, in the analog sampling process, the sampling and collection is a signal of a point, not an average value. Due to the existence of noise in the signal, the sampled signal will include the noise part, which will cause errors in the signal.
[0003] Therefore, providing a method for directly converting image signals is an urgent problem to be solved. Summary of the invention
[0004] The purpose of the present invention is to provide an image signal sampling and processing method and circuit, which first converts the image analog signal into a digital signal, collects at least one numerical value in different parts of the image signal, performs operations on the numerical values of the same part to obtain the operation results, compares the operation results of different parts, and obtains a digital image calculation signal of the image signal. The present application improves the accuracy of the operation and simplifies the peripheral circuit by first digitally converting the analog signal and then performing operations.
[0005] The above-mentioned object of the present invention is achieved through the following technical solutions:
[0006] A method for sampling and processing an image signal, wherein the image signal of each pixel includes a reset part, a reference part, and a signal part, and comprises the following steps:
[0007] Q1. Convert image analog signals into digital signals;
[0008] Q2. Selecting sampling intervals of the image digital signal in the reference part and the signal part of the pixel image signal respectively according to the variation of the digital signal;
[0009] Q3, sampling at least one image data in each interval;
[0010] Q4. Calculate the image data of the reference part and the image data of the signal part to obtain a digital image calculation signal.
[0011] The present invention is further configured as follows: Step Q1 includes the following steps:
[0012] W1, in the image analog signal, by controlling the analog subtractor, the DC component of the signal part is removed to obtain a first difference between the reference part image analog signal and the signal part image analog signal;
[0013] W2, amplifying the first difference;
[0014] W3. Convert the first difference into a digital signal.
[0015] The present invention is further configured as follows: in step Q2, a numerical interval whose numerical value change is less than a threshold is selected, and this interval is determined as a sampling reading time window range.
[0016] The present invention is further configured as follows: Step Q3 includes the following steps:
[0017] S1, collecting M reference signal values in the reference part;
[0018] S2, collecting N signal values in the signal part;
[0019] Wherein, M and N are positive integers greater than or equal to 1.
[0020] The present invention is further configured as follows: Step Q4 includes the following steps:
[0021] E1. Calculate the reference signal value to obtain a first reference signal value;
[0022] E2. Calculate the signal value to obtain a first signal value;
[0023] E3. Digitally subtract the first signal value from the first reference signal value to obtain a digital image calculation signal.
[0024] The present invention is further configured as follows: in step E1, summing or averaging the reference signal values to obtain a first reference signal value; in step E2, summing or averaging the signal values to obtain a first signal value.
[0025] The present invention is further configured as follows: in step E1, a cyclic grouping method is adopted to divide M reference signal values into K groups, each group includes i reference signal values, the first group includes the 1st to the i-th reference signal values, the second group includes the 1+j-th to the i+j-th reference signal values, and so on. The Kth group includes the K-1+j-th to the M-th reference signal values, wherein i, j, and K are positive integers greater than or equal to 1 respectively; similarly, the N signal values are grouped in step E2.
[0026] The present invention is further configured as follows: in step E1, M reference signal values are divided into M / 2 groups, each group includes M / 2 reference signal values, the first group includes the 1st to M / 2th reference signal values, the second group includes the 2nd to (M / 2)+1th reference signal values, and so on, the M / 2th group includes the M / 2th to Mth reference signal values; similarly, in step E2, the N signal values are grouped.
[0027] The present invention is further configured as follows: performing mean square error calculation on each group of values to obtain mean square error values, eliminating mean square error values with large discreteness, summing or averaging the remaining mean square error values, and obtaining the first reference signal value and the first signal value respectively.
[0028] The above-mentioned object of the present invention is achieved through the following technical solutions:
[0029] An image signal sampling and processing circuit is characterized in that it includes a CCD chip, a comparison circuit, an amplification circuit, an analog-to-digital conversion circuit, a field programmable gate array, and an adjustable voltage circuit. The image analog signal output by the CCD chip is subjected to analog subtraction by an analog subtractor circuit and the output voltage of the adjustable voltage circuit to remove a DC bias. The subtracted signal is amplified and then converted into an image digital signal by the analog-to-digital conversion circuit. The field programmable gate array is used to determine the reading interval of the output data of the analog-to-digital conversion circuit according to the data size output by the analog-to-digital conversion circuit, calculate the read data and output the calculation result, and adjust the output voltage of the adjustable voltage circuit according to the data size output by the analog-to-digital conversion circuit.
[0030] Compared with the prior art, the beneficial technical effects of the present invention are:
[0031] 1. This application converts the image analog signal into a digital signal for operation, eliminates the analog quantity storage circuit, reduces the image analog signal processing process, and simplifies the circuit structure;
[0032] 2. Furthermore, the present application improves the precision and accuracy by collecting multiple values of the reference part and the signal part respectively and performing calculations;
[0033] 3. Furthermore, the present application finds each collection period through program calculation, thereby improving the accuracy of each part of the collection;
[0034] 4. Furthermore, the present application meets the range requirement of analog-to-digital conversion by removing the DC component, and at the same time improves the accuracy by adjusting the size of the DC component according to signal changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a schematic diagram of an image signal waveform structure of a specific embodiment of the present invention;
[0036] Figure 2 is a schematic diagram of an image processing flow of a specific embodiment of the present invention;
[0037] Figure 3 is a schematic diagram of the structure of an image signal sampling and processing circuit according to a specific embodiment of the present invention;
[0038] Figure 4 is a schematic diagram of the structure of an image signal sampling and processing circuit according to another specific embodiment of the present invention;
[0039] Figure 5 It is a schematic diagram of the structure of a field programmable gate array according to another specific embodiment of the present invention. DETAILED DESCRIPTION
[0040] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0041] The present invention provides an image signal sampling and processing method, wherein the image signal of each pixel is Figure 1 As shown, a cycle includes a reset part, a reference part, and a signal part. Specifically, in a cycle consisting of t1-t4, it includes a reset part between t1-t2, a reference part between t2-t3, and a signal part between t3-t4. The reference part and the signal part include both a DC component and an AC component, that is, an AC component is superimposed on the DC component. The AC component includes noise.
[0042] In two adjacent cycles, the DC component of the reference part is different, the DC component of the signal part is also different, and the reference value of each image pixel is different.
[0043] The processing of image signals is to calculate the difference between the signal part and the reference part, thereby calculating the size of the image signal. Specific implementation method 1
[0045] The image signal processing method, such as Figure 2 As shown, the following steps are included:
[0046] Q1. Convert image analog signals into digital signals;
[0047] Q2. Selecting sampling intervals of the image digital signal in the reference part and the signal part of the pixel image signal respectively according to the variation of the digital signal;
[0048] Q3, sampling at least one image data in each interval;
[0049] Q4. Calculate the image data of the reference part and the image data of the signal part to obtain a digital image calculation signal.
[0050] In a specific implementation of the present application, step Q1 includes the following steps:
[0051] W1. In the image analog signal, the reference part and the signal part include a DC component and an AC component respectively. By controlling the analog subtractor, the component of the image analog signal whose value is equal to the DC component of the signal part is removed to obtain the first difference between the reference part image analog signal and the signal part image analog signal; the bottom component in the image analog signal is cancelled to reduce the amplitude of the image analog signal.
[0052] W2, amplify the first difference, increase the signal component, match the range of analog-to-digital conversion, and reduce noise interference;
[0053] W3. Convert the first difference into a digital signal to obtain an image digital signal, which provides a basis for subsequent digital signal processing.
[0054] In a specific implementation of the present application, in step Q2, a numerical interval whose numerical variation is less than a threshold is selected, and this interval is determined as a sampling interval.
[0055] Sample the image data in the entire cycle, compare the latter sampling value with the previous sampling value, if the difference between the two is less than the threshold, it means that the two values are simultaneously in the reference part or the signal part of the image analog signal, and the interval less than the threshold is used as the sampling reading time window range, and the collected values in the reading time window range are saved; according to the size of the value, it is divided into the reference part reading time window and the signal part reading time window, respectively. Figure 1 As shown in t11 and t12.
[0056] In a specific implementation of the present application, step Q3 includes the following steps:
[0057] S1, collecting M reference signal values in the reference part;
[0058] S2, collecting N signal values in the signal part;
[0059] Wherein, M and N are positive integers greater than or equal to 1.
[0060] Collect multiple values in the image signal and perform multiple sampling to reduce the interference of noise on the signal, more accurately restore the characteristics of the original signal, and reduce distortion.
[0061] In a specific implementation of the present application, step Q4 includes the following steps:
[0062] E1. Calculate the reference signal value to obtain a first reference signal value;
[0063] E2. Calculate the signal value to obtain a first signal value;
[0064] E3. Digitally subtract the first signal value from the first reference signal value to obtain a digital image calculation signal.
[0065] The method of operating on the numerical value includes at least one of the following methods:
[0066] Method 1:
[0067] In step E1, summing or averaging the M reference signal values to obtain a first reference signal value;
[0068] Similarly, in step E2, a sum or average operation is performed on the N signal values to obtain a first signal value.
[0069] Method 2:
[0070] In step E1, a cyclic grouping method is adopted to divide the M reference signal values into K groups, each group includes i reference signal values, the first group includes the 1st to the i-th reference signal values, the second group includes the 1+j-th to the i+j-th reference signal values, and so on. The Kth group includes the K-1+j-th to the M-th reference signal values, wherein i, j, and K are positive integers greater than or equal to 1 respectively; similarly, the N signal values are grouped in step E2.
[0071] In a specific implementation of the present application, in step E1, M reference signal values are divided into M / 2 groups, each group includes M / 2 reference signal values, the first group includes the 1st to M / 2th reference signal values, the second group includes the 2nd to (M / 2)+1th reference signal values, and so on, the M / 2th group includes the M / 2th to Mth reference signal values; similarly, the N signal values are grouped in step E2.
[0072] Method 3:
[0073] Perform mean square error calculations on the M reference signal values and the N signal values to obtain mean square error values, eliminate mean square error values with large discreteness, sum or average the remaining mean square error values to obtain the first reference signal value and the first signal value, respectively. Specific implementation method 2
[0075] An image signal sampling and processing circuit comprises a CCD chip, an analog subtraction circuit, an analog-to-digital conversion circuit, and a field programmable gate array. The output end of the CCD chip is connected to an input end of the analog subtraction circuit, the other input end of the analog subtraction circuit is connected to a first set voltage end, the output end of the analog subtraction circuit is connected to the input end of the analog-to-digital conversion circuit, and the output of the analog-to-digital conversion circuit is connected to the field programmable gate array; the field programmable gate array (FPGA) outputs a digital image signal.
[0076] The image analog signal output by the CCD chip undergoes analog subtraction operation with the set voltage through an analog subtractor circuit to remove the DC component. The subtracted signal is amplified and then converted into an image digital signal through an analog-to-digital conversion circuit. The field programmable gate array is used to set the reading time window range of the output data of the analog-to-digital conversion circuit according to the sampling data, calculate the read data, output the digital image signal and adjust the size of the set voltage.
[0077] The reading time window includes a reference part reading time window and a signal part reading time window, which correspond to the reference part and the signal part of the image signal respectively.
[0078] Field Programmable Gate Arrays, such as Figure 5 As shown, it includes a storage unit, a reading unit, a calculation unit, a control unit, and a comparator. The output end of the analog-to-digital conversion circuit is connected to the input end of the storage unit and the input end of the control unit; the input end of the reading unit is connected to the output end of the storage unit, and its output end is connected to the input end of the calculation unit; the output of the control unit is connected to the control end of the reading unit; the storage unit is used to store input data, the control unit outputs a reading time window range according to the data change of the analog-to-digital conversion circuit, controls the reading unit to read data within the reading time window range, and the calculation unit calculates the read data to obtain the result data and outputs it.
[0079] One input end of the comparator is connected to the output end of the analog-to-digital conversion circuit, the other input end is connected to the second setting voltage end, and the output end of the comparator is connected to the input end of the adjustable voltage circuit.
[0080] The second setting voltage terminal is an output terminal of the voltage setting circuit.
[0081] In a specific embodiment of the present invention, an image signal sampling and processing circuit, such as Figure 3As shown, it includes a CCD chip, an analog subtraction circuit, an analog-to-digital conversion circuit, a field programmable gate array, and an adjustable voltage circuit. The output end of the adjustable voltage circuit is a first set voltage end, which is connected to an input end of the analog subtraction circuit. The output end of the comparator in the field programmable gate array is connected to the input end of the adjustable voltage circuit, and is used to output an adjustment voltage signal to the adjustable voltage circuit according to the data size of the analog-to-digital conversion circuit, so as to control the output voltage size of the adjustable voltage circuit.
[0082] When the control unit detects that the signal output by the analog-to-digital conversion reaches the maximum value of the analog-to-digital converter, the output voltage of the comparator is adjusted to reduce the output signal of the analog-to-digital converter to be lower than the maximum value.
[0083] In a specific embodiment of the present invention, an image signal sampling and processing circuit, such as Figure 4 As shown, it includes a CCD chip, an analog subtraction circuit, an analog-to-digital conversion circuit, a field programmable gate array, an adjustable voltage circuit, an amplifier circuit, a clamping circuit 1, and a clamping circuit 2.
[0084] The amplifier circuit has an input end connected to the output end of the analog subtraction circuit and an output end connected to the input end of the analog-to-digital conversion circuit, and is used to amplify the output signal of the analog subtraction circuit.
[0085] The clamping circuit 1 is connected to the output end of the analog subtraction circuit and is used for clamping the output data of the analog subtraction circuit.
[0086] The clamping circuit 2 is connected to the input end of the analog-to-digital conversion circuit and is used to clamp the input data of the analog-to-digital conversion circuit.
[0087] The clamp circuit 1 and the clamp circuit 2 respectively include two diodes connected in series, the cathode of the series diode is connected to the power supply terminal, the anode is connected to the ground, and the series connection point is connected to the output terminal of the analog subtraction circuit or the input terminal of the analog-to-digital conversion circuit.
[0088] An image signal sampling and processing circuit also includes a driving circuit connected to a CCD chip and used for controlling the CCD chip to convert an image.
[0089] The embodiments of this specific implementation method are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, all equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for sampling and processing an image signal, wherein the image signal of each pixel includes a reset part, a reference part, and a signal part, characterized in that: The following steps are involved: Q1. Convert image analog signals into digital signals; Q2. According to the change amount of the digital signal, the sampling interval of the image digital signal is selected in the reference part and the signal part of the pixel image signal respectively, and the numerical interval whose numerical change is less than the threshold is selected, and this interval is determined as the sampling reading time window range; Q3, sampling multiple image data in each interval; Q4, calculating the image data of the reference part and the image data of the signal part to obtain a digital image calculation signal; Step Q4 includes the following steps: E1. Calculate the reference signal value to obtain a first reference signal value; E2. Calculate the signal value to obtain a first signal value; E3. Digitally subtract the first signal value from the first reference signal value to obtain a digital image calculation signal, wherein; In step E1, the M reference signal values are divided into K groups by a cyclic grouping method, each group includes i reference signal values, the first group includes the 1st to the i-th reference signal values, the second group includes the 1+j-th to the i+j-th reference signal values, and so on, the K-th group includes the K-1+j-th to the M-th reference signal values, wherein i, j, and K are positive integers greater than or equal to 1 respectively; similarly, the N signal values are grouped in step E2; A mean square error operation is performed on each group of values to obtain a mean square error value, and mean square error values with large discreteness are eliminated. The remaining mean square error values are summed or averaged to obtain a first reference signal value and a first signal value, respectively.
2. The image signal sampling and processing method according to claim 1, characterized in that: Step Q1 includes the following steps: W1, in the image analog signal, by controlling the analog subtractor, the DC component of the signal part is removed to obtain a first difference between the reference part image analog signal and the signal part image analog signal; W2, amplifying the first difference; W3. Convert the first difference into a digital signal.
3. The image signal sampling and processing method according to claim 1, characterized in that: Step Q3 includes the following steps: S1, collecting M reference signal values in the reference part; S2, collecting N signal values in the signal part; Wherein, M and N are positive integers greater than or equal to 1.
4. The image signal sampling and processing method according to claim 1, characterized in that: In step E1, the reference signal values are summed or averaged to obtain a first reference signal value; in step E2, the signal values are summed or averaged to obtain a first signal value.
5. The image signal sampling and processing method according to claim 1, characterized in that: In step E1, a cyclic grouping method is adopted to divide the M reference signal values into K groups, each group includes i reference signal values, the first group includes the 1st to the i-th reference signal values, the second group includes the 1+j-th to the i+j-th reference signal values, and so on. The Kth group includes the K-1+j-th to the M-th reference signal values, wherein i, j, and K are positive integers greater than or equal to 1 respectively; similarly, the N signal values are grouped in step E2.
6. The image signal sampling and processing method according to claim 3, characterized in that: In step E1, M reference signal values are divided into M / 2 groups, each group includes M / 2 reference signal values, the first group includes the 1st to M / 2th reference signal values, the second group includes the 2nd to (M / 2)+1th reference signal values, and so on. The M / 2th group includes the M / 2th to Mth reference signal values; similarly, the N signal values are grouped in step E2.
7. An image signal sampling and processing circuit for executing the image signal sampling and processing method according to claim 1, characterized in that: It includes a CCD chip, a comparison circuit, an amplification circuit, an analog-to-digital conversion circuit, a field programmable gate array, and an adjustable voltage circuit. The image analog signal output by the CCD chip is subjected to analog subtraction by an analog subtractor circuit and the output voltage of the adjustable voltage circuit to remove the DC bias. The subtracted signal is amplified and then converted into an image digital signal by the analog-to-digital conversion circuit. The field programmable gate array is used to determine the reading interval of the output data of the analog-to-digital conversion circuit according to the data size output by the analog-to-digital conversion circuit, calculate the read data and output the calculation result, and adjust the output voltage of the adjustable voltage circuit according to the data size output by the analog-to-digital conversion circuit.
