Movatterモバイル変換


[0]ホーム

URL:


CN119540029B - Pixel data processing method, system, electronic equipment and storage medium - Google Patents

Pixel data processing method, system, electronic equipment and storage medium
Download PDF

Info

Publication number
CN119540029B
CN119540029BCN202510104976.1ACN202510104976ACN119540029BCN 119540029 BCN119540029 BCN 119540029BCN 202510104976 ACN202510104976 ACN 202510104976ACN 119540029 BCN119540029 BCN 119540029B
Authority
CN
China
Prior art keywords
data
pixel
buffer
cache
module
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.)
Active
Application number
CN202510104976.1A
Other languages
Chinese (zh)
Other versions
CN119540029A (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.)
Hefei Eko Photoelectric Technology Co ltd
Original Assignee
Hefei Eko Photoelectric 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 Hefei Eko Photoelectric Technology Co ltdfiledCriticalHefei Eko Photoelectric Technology Co ltd
Priority to CN202510104976.1ApriorityCriticalpatent/CN119540029B/en
Publication of CN119540029ApublicationCriticalpatent/CN119540029A/en
Application grantedgrantedCritical
Publication of CN119540029BpublicationCriticalpatent/CN119540029B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种像素数据处理方法、系统、电子设备和存储介质,涉及数据处理领域。该系统基于像素行间隔与像素的比值以及光源数得到缓存区的总级数,且在每一次行像素读取周期内,将缓存区内的数据逐级向下流入,并将最后一级的缓存区存储至中间缓存区,在TDI传感器输出一行数据后,与中间缓存区内的数据叠加,将叠加后的数据输入至下一个缓存模块中,且每一个数据缓存模块与像素行一一对应。由此,在每一次行像素读取周期内,按照固定顺序逐次完成数据的叠加、输入至数据缓存模块、逐级流出和输入至中间缓存模块后,即可实现TDI内数据的叠加,无需计算出缓存区对应的空间位置,提升了TDI叠加的效率。

The present application discloses a pixel data processing method, system, electronic device and storage medium, and relates to the field of data processing. The system obtains the total number of cache levels based on the ratio of the pixel row interval to the pixel and the number of light sources, and in each row pixel reading cycle, the data in the cache flows downward step by step, and the cache of the last level is stored in the intermediate cache. After the TDI sensor outputs a row of data, it is superimposed with the data in the intermediate cache, and the superimposed data is input into the next cache module, and each data cache module corresponds to a pixel row one by one. Thus, in each row pixel reading cycle, after the data is superimposed, input into the data cache module, and flows out step by step and input into the intermediate cache module in a fixed order, the superposition of the data in the TDI can be realized, without calculating the spatial position corresponding to the cache, thereby improving the efficiency of TDI superposition.

Description

Pixel data processing method, system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a pixel data processing method, a system, an electronic device, and a storage medium.
Background
Along with the continuous improvement of the requirements of the machine vision field on the detection precision and the detection efficiency, the multi-line TDI camera is more and more widely applied. In contrast to a conventional line camera, which typically has only one line of photosensitive pixels, a typical feature of a multi-line TDI camera is that there are multiple lines of photosensitive pixels inside its image sensor (i.e., TDI sensor). For example, multi-line TDI cameras with 2 or 4 lines of light sensitive pixels are currently popular, and more still 12 or even 16 lines of light sensitive pixels.
Compared with a multi-line TDI camera of a higher line (for example 256 lines), the multi-line TDI camera of a low-order pixel line is characterized in that an image sensor of the multi-line TDI camera of the low-order pixel line does not have a TDI superposition function, and after pixel data corresponding to all lines of pixels are read out from the TDI sensor, the TDI superposition is completed in a back-end processor, so that a high requirement is put on the cache space of the back-end processor.
In order to reduce the buffer space of the back-end processor, a solution is proposed in chinese patent CN118784994a, a TDI data buffer method, a system, an electronic device and a storage medium, in which, during the process of TDI data superposition, the same buffer is reused, and the image data (i.e. the pixel data of the present application) to be superimposed is rewritten while being read, so that compared with the conventional multi-line buffer parallel superposition method, the RAM buffer resource in the back-end processor can be reduced by more than half.
However, in the above-mentioned TDI data buffering scheme, in each overlapping process, the buffer address of each row of pixel data needs to be calculated according to the factors of the reading period, the total number of the sensor rows, the total number of the light sources, and the like, when the number of TDI sensor lines (i.e., the number of the pixel rows) and the number of the light source partitions are increased, the calculation process of the buffer address will become complex, and the consumption of the logic resource will also be greatly increased, so that on the basis of reducing the TDI buffer space, the overlapping efficiency of the TDI data still has a certain improvement space.
Disclosure of Invention
The pixel data processing method, the system, the electronic equipment and the storage medium are used for further improving the efficiency of TDI data superposition on the basis of reducing the TDI buffer space.
In order to achieve the above purpose, the present application proposes the following technical solutions:
In a first aspect of the application, there is provided a pixel data processing system comprising:
an adder for superimposing the data of the single line of pixels sequentially output by the image sensor and the data of the intermediate buffer module;
the data selector is used for inputting the data overlapped in the adder into a first-level buffer area in the corresponding data buffer module, wherein the data buffer module corresponds to the pixel rows except the tail in the image sensor one by one;
n-1 data buffer modules, wherein each data buffer module comprises M level buffer areas for receiving the data after buffer superposition as buffered data, and in the receiving process, the buffered data in each level buffer area is sequentially moved into the next level buffer area, and the buffered data in the last level buffer area is input into the middle buffer module, wherein N represents the total line number of the image sensor, N is more than or equal to 2;M =A×B, A represents the whole ratio of pixel line interval to pixel in the image sensor and is added with one, and B represents the light source number;
The image sensor comprises an adder, an intermediate buffer module, a data buffer module and a data processing system, wherein the intermediate buffer module is used for inputting internal data into the adder when data of a single line of pixels are input into the adder, the data of the last pixel line in the image sensor is overlapped with the data of the intermediate buffer module to obtain data for finishing TDI overlapping, and the data of the data buffer module and the data of the intermediate buffer module are emptied before the pixel data processing system is operated.
Optionally, the data buffer module is composed of one or more data buffers;
one data buffer is used as a first-level buffer area, or the buffer space in one data buffer is divided to form a multi-level buffer area.
Optionally, each level of the buffer buffers data for a row of pixels.
Optionally, the intermediate buffer module includes only one buffer area.
Optionally, the data selector comprises N-1 output ends, wherein the final output end directly outputs the data overlapped in the adder, and the other output ends are connected with the data caching modules in a one-to-one correspondence manner and are used for outputting the data overlapped in the adder to the first-stage cache area of the data caching module.
In a second aspect of the present application, there is provided a pixel data processing method applied to the pixel data processing system of any one of the first aspects, the pixel data processing method comprising:
in each row of pixel reading period, acquiring data of a single row of pixels in the image sensor and data in the intermediate buffer module, and completing superposition in an adder;
Based on a data selector, inputting the superimposed data into a corresponding data buffer module and buffering the superimposed data into a first-level buffer area of the data buffer module, wherein each data buffer module corresponds to one row of pixels in the image sensor, and the data generated by the last pixel row in the image sensor is superimposed with the data in the middle buffer module and is used as the data after the TDI is superimposed;
In the process of inputting the superimposed data to the corresponding data buffer module, the pixel data processing method further includes:
and in each row of pixel reading period, inputting the data of each level of buffer area in the corresponding data buffer module into the next level of buffer area, and inputting the data of the last level of buffer area into the middle buffer module.
Optionally, the total amount of the data buffering modules is N-1, and the superimposed data is input to the corresponding data buffering modules in turn based on the data selector according to the acquisition sequence of the data in each row of pixels in the image sensor.
Optionally, the pixel data processing method further includes:
before acquiring data of a single row of pixels in the image sensor, the data in the data buffer module and the data in the intermediate buffer module are both emptied.
In a third aspect of the present application, there is provided an electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
A memory for storing a computer program;
A processor configured to implement the pixel data processing method according to any one of the second aspects when executing a program stored in a memory.
In a fourth aspect of the present application, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the pixel data processing method of any one of the second aspects.
The beneficial effects of the application are as follows:
The application provides a pixel data processing system which comprises an adder, a data selector, an N-1 data caching module, an intermediate caching module and a TDI (time delay and integration) processing module, wherein the adder is used for superposing data of a single row of pixels which are sequentially output by an image sensor and data of the intermediate caching module, the data selector is used for inputting the data which are superposed in the adder into a first level caching area in a corresponding data caching module, the data caching module corresponds to the pixel rows which are arranged in the image sensor and are except for the tail end one by one, each data caching module comprises M level caching areas and is used for receiving the data which are superposed as cached data, in the receiving process, the cached data in each level caching area are sequentially moved into a next level caching area, the cached data of the final level caching area are input into the intermediate caching module, N represents the total number of the image sensor, N is larger than or equal to 2;M =A×B, A represents the light source number after the ratio of the pixel rows in the image sensor is taken in the whole, the intermediate caching module is used for inputting the data of the pixels into the adder, the data which are arranged in the adder, the data are input into the data, the buffer sequentially, the cached in the buffer is sequentially after the pixel rows are superposed into the image sensor, the buffer module is used for obtaining the data of the data, and the data of the intermediate caching module is completely processed, and the data of the pixel data are superposed in the image sensor, and the intermediate level data is obtained, and the data is completely processed, and the data of the data is stored in the buffer module, and before the buffer is added.
Based on the above processing, the application provides a hardware structure for TDI data superposition, which uses the ratio of pixel row interval to pixel and the number of light sources in an image sensor as the total level of the buffer area in a data buffer module, and in each row of pixel reading period, the data in the buffer area is gradually flowed downwards and stored in the buffer area of the last stage to the middle buffer area, and after the image sensor outputs one row of data, the data is superposed with the data in the middle buffer area, and the superposed data is input to the next buffer module, and each buffer module corresponds to different pixel rows one by one.
Therefore, under the hardware structure, in each row of pixel reading period, the superposition of data is completed successively according to a fixed sequence, the data is input to the data caching module, and the data flows out step by step and is input to the intermediate caching module, so that the superposition of the data in the TDI can be realized, the spatial position corresponding to the caching area is not required to be calculated, and the TDI superposition efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a block diagram of a pixel data processing system provided by the present application;
FIG. 2 is a block diagram of another pixel data processing system provided by the present application;
Fig. 3 is a block diagram of an electronic device according to the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application.
The linear array photometric stereo method basically adopts a linear array camera to match with a plurality of light sources placed at different positions, and calculates key information such as normal vectors of the surface of an object by collecting images of the object to be measured under the irradiation of different light sources and combining a fusion algorithm deployed in a rear-end processor, so as to generate an image capable of reflecting the surface height of the object.
The quality of the original image acquired under each light source will directly influence the normal vector calculation and fusion results. Further, when the line frequency of the camera is higher (the limiting exposure time is smaller) or the brightness of the light source is lower, the signal-to-noise ratio of the original image of the system is reduced, and the quality of the corresponding fused image is also reduced.
The TDI (TIME DELAY Integration) technology can utilize the advantages of the DI sensor with multiple rows of pixels, and can realize that the same position of the object to be measured is imaged on different rows of pixels of the sensor at different moments by matching the relation between the motion speed of the object and the row frequency. By superimposing the imaging results of the pixels of different rows, a higher image signal-to-noise ratio can be achieved.
In the existing multi-line TDI sensor, after graphic data corresponding to all lines of pixels are read out, the superposition of the TDI data is completed in a back-end processor, and a large amount of buffer space is occupied. In order to reduce the buffer space of the back-end processor, a solution is proposed in chinese patent CN118784994a, which is a TDI data buffer method, system, electronic device and storage medium, and in the TDI data superposition process, by reusing the same buffer area and adopting a manner of simultaneously reading and superposing and rewriting the data to be superimposed, compared with the conventional multi-line buffer parallel superposition method, the RAM buffer resource is reduced by more than half.
However, in the above-mentioned TDI data buffering scheme, in each superposition process, the buffer address of each row of pixel data (i.e., the data of the present application) needs to be calculated according to the factors of the reading period, the total number of the sensor lines, the total number of the light sources, etc., and when the number of the sensor lines and the number of the light source partitions are increased, the calculation process of the buffer address becomes complex, the corresponding consumption of the logic resource is greatly increased, and the superposition efficiency of the TDI data is reduced.
In order to solve the above-mentioned problems, as shown in fig. 1, the present application proposes a pixel data processing system, comprising:
and an adder for superimposing the data of the single line of pixels sequentially output by the image sensor and the data of the intermediate buffer module.
And the data selector is used for inputting the data overlapped in the adder into the first-level buffer area in the corresponding data buffer module. The data caching modules are in one-to-one correspondence with pixel rows except the tail of the image sensor.
And N-1 data caching modules, wherein each data caching module comprises an M-level caching area and is used for receiving and caching the overlapped data as cached data. And in the receiving process, the cached data in each level of cache area is sequentially moved into the next level of cache area, and the cached data in the last level of cache area is input into the intermediate cache module. Wherein N represents the total line number of the image sensor, N is larger than or equal to 2;M =A×B, A represents the ratio of the pixel line interval to the pixels in the image sensor, and B represents the light source number.
And the intermediate buffer module is used for inputting the internal data into the adder when the data of a single row of pixels are input into the adder. And after the data of the last pixel line in the image sensor is overlapped with the data of the middle buffer module, obtaining the data for finishing TDI overlapping. The data buffer modules and the intermediate buffer modules are emptied of data before running the pixel data processing system.
Based on the above processing, the application provides a hardware structure for TDI data superposition, which uses the ratio of pixel row interval to pixel and the number of light sources in an image sensor as the total level of the buffer area in a data buffer module, and in each row of pixel reading period, the data in the buffer area is gradually flowed downwards and stored in the buffer area of the last stage to the middle buffer area, and after the image sensor outputs one row of data, the data is superposed with the data in the middle buffer area, and the superposed data is input to the next buffer module, and each buffer module corresponds to different pixel rows one by one.
Therefore, under the hardware structure, in each row of pixel reading period, the superposition of data is completed successively according to a fixed sequence, the data is input to the data caching module, and the data flows out step by step and is input to the intermediate caching module, so that the superposition of the data in the TDI can be realized, the spatial position corresponding to the caching area is not required to be calculated, and the TDI superposition efficiency is improved.
In actual operation, after one exposure, all pixel points in the multi-line TDI sensor generate pixel values (i.e., the data of the present application) to form a frame of image data. The back-end processor successively acquires data of one line of pixels in the one frame of image data in each line of pixel reading period. The one-line pixel reading period is represented as a period of time taken to read data in one line of pixels, and sequentially acquires data representing sequentially acquiring one line of pixels based on the arrangement order of the pixel lines.
In one implementation, the adder represents electronics that can accomplish the data superposition, and a look-up table may be used instead.
The data selector may be a MUX (multiplexer) for connecting the adder to different data buffering modules, so as to realize that the data superimposed in the adder is sequentially input to the different data buffering modules according to the sequence of the line pixel reading periods, or is directly output.
In some embodiments, the data selector includes N-1 output ends, wherein the final output end directly outputs the data superimposed in the adder to the processor, and the other output ends are connected with the data buffer modules in a one-to-one correspondence manner, and are used for outputting the data superimposed in the adder to the first-stage buffer area of the data buffer module.
In the application, after each exposure, the data of different pixel rows in the TDI sensor are acquired successively according to the arrangement sequence of the pixel rows. Meanwhile, the pixel data processing system provided by the application comprises N-1 pixel buffer modules, and each pixel buffer module corresponds to the first N-1 rows of pixel rows in the TDI sensor one by one.
For example, the TDI sensor has 4 pixel rows L1, L2, L3, and L4, and the corresponding 3 data buffer modules are divided into A1, A2, and A3. L1 is the first pixel row, which is represented as the first pixel row for generating data to be superimposed in the process of superimposing TDI data, or the first pixel row for shooting the tested area in the process of generating TDI image. Similarly, the last pixel line represents the last pixel line that captured the region under test during the TDI image generation process, in terms of the order of the pixel lines. The pixel line L1 corresponds to the data buffer module A1, the pixel line L2 corresponds to the data buffer module A2, and the pixel line L3 corresponds to the data buffer module A3.
Specifically, when the data of the pixel line L1 is acquired, the data selector connects the adder to the data buffer module A1, and superimposes the data of L1 and the data in the intermediate buffer module and inputs the superimposed data into the data buffer module A1. In the next line pixel reading period, when the data of the pixel line L2 is acquired, the data selector communicates the adder to the data cache module A2 according to the arrangement sequence of the pixel line, and the data of the L2 and the data in the middle cache module are overlapped and then input into the data cache module A2. Similarly, when the data of the pixel line L3 is obtained, the data selector connects the adder to the data buffer module A3 according to the arrangement sequence of the pixel line, and superimposes the data of L3 and the data in the intermediate buffer module and inputs the superimposed data into the data buffer module A3. And in the next line of pixel reading period, when the data of the last pixel line in the TDI sensor is obtained, the data is overlapped with the data in the middle buffer module to be used as the data after the TDI is overlapped, and the data is directly output. The data after the TDI superposition can be directly output to the next processor for processing.
Each data buffer module comprises an M-level buffer area, and the total level number M is obtained by multiplying the ratio of the pixel row interval to the pixel in the TDI sensor by one and multiplying the ratio by the light source number. The ratio rounding indicates that the ratio is rounded to be a self value when the ratio is an integer, and the ratio can be rounded up or down according to the requirement when the ratio is a non-integer.
Furthermore, the number of light sources may be used to represent the number of exposures when the TDI sensor is moved a single line of pixel distances. For example, in a single lamp mode, the line frequency and object motion rate ratio of the TDI sensor is 1:1, and in a multi-lamp mode with multi-angle lighting, the number of light sources is M, and at this time, the line frequency and object motion rate ratio is M:1.
In an application scene with a ratio of pixel row interval to pixels of 1 and a light source number of 2 (i.e., a ratio of row frequency to object motion rate of 2), the number of stages of the buffer area in each data buffer module is 4. By combining with the TDI superposition principle, in the application scene, the data of the first pixel row in the first exposure is superposed with the data of the second pixel row in the 5 th exposure. According to the above-mentioned scheme, in each line of pixel reading period, the data of the buffer area in the corresponding data buffer module is all transferred to the next buffer area, and the data flow in the last level buffer area is transferred to the middle buffer module, so that according to the structural setting and data superposition transfer direction of the superposition system, the superposition of the data of the first line of pixels in the first exposure and the data of the second line of pixels in the 5 th exposure can be realized, and the TDI superposition process is met.
In some embodiments, the data caching module is comprised of one or more data caches. For example, one data buffer is used as a first-level buffer, i.e., one data buffer module is composed of M buffers.
Alternatively, the data buffer module may be composed of a data buffer, such as a FIFO buffer, and form the M-level buffer by dividing the buffer space in a data buffer. Based on the above processing, the utilization rate of the cache resources in the cache can be improved.
In one implementation, each level of buffer buffers data for a row of pixels. Wherein the data of the line of pixels contains data before and data after non-superimposition.
In some embodiments, only one buffer may be provided within the intermediate buffer module. Based on the foregoing, in the working scenario of the image sensor with the ratio of 4 pixel rows, the pixel row interval to the pixel size being 1, and the number of light sources being 3, the total number of corresponding buffer areas in the pixel data processing system provided by the application is 19, which is the same as the total amount of buffer spaces (i.e. buffer areas) in the scheme provided by the TDI data buffering method, system, electronic device and storage medium of the chinese patent CN118784994 a. Therefore, the pixel data processing scheme provided by the application can also realize the purpose of reducing the TDI buffer space.
Note that, before the pixel data processing system provided by the present application operates, the data in the data buffer module and the data in the intermediate buffer module are both emptied. That is, in the initial state, the pixel values of the data in the data buffer module and the intermediate buffer module are both 0. Based on the method, the influence of the original pixel values in the data buffer module and the middle buffer module on the TDI superposition process is avoided, meanwhile, the data generated by the pixel rows in the region which is not shot is not required to be discarded, the data of the discarded pixel rows is further ensured not to be calculated in the TDI superposition process, and the operation process of the TDI superposition system provided by the application is ensured not to be subjected to logic operation.
Based on the same inventive concept, the application also provides a pixel data processing method, which is applied to the pixel data processing system, and comprises the following steps:
s1, acquiring data of a single line of pixels in an image sensor and data in an intermediate buffer module in each line of pixel reading period, and completing superposition in an adder.
S2, based on the data selector, inputting the superimposed data into the corresponding data caching module, and caching the superimposed data into a first-level cache region of the data caching module.
Each data buffer module corresponds to one row of pixels in the image sensor, and after the data generated by the last pixel row in the image sensor is overlapped with the data in the middle buffer module, the data is used as the data after the TDI is overlapped.
In the process of inputting the superimposed data to the corresponding data buffer module, the pixel data processing method further comprises the following steps:
S3, in each row of pixel reading period, the data of each level of buffer area in the corresponding data buffer module is input into the next level of buffer area, and the data of the last level of buffer area is input into the middle buffer module.
In one implementation, the total amount of the data buffer modules is N-1, and the superimposed data is input to the corresponding data buffer modules in turn based on the data selector according to the acquisition sequence of the data of each row of pixels in the TDI sensor.
In one implementation, the data in both the data caching module and the intermediate caching module in the pixel data processing system are emptied prior to acquiring the data for a single row of pixels in the image sensor.
Based on the above arrangement, in combination with the configuration arrangement in the pixel data processing system, according to the reading sequence of the data of different pixel rows, the data after overlapping the pixels of different rows is input into different data buffer spaces by using the data selector according to the arrangement sequence of the pixel rows (or the reading sequence of the pixel rows, that is, the preset gating sequence). Meanwhile, by means of the number of the buffer areas in the data buffer module and the arrangement of data flow, the data overlapped in the adder is ensured to accord with the TDI overlapping principle. And when the data after the superposition of the tail pixel rows also belongs to the data after the superposition of the TDI, the data is directly output, so that the logic operation in the process of the superposition of the TDI is greatly reduced, and the efficiency of the superposition of the TDI is further improved.
Taking an application scenario in which the total number of the sensors in 4 rows, the ratio of the interval of the pixel rows to the pixels is 1, and the number of the light sources is 2 (the ratio of the row frequency to the object motion rate is 2) as an example, the scheme is described. Referring to fig. 2, fig. 2 is a schematic diagram of another pixel data processing system according to the present application.
After each exposure, the TDI sensor generates data for 4 rows of pixels. In reading data, data of only one row of pixels is read per one row of pixel reading period, and reading is performed in the order of L1, L2, L3, and L4. The data selector is a data selector of 4-1, and the data caching module comprises A1, A2 and A3. Each data buffer module comprises 4 buffer areas, namely buffer areas 10 to 13, buffer areas 20 to 23 and buffer areas 30 to 33, and the middle buffer module only comprises one buffer area, namely a middle buffer area B.
Firstly, before the TDI superposition system operates, the data caching modules A1, A2 and A3 and the data in the middle caching area B are subjected to zero clearing processing, namely, in an initial state, the data in each caching area is 0.
After the first exposure, the data generated by the pixel line L1 is the effective data L11, and in the first line of pixel reading period, the pixel value in the buffer area 13 is input into the intermediate buffer area B, and the effective data L1 is superimposed with the data in the intermediate buffer area B, which is 0, and then is input into the buffer area 10. The following description will take valid data L11 as an example, and the remaining line data can be understood with reference to this procedure. Where L11 denotes data generated at the first exposure of the pixel row L1.
Similarly, in the next three line pixel reading periods, the data of the pixel lines L2 and L3 are overlapped with the data 0 and then respectively input into the buffer areas 20 and 30, and the data of the L4 is overlapped with the data 0 and then output. The data of L1 is only valid data, so before the L1 data is overlapped by TDI in the first exposure, the directly output data back-end processor is not processed.
Note that after each exposure, when the data of the last line of pixels is superimposed with the data in the intermediate buffer (i.e., the intermediate buffer module), the data in the intermediate buffer is cleared (i.e., the data in the intermediate buffer is set to 0). Therefore, after the next exposure, the result of overlapping the data of the first line pixel and the data in the middle buffer area can be ensured, and the original data generated for the first line pixel is still generated, namely, the error of the first line pixel data in the overlapping process when the data in the middle buffer area is not 0 after overlapping is effectively avoided.
After the second exposure, the data generated by the pixel line L1 is valid data L12, which is input to the buffer 10, and valid data L11 flows to the buffer 11. The data of the rest of the pixel rows all belong to invalid data, which is not described in detail.
After the third exposure, the data 0 in the original buffer 11 is transferred to the middle buffer B, the data generated by the pixel line L1 is the effective data L13, and is input to the buffer 10, the effective data L12 is transferred to the buffer 11, and the effective data L11 is transferred to the buffer 12.
After the fourth exposure, the data 0 in the original buffer 10 is transferred into the middle buffer, the data generated by the pixel line L1 is the effective data L14, which is input into the buffer 10, the effective data L13 is transferred to the buffer 11, the effective data L12 is transferred to the buffer 12, and the effective data L11 is transferred to the buffer 13.
After the fifth exposure, in the first line of pixel reading period, the data L11 in the original buffer 10 is transferred to the middle buffer B, the data generated by the pixel line L1 is the effective data L15, and is input to the buffer 10, the effective data L14 is transferred to the buffer 11, the effective data L13 is transferred to the buffer 12, and the effective data L12 is transferred to the buffer 13.
In the second row of pixel reading period, after the data L25 generated by the second row of pixels is overlapped with the data L11 in the middle buffer area, the data in each buffer area in the data buffer module A2 is transferred and input to the next buffer area one by one, and the data overlapped by the L25 and the L11 is buffered in the buffer area 20.
Similarly, after the 9 th exposure, the data after the superposition of L25 and L11 is buffered in the intermediate buffer B. In the reading process of the generated data after the 9 th exposure, in the third row of pixel reading period, the data L39 generated by the pixel row L3 and the data overlapped by the L25 and the L11 are overlapped again, then the data in each buffer area in the data buffer module A2 are transferred and input to the next buffer area one by one, and the data overlapped by the L39, the L25 and the L11 are buffered in the buffer area 30.
Similarly, after the 13 th exposure, the data after the superposition of L39, L25 and L11 is buffered in the intermediate buffer B. In the reading process of the generated data after 13 th exposure, in the fourth row of pixel reading period, the data L413 generated by the pixel row L4 and the data overlapped by the L39, the L25 and the L11 are overlapped again, so that the data after the TDI is overlapped can be obtained and directly output to the next processor. Furthermore, TDI superposition for the remaining rows of pixels can be understood with reference to the above-described process.
The embodiment of the present application further provides an electronic device, as shown in fig. 3, including a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 perform communication with each other through the communication bus 304,
A memory 303 for storing a computer program;
the processor 301 is configured to implement any of the above-described pixel data processing methods when executing the program stored in the memory 303.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Ind ustry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The Processor may be a general-purpose Processor including a central processing unit (Central Processing Unit, CPU), a network Processor (Network Processor, NP), etc., or may be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the pixel data processing methods described above.
In a further embodiment of the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the method of any of the above embodiments.
The foregoing embodiments are merely for illustrating the technical solution of the present application, but not for limiting the same, and although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that modifications may be made to the technical solution described in the foregoing embodiments or equivalents may be substituted for parts of the technical features thereof, and that such modifications or substitutions do not depart from the spirit and scope of the technical solution of the embodiments of the present application in essence.

Claims (9)

Translated fromChinese
1.一种像素数据处理系统,其特征在于,包括:1. A pixel data processing system, comprising:加法器,用于叠加由图像传感器逐次输出的单行像素的数据和中间缓存模块的数据;An adder, used for superimposing the data of a single row of pixels outputted successively by the image sensor and the data of the intermediate buffer module;数据选择器,用于将加法器内叠加后的数据输入至对应的数据缓存模块内的第一级缓存区;其中,数据缓存模块与图像传感器内除末尾外的像素行一一对应;所述数据选择器的末级输出端将加法器内叠加后的数据直接输出,所述数据选择器的其余输出端与数据缓存模块一一对应连接,用于将加法器内叠加后的数据输出至数据缓存模块的第一级缓存区内;A data selector, used to input the superimposed data in the adder into the first-level cache area in the corresponding data cache module; wherein the data cache module corresponds one-to-one to the pixel rows in the image sensor except the end; the final output end of the data selector directly outputs the superimposed data in the adder, and the remaining output ends of the data selector are connected one-to-one with the data cache module, and are used to output the superimposed data in the adder to the first-level cache area of the data cache module;N-1个数据缓存模块,每一数据缓存模块内包含M级缓存区,用于接收缓存叠加后的数据,作为已缓存数据;并在接收的过程中,将每级缓存区中已缓存数据依次移入至下一级缓存区,末级缓存区的已缓存数据则输入至中间缓存模块;其中,N表示图像传感器的总行数,且N≥2;M=A×B,A表示图像传感器内像素行间隔与像素的比值取整后加一,B表示光源数;N-1 data cache modules, each of which contains M-level cache areas, for receiving cached superimposed data as cached data; and in the process of receiving, the cached data in each level of cache area is sequentially moved to the next level of cache area, and the cached data in the last level of cache area is input into the intermediate cache module; wherein N represents the total number of rows of the image sensor, and N≥2; M=A×B, A represents the ratio of the pixel row interval to the pixel in the image sensor, rounded to the integer plus one, and B represents the number of light sources;中间缓存模块,用于在单行像素的数据输入至加法器时,将内部的数据输入至加法器中;其中,图像传感器内末尾像素行的数据与中间缓存模块的数据叠加后,得到完成TDI叠加的数据;在运行像素数据处理系统之前,清空数据缓存模块和中间缓存模块的数据。The intermediate cache module is used to input the internal data into the adder when the data of a single row of pixels is input into the adder; wherein, after the data of the last pixel row in the image sensor is superimposed with the data of the intermediate cache module, the data of the completed TDI superposition is obtained; before running the pixel data processing system, the data of the data cache module and the intermediate cache module are cleared.2.根据权利要求1所述的系统,其特征在于,所述数据缓存模块由一个或多个数据缓存器组成;2. The system according to claim 1, characterized in that the data cache module is composed of one or more data caches;其中,一个数据缓存器作为一级缓存区;或者,划分一个数据缓存器内的缓存空间,形成多级缓存区。A data buffer is used as a first-level buffer area; or, the buffer space in a data buffer is divided to form a multi-level buffer area.3.根据权利要求1所述的系统,其特征在于,每一级缓存区均缓存一行像素的数据。3. The system according to claim 1 is characterized in that each level of cache area caches data of one row of pixels.4.根据权利要求1所述的系统,其特征在于,所述中间缓存模块内仅包含一个缓存区。4 . The system according to claim 1 , wherein the intermediate cache module contains only one cache area.5.一种像素数据处理方法,其特征在于,应用于权利要求1-4任一所述的系统,所述像素数据处理方法包括:5. A pixel data processing method, characterized in that it is applied to the system according to any one of claims 1 to 4, and the pixel data processing method comprises:在每一次行像素读取周期内,获取图像传感器内单行像素的数据和中间缓存模块内的数据,在加法器内完成叠加;In each row pixel reading cycle, the data of a single row of pixels in the image sensor and the data in the intermediate buffer module are obtained and superimposed in the adder;基于数据选择器,将叠加后的数据输入至对应的数据缓存模块中,并缓存至数据缓存模块的第一级缓存区;其中,每一个数据缓存模块对应所述图像传感器内的一行像素,且所述图像传感器内末尾像素行生成的数据与中间缓存模块内的数据叠加后,作为完成TDI叠加后的数据;Based on the data selector, the superimposed data is input into the corresponding data cache module and cached into the first-level cache area of the data cache module; wherein each data cache module corresponds to a row of pixels in the image sensor, and the data generated by the last pixel row in the image sensor is superimposed with the data in the middle cache module to serve as the data after TDI superposition is completed;在叠加后的数据输入至对应的数据缓存模块的过程中,所述像素数据处理方法还包括:In the process of inputting the superimposed data into the corresponding data buffer module, the pixel data processing method further includes:将所述对应的数据缓存模块内每一级缓存区的数据输入至下一级缓存区内,且末级缓存区的数据输入至中间缓存模块。The data in each level of cache area in the corresponding data cache module is input into the next level of cache area, and the data in the last level of cache area is input into the intermediate cache module.6.根据权利要求5所述的方法,其特征在于,所述数据缓存模块的总量为N-1,根据图像传感器每行像素内数据的获取顺序,基于数据选择器,将叠加后的数据轮流输入至对应的数据缓存模块中。6. The method according to claim 5 is characterized in that the total number of the data cache modules is N-1, and the superimposed data is input into the corresponding data cache modules in turn based on the data selector according to the order of acquiring data in each row of pixels of the image sensor.7.根据权利要求5所述的方法,其特征在于,所述像素数据处理方法还包括:7. The method according to claim 5, characterized in that the pixel data processing method further comprises:在获取图像传感器内单行像素的数据之前,将数据缓存模块和中间缓存模块内的数据均清空。Before acquiring the data of a single row of pixels in the image sensor, the data in the data buffer module and the intermediate buffer module are cleared.8.一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;8. An electronic device, characterized in that it comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;存储器,用于存放计算机程序;Memory, used to store computer programs;处理器,用于执行存储器上所存放的程序时,实现权利要求5-7任一项所述的像素数据处理方法。The processor is used to implement the pixel data processing method described in any one of claims 5 to 7 when executing the program stored in the memory.9.一种计算机可读存储介质,其特征在于,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现权利要求5-7任一项所述的像素数据处理方法。9. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the pixel data processing method according to any one of claims 5 to 7 is implemented.
CN202510104976.1A2025-01-232025-01-23Pixel data processing method, system, electronic equipment and storage mediumActiveCN119540029B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202510104976.1ACN119540029B (en)2025-01-232025-01-23Pixel data processing method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202510104976.1ACN119540029B (en)2025-01-232025-01-23Pixel data processing method, system, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN119540029A CN119540029A (en)2025-02-28
CN119540029Btrue CN119540029B (en)2025-04-22

Family

ID=94703837

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202510104976.1AActiveCN119540029B (en)2025-01-232025-01-23Pixel data processing method, system, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN119540029B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2018006874A (en)*2016-06-282018-01-11三菱電機株式会社Tdi system linear image sensor and imaging apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5829007A (en)*1993-06-241998-10-27Discovision AssociatesTechnique for implementing a swing buffer in a memory array
US7399043B2 (en)*2002-12-022008-07-15Silverbrook Research Pty LtdCompensation for uneven printhead module lengths in a multi-module printhead
US20060067592A1 (en)*2004-05-272006-03-30Walmsley Simon RConfigurable image processor
KR20150131601A (en)*2014-05-152015-11-25주식회사 뷰웍스Bi-directional tdi line image sensor
US10130280B2 (en)*2015-05-132018-11-20Raytheon CompanyDetector arrays with electronically adjustable detector positions

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2018006874A (en)*2016-06-282018-01-11三菱電機株式会社Tdi system linear image sensor and imaging apparatus

Also Published As

Publication numberPublication date
CN119540029A (en)2025-02-28

Similar Documents

PublicationPublication DateTitle
US20200137287A1 (en)Method and apparatus for dynamic image capturing based on motion information in image
US11816813B2 (en)Image data pre-processing for neural networks
US11758284B2 (en)Image processors and image processing methods
CN111340835A (en)FPGA-based video image edge detection system
CN117173070A (en)Image processing fusion method and system based on FPGA
CN110557572B (en)Image processing method and device and convolutional neural network system
CN118784994B (en)TDI data caching method, system, electronic equipment and storage medium
Cadenas et al.Parallel pipelined array architectures for real-time histogram computation in consumer devices
US20120327260A1 (en)Parallel operation histogramming device and microcomputer
CN119540029B (en)Pixel data processing method, system, electronic equipment and storage medium
CN106791803B (en)A kind of disturbance measurement imaging system
CN113709381B (en) Single-exposure multi-frame image capture method for producing HDR video
CN114897665A (en) Configurable real-time parallax point cloud computing device and method
WO2023231138A1 (en)Multi-angle-of-view image super-resolution reconstruction method and apparatus based on meta-imaging
CN119540027B (en) Image data superposition method, system, electronic device and storage medium
CN120075637A (en)Data cache control method, system, electronic equipment and storage medium
CN110264488B (en)Binary image edge extraction device
CN106897969B (en) A data processing device and method for super-resolution positioning microscopic imaging
CN115546373B (en)NeRF renderer and rendering method based on FPGA and multi-resolution hash coding algorithm
CN115470895B (en)Image convolution circuit, method, image identification method, device and equipment
CN110996005B (en)Real-time digital image enhancement method and system
KR20150019192A (en)Apparatus and method for composition image for avm system
CN112954241B (en) Image data reading system of image sensor and method for reading and organizing image data
Sangiovanni et al.Hardware-oriented multi-exposure fusion approach for real-time video processing on FPGA
CN117710449B (en)NUMA-based real-time pose video measurement assembly line model optimization method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp