[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2022222112A1 - Data processing method, image sensor, image processor and electronic device - Google Patents

Data processing method, image sensor, image processor and electronic device Download PDF

Info

Publication number
WO2022222112A1
WO2022222112A1 PCT/CN2021/089069 CN2021089069W WO2022222112A1 WO 2022222112 A1 WO2022222112 A1 WO 2022222112A1 CN 2021089069 W CN2021089069 W CN 2021089069W WO 2022222112 A1 WO2022222112 A1 WO 2022222112A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
image data
image
exposure
image sensor
Prior art date
Application number
PCT/CN2021/089069
Other languages
French (fr)
Chinese (zh)
Inventor
周长波
张嘉懿
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/089069 priority Critical patent/WO2022222112A1/en
Publication of WO2022222112A1 publication Critical patent/WO2022222112A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/436Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation using parallelised computational arrangements

Definitions

  • the present application generally relates to the technical field of image acquisition and processing, and more particularly to a data processing method, an image sensor, an image processor and an electronic device.
  • Dynamic range is an important metric for image sensors. Dynamic range is generally defined as the ratio of the brightness when the image sensor reaches its maximum signal value and the brightness when the amplitude of the signal value output by the image sensor equals the amplitude of the noise signal. An image sensor with a large dynamic range can accurately record both bright and dark subjects at the same time.
  • DOL Digital Overlap
  • DCG Dual Conversion Gain
  • each pixel is continuously exposed twice, which are recorded as long-exposure L signal and short-exposure S signal, which are output successively; the image processor that receives the L signal and the S signal uses an image processing algorithm to The signals are combined into a pixel value.
  • Image sensors using DCG technology each pixel performs two analog-to-digital conversions, and the gains of the two conversions are different.
  • the final pixel value is HG when the gain is high, and the final pixel value is LG when the gain is low; image sensor
  • the HG signal and the LG signal are output successively.
  • the image processor that receives the two signals uses an image processing algorithm to combine the two signals into a single pixel value.
  • the problems brought about by the above two technologies have a common problem, that is, the amount of data sent is doubled. Under the trend of more and more pixels and higher frame rate, it is difficult to bear the doubling of the amount of data.
  • Another method is to synthesize the two signals into a single pixel signal inside the image sensor and then send it. This method increases the complexity and power consumption of the image sensor, which cannot be realized in many cases.
  • a data processing method comprising: obtaining at least two image data for the same pixel position by an image sensor, the at least two image data including first image data and second image data ; determine the residual corresponding to the second image data based on the preset mapping relationship between the second image data and the first image data; perform compression coding on the residual to obtain compressed data; Both the image data and the compressed data are transmitted to the image processor as pixel data at the pixel locations.
  • a data processing method includes receiving at least two image data output by an image sensor for the same pixel position, the at least two image data including a first image data and a second image compressed data corresponding to the data; decode the compressed data to obtain decoded data; determine based on the preset mapping relationship between the first image data, the second image data and the first image data, and the decoded data the second image data; fusing the first image data and the second image data to obtain the pixel value of the pixel position.
  • an image sensor includes an optoelectronic device, a storage device, an encoding device and an interface device, wherein: the optoelectronic device is used to obtain at least two image data for the same pixel position, The at least two image data includes first image data and second image data; the storage device is used for storing a computer program executed by the encoding device, the computer program executing the following steps when executed by the encoding device : determine the residual corresponding to the second image data based on the preset mapping relationship between the second image data and the first image data, and perform compression coding on the residual to obtain compressed data; the interface device for transmitting both the first image data and the compressed data to an image processor as pixel data at the pixel location.
  • an image processor includes an interface device, a storage device and a decoding device, wherein: the interface device is configured to receive at least two output from an image sensor for the same pixel position image data, the at least two image data include compressed data corresponding to the first image data and the second image data; the storage device is used for storing a computer program executed by the decoding device, and the computer program is executed by the decoding device.
  • the decoding device When the decoding device is running, the following steps are performed: decoding the compressed data to obtain decoded data; based on the first image data, the preset mapping relationship between the second image data and the first image data, and the decoding The data determines the second image data; the first image data and the second image data are fused to obtain the pixel value of the pixel position.
  • a data processing method comprising: an image sensor generating at least two pixel data for the same pixel position; wherein the at least two pixel data includes first image data, and Compressed data obtained by compressing the residual corresponding to the second image data; the residual is determined based on the preset mapping relationship between the second image data and the first image data; the image sensor sends the image processor The at least two pixel data are sent.
  • a data processing method comprising: an image processor receiving at least two pixel data output from an image sensor for the same pixel position; wherein the at least two pixel data includes the first image data, and compressed data obtained by compressing the residual corresponding to the second image data; the residual is determined based on the preset mapping relationship between the second image data and the first image data; the The image processor obtains pixel values of the pixel positions based on the first image data and the compressed data.
  • an image sensor includes a storage device, a processing device and an interface device, wherein: the storage device is used for storing a computer program executed by the processing device, the computer When the program is run by the processing device, the following steps are performed: generating at least two pixel data for the same pixel position; wherein the at least two pixel data includes the first image data, and performing the following steps on the residual corresponding to the second image data compressed data obtained by compression; the residual is determined based on the preset mapping relationship between the second image data and the first image data; the interface device is configured to send the at least two pixels to the image processor data.
  • an image processor includes an interface device, a storage device and a processing device, wherein: the interface device is configured to receive at least an output image sent by an image sensor for the same pixel position Two pixel data; wherein, the at least two pixel data include first image data and compressed data obtained by compressing residuals corresponding to the second image data; the residuals are based on the second image data and the The preset mapping relationship of the first image data is determined; the storage device is configured to store a computer program executed by the processing device, and the computer program executes the following steps when executed by the processing device: based on the The first image data and the compressed data obtain pixel values at the pixel locations.
  • an electronic device includes an image sensor and an image processor, wherein: the image sensor includes the above-mentioned image sensor; and the image processor includes the above-mentioned image processor.
  • a computer-readable storage medium comprising instructions, when executed on a computer, cause the computer to execute the above data processing method.
  • the data processing method, image sensor, image processor and electronic device do not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but It is the residual compressed data that transmits part of the original image data and the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need for the image sensor side. Perform pixel synthesis without adding complexity and power consumption to the image sensor.
  • FIG. 1 shows a schematic flowchart of a data processing method according to an embodiment of the present application.
  • FIG. 2 shows a schematic flowchart of a data processing method according to another embodiment of the present application.
  • FIG. 3 shows a schematic structural block diagram of an image sensor according to an embodiment of the present application.
  • FIG. 4 shows a schematic structural block diagram of an image processor according to an embodiment of the present application.
  • FIG. 5 shows a schematic structural block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 6 shows a schematic flowchart of a data processing method according to still another embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of a data processing method according to yet another embodiment of the present application.
  • FIG. 8 shows a schematic structural block diagram of an image sensor according to another embodiment of the present application.
  • FIG. 9 shows a schematic structural block diagram of an image processor according to another embodiment of the present application.
  • FIG. 1 shows a schematic flowchart of a data processing method 100 according to an embodiment of the present application.
  • the data processing method 100 according to the embodiment of the present application may include the following steps:
  • step S110 at least two image data including the first image data and the second image data are obtained by the image sensor for the same pixel position.
  • step S120 a residual corresponding to the second image data is determined based on a preset mapping relationship between the second image data and the first image data.
  • step S130 compression coding is performed on the residual to obtain compressed data
  • step S140 both the first image data and the compressed data are transmitted to an image processor as pixel data at the pixel positions.
  • the image sensor obtains at least two image data for the same pixel position, that is, the first image data and the second image data, and transmits the residual compressed data of the first image data and the second image data to the image
  • the processor is configured to determine the final pixel value of the pixel position in combination with the first image data after the second image data is recovered by the image processor.
  • the data transmitted to the image processor includes two types: one is the original image data (ie the first image data), and the other is the processed image data (ie the residual of the second image data) The data obtained after being compressed); wherein, the residual of the second image data is determined according to the preset mapping relationship between the second image data and the first image data, and the compressed data is obtained by compressing and encoding the residual. ; After the image processor receives the two types of data, it can decode and obtain the second image data according to the preset mapping relationship and the corresponding decoding method, so as to determine the final pixel value of the pixel position in combination with the first image data.
  • the data processing method does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the rest Residual compressed data of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding adding image sensors. complexity and power consumption.
  • the image sensor may be exposed at least twice for the same pixel position to obtain at least two image data, and the time of each exposure is different.
  • the image sensor may obtain exposure data by exposing the same pixel position once, and perform at least two analog-to-digital conversions on the exposure data to obtain at least two image data, and the gain of each analog-to-digital conversion is different.
  • the image sensor may also obtain at least two image data for the same pixel position in other suitable manners.
  • a pixel position may refer to a pixel unit, or a pixel row, or other positions related to pixels.
  • the above exposure can be performed in row units, for example, long exposure and short exposure are successively performed for each row of pixels, and then sequentially sent to the image processor in row units to meet the needs of timing control.
  • the image data obtained after analog-to-digital conversion can also be output to the image processor in units of lines or in units of frames to meet the needs of timing control.
  • the at least two image data obtained for the same pixel position are described below by taking at least two exposures for the same pixel position as an example.
  • two image data are obtained, namely the first image data and the second image data, wherein the first image data is the image obtained after the first exposure data, the second image data is the image data obtained after the second exposure.
  • the first image data is the data obtained by the long exposure
  • the second image data is the data obtained by the short exposure
  • the first image data is the data obtained by the short exposure
  • the second image data is the data obtained by the long exposure
  • the first image data when the same pixel position is exposed more than twice, the first image data may be the output data obtained after the first exposure, and the second image data may be the output data obtained after the remaining exposures.
  • the data obtained after the first exposure is used as the first image data
  • the data obtained from other exposures are used as the second image data, which means that the residual data corresponding to the second image data is determined in step S120
  • the difference time depends on the data obtained after the first exposure.
  • the first image data is the output data obtained after the first exposure, such as the A data
  • the data obtained after the second exposure and the data obtained after the third exposure are both
  • the data obtained after the second exposure and the data obtained after the third exposure may be referred to as B data and C data, respectively.
  • the residual of the B data may be determined according to the preset mapping relationship between the A data and the B data
  • the residual of the C data may be determined according to the preset mapping relationship between the A data and the C data. The preset mapping relationship will be further described below.
  • the first image data when the same pixel position is exposed more than twice, the first image data may also be part of all output data obtained after each exposure, and the second image data may be other part of the data .
  • part of the data is used as the first image data
  • the remaining part of the data is used as the second image data.
  • the first image data when exposures are made for the same pixel position four times, the first image data is, for example, the output data obtained after the first exposure and the second exposure, respectively.
  • the data obtained after the first exposure and the data obtained after the fourth exposure are both the second image data.
  • the data obtained after the third exposure and the data obtained after the fourth exposure can be called C data respectively. and D data.
  • the residual of the C data can be determined according to the preset mapping relationship between the A data and the C data, or can be determined according to the preset mapping relationship between the B data and the C data; the residual of the D data can be determined according to the A data
  • the preset mapping relationship with the D data is determined, or may be determined according to the preset mapping relationship between the B data and the D data.
  • This relationship may be determined by image sensor hardware design (such as analog-to-digital conversion gain in DCG mode), or by image sensor exposure parameters specified by the control program (such as exposure time in DOL mode).
  • image sensor hardware design such as analog-to-digital conversion gain in DCG mode
  • image sensor exposure parameters specified by the control program such as exposure time in DOL mode.
  • determining the residual corresponding to the second image data based on the preset mapping relationship between the second image data and the first image data in step S120 may include: mapping the second image data based on the preset mapping relationship
  • the image data is expressed as a function of the first image data to obtain derived image data; the difference between the second image data and the derived image data is calculated to obtain a residual corresponding to the second image data.
  • the first image data is S
  • the second image data is L.
  • the above-mentioned mapping relationship is generally established when both the first image data and the second image data are not zero or have not reached the limit maximum value.
  • the residual is encoded to obtain compressed data, and then the first image data and the compressed data are transmitted to the image processor as pixel data at the pixel position, as mentioned earlier.
  • the residual D L-M(S)
  • L M(S)
  • Much smaller and more concentrated for compression Sending the compressed data to the image processor, rather than sending the data L directly, can greatly reduce the amount of data transferred.
  • the first image data and the compressed data can be sent to the image processor together, or after the first image data is obtained, the first image data can be sent to the image processor, and then the compressed data can be calculated and sent to the image processor. device.
  • encoding the residual may include: performing difference encoding on the residual (ie, Differential Pulse code modulation, DPCM encoding for short).
  • performing difference encoding on the residual to obtain compressed data may include: using the true value of the previous residual corresponding to one or more pixel positions before the pixel position corresponding to the current residual as the prediction of the current residual Calculate the difference between the true value of the current residual and the predicted value as error data; perform positive mapping on the error data to obtain positive data; quantify the positive data to obtain a quantized data; entropy encoding is performed on the quantized data to obtain the compressed data.
  • the entropy encoding of the quantized data may include: Huffman encoding or Gromb encoding of the quantized data.
  • the error data em is the difference between the actual value of the current residual and the predicted value, namely:
  • the positive value mapping is performed on the error data to obtain the positive value data e' m .
  • the positive value mapping process is:
  • Huffman coding is used for entropy coding, that is, a variable-length coding table is used to encode numerical values by using a table look-up method.
  • other entropy coding techniques such as Glenbow coding, may also be used.
  • the code table (such as the Huffman code table used by Huffman coding) can be specified and stored in the image sensor by the image sensor control program. At the same time, the image sensor control program can notify the image processor of the same parameters to reconstruct the L signal before compression (ie, the second image data).
  • the data processing method does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the residual compressed data of the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding Increase the complexity and power consumption of the image sensor.
  • the above exemplarily shows the data processing method 100 according to an embodiment of the present application, which is described from the perspective of an image sensor, and can be executed by the image sensor.
  • the following describes a data processing method 200 according to another embodiment of the present application with reference to FIG. 2 , which is described from the perspective of an image processor and can be executed by an image processor, and the data processing method 200 is the same as the data processing method 100 Corresponding.
  • the data processing method 200 may include the following steps:
  • step S210 at least two image data output by the image sensor for the same pixel position are received, where the at least two image data include compressed data corresponding to the first image data and the second image data.
  • step S220 the compressed data is decoded to obtain decoded data
  • step S230 the second image data is determined based on the first image data, a preset mapping relationship between the second image data and the first image data, and the decoded data;
  • step S240 the first image data and the second image data are fused to obtain the pixel value of the pixel position.
  • the data processing method 200 is the data processing performed by the image processor after receiving different image data of the same pixel position obtained by the image sensor after passing through the data processing method 100 .
  • the first image data and the compressed data may be received from the image sensor together, or the first image data may be received first, and then received Compressed data, depending on the sending situation of the image sensor
  • decode the compressed data (the decoding method corresponds to the encoding method, and the parameters related to decoding can be sent by the image sensor to the image processor, or can be stored in the image processor in advance);
  • the decoded data obtained after decoding is the residual data in the data processing method 100 (such as D in the foregoing example); then, based on the preset mapping relationship (such as M in the foregoing example), the first image data (such as S) in the second image data L, that is, the derived image data of the second image data (such as M(S) in the previous example), the
  • the data processing method receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
  • FIG. 3 shows a schematic structural block diagram of an image sensor 300 according to an embodiment of the present application.
  • the image sensor 300 includes an optoelectronic device 310, a storage device 320, an encoding device 330 and an interface device 340, wherein: the optoelectronic device 310 is used to obtain at least two image data for the same pixel position, the at least two The pieces of image data include first image data and second image data; the storage device 320 is configured to store a computer program executed by the encoding device 330, and the computer program executes the following steps when executed by the encoding device 330: The residual corresponding to the second image data is determined based on the preset mapping relationship between the second image data and the first image data, and the residual is compressed and encoded to obtain compressed data; the interface device 340 for transmitting both the first image data and the compressed data to an image processor as pixel data at the pixel location.
  • the image sensor 300 can be used to execute the data processing method 100 described above.
  • Those skilled in the art can understand the operations performed by the components of the image sensor 300 in combination with the above description. For brevity, only some main operations are described here. , the specific details will not be repeated.
  • the optoelectronic device 310 is used for exposing the same pixel position at least twice to obtain at least two image data, and the time of each exposure is different; or the optoelectronic device 310 is used for the same pixel position Exposure is performed once to obtain exposure data, and at least two analog-to-digital conversions are performed on the exposure data to obtain at least two image data, and the gain of each analog-to-digital conversion is different.
  • the computer program is executed when the encoding device 330 is executed to determine the second image based on the preset mapping relationship between the second image data and the first image data
  • the residual error corresponding to the data includes: representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derived image data; calculating the difference between the second image data and the derived image data The residual difference corresponding to the second image data is obtained; wherein, the preset mapping relationship is determined based on the ratio between the exposure times used in different exposures and the linearity of the image sensor , or, the preset mapping relationship is determined based on the ratio between the respective gains of different analog-to-digital conversions and the linearity of the image sensor.
  • the residual when both the first image data and the second image data are not zero or reach a limit maximum value, the residual is close to zero.
  • the interface device 340 first transmits the first image data to the image processor, and then transmits the first image data from the encoding device 330 obtains the compressed data and transmits the compressed data to the image processor.
  • the photoelectric device 310 is exposed twice for the same pixel position, and if the time of the first exposure is longer than the time of the second exposure, the first image data is obtained by long exposure If the time of the first exposure is shorter than the time of the second exposure, the first image data is the data obtained by the short exposure, and the second image The data is the data obtained by long exposure.
  • the photoelectric device 310 is exposed more than twice for the same pixel position, and: the first image data is the output data obtained after the first exposure, and the second image data is the rest or the first image data is part of all the output data obtained after each exposure, and the second image data is other part of the data.
  • the encoding device 330 is configured to perform difference encoding on the residual.
  • the encoding device 330 performs difference encoding on the residual to obtain compressed data, including: encoding previous residuals corresponding to one or more pixel positions before the pixel positions corresponding to the current residuals
  • the true value of the current residual is used as the predicted value of the current residual; the difference between the true value of the current residual and the predicted value is calculated as the error data; the positive value mapping is performed on the error data to obtain positive value data;
  • the positive value data is quantized to obtain quantized data; the quantized data is entropy encoded to obtain the compressed data.
  • the entropy encoding performed by the encoding device 330 on the quantized data includes Huffman encoding or Gromb encoding.
  • the image sensor does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the residual compressed data of the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding increased Image sensor complexity and power consumption.
  • FIG. 4 shows a schematic structural block diagram of an image processor 400 according to an embodiment of the present application.
  • the image processor 400 includes an interface device 410, a storage device 420 and a decoding device 430, wherein: the interface device 410 is configured to receive at least two image data output by the image sensor for the same pixel position, the at least The two image data include compressed data corresponding to the first image data and the second image data; the storage device 420 is used to store a computer program executed by the decoding device 430, and the computer program is executed by the decoding device 430.
  • the image processor 400 can be used to execute the data processing method 200 described above. Those skilled in the art can understand the operations performed by the components of the image processor 400 in combination with the above description. For brevity, only some of the operations are described here. The main operation, the specific details will not be repeated.
  • the preset mapping based on the first image data, the second image data and the first image data executed when the computer program is executed by the decoding device 430 and the decoded data to determine the second image data, including: mapping the first image data to derived data based on the preset mapping relationship, and calculating the difference between the derived data and the decoded data and obtain the second image data.
  • the preset mapping relationship is received by the interface device 410 from the image sensor and transmitted to the decoding device 430 .
  • the interface device 410 receives the first image data first, and then receives the compressed data.
  • the image processor receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
  • FIG. 5 shows a schematic structural block diagram of an electronic device 500 according to an embodiment of the present application.
  • the electronic device 500 may include an image sensor 510 and an image processor 520, wherein: the image sensor 510 may be the image sensor 300 according to the embodiment of the present application described above, and the image processor 520 may be It is the aforementioned image processor 400 according to the embodiment of the present application. That is, the electronic device 500 according to the embodiment of the present application can simultaneously implement the above data processing methods 100 and 200 .
  • the electronic device 500 may be various high-, middle- and low-end cameras, video cameras, as well as various mobile phones, drones, etc. that use the camera device.
  • FIG. 6 shows a schematic flowchart of a data processing method 600 according to still another embodiment of the present application.
  • the data processing method 600 may include the following steps:
  • step S610 the image sensor generates at least two pixel data for the same pixel position; wherein, the at least two pixel data includes the first image data and the compressed data obtained by compressing the residual corresponding to the second image data;
  • the residual is determined based on a preset mapping relationship between the second image data and the first image data.
  • step S620 the image sensor sends the at least two pixel data to the image processor.
  • the data processing method 600 is substantially the same as the data processing method 100 shown in the foregoing in conjunction with FIG. 1 , except that the data processing method 100 is described from the perspective of the internal implementation of the image sensor, and the data processing method 600 is Described from the perspective of the code stream.
  • the specific process of the data processing method 600 in combination with the foregoing description. For the sake of brevity, the specific process of the data processing method 600 is not repeated here, and only some main steps are described.
  • the first image data and the second image data in step S610 may be obtained by exposing the image sensor to the same pixel position at least twice, and each exposure time is different ; Or the first image data and the second image data in step S610 may be obtained by exposing the image sensor once for the same pixel position to obtain exposure data, and performing at least two analog-to-digital conversions on the exposure data to obtain exposure data. As a result, the gain of each analog-to-digital conversion is different.
  • the residual in step S610 may be determined by the following method: expressing the second image data as a function of the first image data based on a preset mapping relationship to obtain a derived image data; calculating the difference between the second image data and the derived image data to obtain a residual corresponding to the second image data; wherein, the preset mapping relationship is based on exposures respectively adopted for different exposures
  • the ratio between the time and the linearity of the image sensor is determined, or the preset mapping relationship is determined based on the ratio between the respective gains of different analog-to-digital conversions and the linearity of the image sensor.
  • the data processing method 600 does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the Residual compressed data of the original image data and the rest of the original image data, which can greatly reduce the amount of data transfer; also, because different image data at the same pixel location is still sent to the image processor, there is no need to perform pixel synthesis on the image sensor side , to avoid increasing the complexity and power consumption of the image sensor.
  • FIG. 7 shows a schematic flowchart of a data processing method 700 according to yet another embodiment of the present application. As shown in FIG. 7, the data processing method 700 may include the following steps:
  • step S710 the image processor receives at least two pixel data output from the image sensor for the same pixel position; wherein, the at least two pixel data includes the first image data, and the residuals corresponding to the second image data are processed compressed data obtained by compression; the residual is determined based on a preset mapping relationship between the second image data and the first image data.
  • step S720 the image processor obtains the pixel value of the pixel position based on the first image data and the compressed data.
  • the data processing method 700 is essentially the same as the data processing method 200 shown in the foregoing in conjunction with FIG. 2 , except that the data processing method 200 is described from the perspective of the internal implementation of the image processor, and the data processing method 700 is Described from the point of view of the code stream.
  • the specific process of the data processing method 700 in combination with the foregoing description. For the sake of brevity, the specific process of the data processing method 700 is not repeated here, and only some main steps are described.
  • the image processor obtaining the pixel value of the pixel position based on the first image data and the compressed data may include: the image processor converts the pixel value based on the preset mapping relationship The first image data is mapped to derived data, the sum of the derived data and the decoded data of the compressed data is calculated to obtain the second image data, and the first image data and the second image data are combined. The image data is fused to obtain the pixel value of the pixel position.
  • the data processing method receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
  • FIG. 8 shows a schematic structural block diagram of an image sensor 800 according to another embodiment of the present application.
  • the image sensor 800 includes a storage device 810, a processing device 820, and an interface device 830, wherein: the storage device 810 is used for storing a computer program executed by the processing device 820, and the computer program is executed by the processing device 820.
  • the processing device 820 is running, the following steps are performed: at least two pixel data are generated for the same pixel position; wherein, the at least two pixel data include the first image data, and the residual error corresponding to the second image data is compressed.
  • the image sensor 800 can be used to execute the data processing method 600 described above. Those skilled in the art can understand the operations performed by the components of the image sensor 800 in combination with the above description. For brevity, only some main operations are described here. , the specific details will not be repeated.
  • the image sensor 800 further includes an optoelectronic device (not shown), the optoelectronic device is used to obtain the first image data and the second image data, wherein: the optoelectronic device Expose the same pixel position at least twice to obtain the first image data and the second image data, and the time for each exposure is different; or the optoelectronic device is exposed to the same pixel position once to obtain exposure data, and the The exposure data is subjected to at least two analog-to-digital conversions to obtain the first image data and the second image data, and the gain of each analog-to-digital conversion is different.
  • the optoelectronic device is used to obtain the first image data and the second image data, wherein: the optoelectronic device Expose the same pixel position at least twice to obtain the first image data and the second image data, and the time for each exposure is different; or the optoelectronic device is exposed to the same pixel position once to obtain exposure data, and the The exposure data is subjected to
  • the residual is determined by: representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derived image data; calculating the The difference between the second image data and the derived image data obtains the residual corresponding to the second image data; wherein, the preset mapping relationship is based on the ratio between exposure times respectively adopted for different exposures and the linearity of the image sensor, or, the preset mapping relationship is determined based on the ratio between the respective gains of different analog-to-digital conversions and the linearity of the image sensor.
  • the image sensor does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the residual compressed data of the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding increased Image sensor complexity and power consumption.
  • FIG. 9 shows a schematic structural block diagram of an image processor 900 according to another embodiment of the present application.
  • the image processor 900 includes an interface device 910, a storage device 920 and a processing device 930, wherein: the interface device 910 is configured to receive at least two pixel data sent by the image sensor and output for the same pixel position; wherein , the at least two pixel data include first image data and compressed data obtained by compressing residuals corresponding to the second image data; the residuals are based on the second image data and the first image data
  • the storage device 920 is configured to store a computer program executed by the processing device 930, and the computer program executes the following steps when executed by the processing device 930: based on the first image data and the compressed data to obtain pixel values for the pixel locations.
  • the image processor 900 can be used to execute the data processing method 700 described above.
  • Those skilled in the art can understand the operations performed by the components of the image processor 900 in combination with the above description. For brevity, only some of the operations are described here. The main operation, the specific details will not be repeated.
  • the computer program that is executed by the processing device to obtain the pixel value of the pixel position based on the first image data and the compressed data includes: based on the preset The mapping relationship maps the first image data to derived data, calculates the sum of the derived data and the decoded data of the compressed data to obtain the second image data, and combines the first image data with the derived data.
  • the second image data is fused to obtain the pixel value of the pixel position.
  • the image processor receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
  • an electronic device which may include an image sensor (such as the aforementioned image sensor 800 ) and an image processor (such as the aforementioned image processor 900 ), the structure of which may be as follows shown in Figure 5. That is to say, the electronic device according to the embodiment of the present application can simultaneously implement the above data processing methods 600 and 700 .
  • the electronic device can be various high, middle and low-end cameras, video cameras, as well as various mobile phones, drones, etc. that use camera devices.
  • a computer-readable storage medium is also provided, where program instructions are stored on the computer-readable storage medium, and the program instructions are used to execute the present application when the program instructions are run by a computer or a processor Corresponding steps of the data processing method of the embodiment.
  • the computer-readable storage medium may include, for example, a memory card of a smartphone, a storage component of a tablet computer, a hard disk of a personal computer, a read only memory (ROM), an erasable programmable read only memory (EPROM), a portable compact disk Read only memory (CD-ROM), USB memory, or any combination of the above computer readable storage media.
  • the computer-readable storage medium can be any combination of one or more computer-readable storage media.
  • the data processing method, image sensor, image processor, and electronic device do not need to transmit different original image data of the same pixel position to the image processor to synthesize the pixel position by the image processor.
  • the final pixel value, but the residual compressed data of part of the original image data and the rest of the original image data is transmitted, which can greatly reduce the amount of data transmission; There is no need to perform pixel synthesis on the image sensor side, avoiding increasing the complexity and power consumption of the image sensor.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
  • the various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some modules according to the embodiments of the present application.
  • DSP digital signal processor
  • the present application can also be implemented as a program of apparatus (eg, computer programs and computer program products) for performing part or all of the methods described herein.
  • Such a program implementing the present application may be stored on a computer-readable storage medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

A data processing method, an image sensor, an image processor and an electronic device. The data processing method comprises: an image sensor obtaining at least two pieces of image data for the same pixel position, wherein the at least two pieces of image data comprise first image data and second image data (S110); on the basis of a preset mapping relationship between the second image data and the first image data, determining a residual error corresponding to the second image data (S120); performing compressed encoding on the residual error to obtain compressed data (S130); and taking both the first image data and the compressed data as pixel data at the pixel position, and transmitting same to an image processor (S140). By means of the method, there is no need to transmit different original image data at the same pixel position to an image processor to synthesize a final pixel value at the pixel position by the image processor, but rather some of the original image data and residual error compressed data of the remaining original image data are transmitted, such that a data transmission amount can be significantly reduced.

Description

数据处理方法、图像传感器、图像处理器和电子设备Data processing method, image sensor, image processor and electronic device
说明书manual
技术领域technical field
本申请总体上涉及图像采集和处理技术领域,更具体地涉及一种数据处理方法、图像传感器、图像处理器和电子设备。The present application generally relates to the technical field of image acquisition and processing, and more particularly to a data processing method, an image sensor, an image processor and an electronic device.
背景技术Background technique
动态范围是图像传感器的重要指标。动态范围通常定义为让图像传感器达到最大信号值时的亮度和图像传感器输出的信号值的幅度等于噪声信号幅度时的亮度这两者的比值。动态范围大的图像传感器能同时准确记录亮处和暗处的被摄对象。Dynamic range is an important metric for image sensors. Dynamic range is generally defined as the ratio of the brightness when the image sensor reaches its maximum signal value and the brightness when the amplitude of the signal value output by the image sensor equals the amplitude of the noise signal. An image sensor with a large dynamic range can accurately record both bright and dark subjects at the same time.
高动态范围传感器技术有很多种类,诸如数字覆盖(Digital Overlap,简称为DOL)技术和双转换增益(Dual Conversion Gain,简称为DCG)技术。其中,采用DOL技术的图像传感器,每个像素连续曝光两次,分别记为长曝光L信号、短曝光S信号,先后输出;接收到L信号和S信号的图像处理器利用图像处理算法将两个信号合成成为一个像素值。采用DCG技术的图像传感器,每个像素做两次模拟-数字转换,两次的转换的增益不一样,例如高增益时最终的像素值为HG,低增益时最终的像素值为LG;图像传感器先后输出HG信号和LG信号。接收到两种信号的图像处理器利用图像处理算法将两种信号合成成为一个像素值。上述两种技术带来的问题有一个共同的问题,就是发送数据量翻倍。在像素越来越多,帧率越来越高的趋势下,数据量翻倍是很难承受的。另外一种做法是在图像传感器内部将两种信号合成成为单个像素信号然后发送,这种方法增加图像传感器的复杂度和功耗,很多情况下是无法实现的。There are many types of high dynamic range sensor technologies, such as Digital Overlap (DOL for short) technology and Dual Conversion Gain (Dual Conversion Gain, DCG for short) technology. Among them, for the image sensor using DOL technology, each pixel is continuously exposed twice, which are recorded as long-exposure L signal and short-exposure S signal, which are output successively; the image processor that receives the L signal and the S signal uses an image processing algorithm to The signals are combined into a pixel value. Image sensors using DCG technology, each pixel performs two analog-to-digital conversions, and the gains of the two conversions are different. For example, the final pixel value is HG when the gain is high, and the final pixel value is LG when the gain is low; image sensor The HG signal and the LG signal are output successively. The image processor that receives the two signals uses an image processing algorithm to combine the two signals into a single pixel value. The problems brought about by the above two technologies have a common problem, that is, the amount of data sent is doubled. Under the trend of more and more pixels and higher frame rate, it is difficult to bear the doubling of the amount of data. Another method is to synthesize the two signals into a single pixel signal inside the image sensor and then send it. This method increases the complexity and power consumption of the image sensor, which cannot be realized in many cases.
发明内容SUMMARY OF THE INVENTION
为了解决上述问题,本申请提供一种数据处理方案,下面简要描述本申请提出的数据处理方案,更多细节将在后续结合附图在具体实施方式中加 以描述。In order to solve the above problems, the present application provides a data processing solution. The data processing solution proposed by the present application is briefly described below, and more details will be described in the specific embodiments in conjunction with the accompanying drawings in the following.
根据本申请一方面,提供了一种数据处理方法,所述方法包括:由图像传感器针对同一像素位置获得至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据;基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差;对所述残差进行压缩编码,得到压缩数据;将所述第一图像数据和所述压缩数据这两者作为所述像素位置处的像素数据传送至图像处理器。According to an aspect of the present application, there is provided a data processing method, the method comprising: obtaining at least two image data for the same pixel position by an image sensor, the at least two image data including first image data and second image data ; determine the residual corresponding to the second image data based on the preset mapping relationship between the second image data and the first image data; perform compression coding on the residual to obtain compressed data; Both the image data and the compressed data are transmitted to the image processor as pixel data at the pixel locations.
根据本申请另一方面,提供了一种数据处理方法,所述方法包括接收图像传感器针对同一像素位置输出的至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据对应的压缩数据;对所述压缩数据进行解码,得到解码数据;基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及所述解码数据确定所述第二图像数据;将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。According to another aspect of the present application, a data processing method is provided, the method includes receiving at least two image data output by an image sensor for the same pixel position, the at least two image data including a first image data and a second image compressed data corresponding to the data; decode the compressed data to obtain decoded data; determine based on the preset mapping relationship between the first image data, the second image data and the first image data, and the decoded data the second image data; fusing the first image data and the second image data to obtain the pixel value of the pixel position.
根据本申请再一方面,提供了一种图像传感器,所述图像传感器包括光电器件、存储器件、编码器件和接口器件,其中:所述光电器件用于针对同一像素位置获得至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据;所述存储器件用于存储由所述编码器件运行的计算机程序,所述计算机程序在被所述编码器件运行时执行以下步骤:基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差,并对所述残差进行压缩编码,得到压缩数据;所述接口器件用于将所述第一图像数据和所述压缩数据这两者作为所述像素位置处的像素数据传送至图像处理器。According to yet another aspect of the present application, an image sensor is provided, the image sensor includes an optoelectronic device, a storage device, an encoding device and an interface device, wherein: the optoelectronic device is used to obtain at least two image data for the same pixel position, The at least two image data includes first image data and second image data; the storage device is used for storing a computer program executed by the encoding device, the computer program executing the following steps when executed by the encoding device : determine the residual corresponding to the second image data based on the preset mapping relationship between the second image data and the first image data, and perform compression coding on the residual to obtain compressed data; the interface device for transmitting both the first image data and the compressed data to an image processor as pixel data at the pixel location.
根据本申请又一方面,提供了一种图像处理器,所述图像处理器包括接口器件、存储器件和解码器件,其中:所述接口器件用于接收图像传感器针对同一像素位置输出的至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据对应的压缩数据;所述存储器件用于存储由所述解码器件运行的计算机程序,所述计算机程序在被所述解码器件运行时执行以下步骤:对所述压缩数据进行解码,得到解码数据;基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及 所述解码数据确定所述第二图像数据;将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。According to yet another aspect of the present application, an image processor is provided, the image processor includes an interface device, a storage device and a decoding device, wherein: the interface device is configured to receive at least two output from an image sensor for the same pixel position image data, the at least two image data include compressed data corresponding to the first image data and the second image data; the storage device is used for storing a computer program executed by the decoding device, and the computer program is executed by the decoding device. When the decoding device is running, the following steps are performed: decoding the compressed data to obtain decoded data; based on the first image data, the preset mapping relationship between the second image data and the first image data, and the decoding The data determines the second image data; the first image data and the second image data are fused to obtain the pixel value of the pixel position.
根据本申请再一方面,提供了一种数据处理方法,所述方法包括:图像传感器针对同一像素位置生成至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;所述图像传感器向图像处理器发送所述至少两个像素数据。According to yet another aspect of the present application, a data processing method is provided, the method comprising: an image sensor generating at least two pixel data for the same pixel position; wherein the at least two pixel data includes first image data, and Compressed data obtained by compressing the residual corresponding to the second image data; the residual is determined based on the preset mapping relationship between the second image data and the first image data; the image sensor sends the image processor The at least two pixel data are sent.
根据本申请又一方面,提供了一种数据处理方法,所述方法包括:图像处理器接收图像传感器发送的针对同一像素位置输出的至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;所述图像处理器基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值。According to yet another aspect of the present application, there is provided a data processing method, the method comprising: an image processor receiving at least two pixel data output from an image sensor for the same pixel position; wherein the at least two pixel data includes the first image data, and compressed data obtained by compressing the residual corresponding to the second image data; the residual is determined based on the preset mapping relationship between the second image data and the first image data; the The image processor obtains pixel values of the pixel positions based on the first image data and the compressed data.
根据本申请再一方面,提供了一种图像传感器,所述图像传感器包括存储器件、处理器件和接口器件,其中:所述存储器件用于存储由所述处理器件运行的计算机程序,所述计算机程序在被所述处理器件运行时执行以下步骤:针对同一像素位置生成至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;所述接口器件用于向图像处理器发送所述至少两个像素数据。According to still another aspect of the present application, an image sensor is provided, the image sensor includes a storage device, a processing device and an interface device, wherein: the storage device is used for storing a computer program executed by the processing device, the computer When the program is run by the processing device, the following steps are performed: generating at least two pixel data for the same pixel position; wherein the at least two pixel data includes the first image data, and performing the following steps on the residual corresponding to the second image data compressed data obtained by compression; the residual is determined based on the preset mapping relationship between the second image data and the first image data; the interface device is configured to send the at least two pixels to the image processor data.
根据本申请又一方面,提供了一种图像处理器,所述图像处理器包括接口器件、存储器件和处理器件,其中:所述接口器件用于接收图像传感器发送的针对同一像素位置输出的至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;所述存储器件用于存储由所述处理器件运行的计算机程序,所述计算机程序在被所述处理器件运行时执行以下步骤:基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值。According to yet another aspect of the present application, an image processor is provided, the image processor includes an interface device, a storage device and a processing device, wherein: the interface device is configured to receive at least an output image sent by an image sensor for the same pixel position Two pixel data; wherein, the at least two pixel data include first image data and compressed data obtained by compressing residuals corresponding to the second image data; the residuals are based on the second image data and the The preset mapping relationship of the first image data is determined; the storage device is configured to store a computer program executed by the processing device, and the computer program executes the following steps when executed by the processing device: based on the The first image data and the compressed data obtain pixel values at the pixel locations.
根据本申请再一方面,提供了一种电子设备,所述电子设备包括图像传感器和图像处理器,其中:所述图像传感器包括上述图像传感器;所述图像处理器包括上述图像处理器。According to yet another aspect of the present application, an electronic device is provided, the electronic device includes an image sensor and an image processor, wherein: the image sensor includes the above-mentioned image sensor; and the image processor includes the above-mentioned image processor.
根据本申请又一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质包括指令,当其在计算机上运行时,使得所述计算机执行上述数据处理方法。According to yet another aspect of the present application, a computer-readable storage medium is provided, the computer-readable storage medium comprising instructions, when executed on a computer, cause the computer to execute the above data processing method.
根据本申请实施例的数据处理方法、图像传感器、图像处理器和电子设备无需将同一像素位置的不同原始图像数据均传送至图像处理器以由图像处理器合成该像素位置的最终像素值,而是传送部分原始图像数据以及其余原始图像数据的残差压缩数据,这可大大减小数据传输量;而且,由于仍是向图像处理器传送同一像素位置的不同图像数据,因而无需在图像传感器端执行像素合成,避免增加图像传感器的复杂度和功耗。The data processing method, image sensor, image processor and electronic device according to the embodiments of the present application do not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but It is the residual compressed data that transmits part of the original image data and the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need for the image sensor side. Perform pixel synthesis without adding complexity and power consumption to the image sensor.
附图说明Description of drawings
图1示出根据本申请一个实施例的数据处理方法的示意性流程图。FIG. 1 shows a schematic flowchart of a data processing method according to an embodiment of the present application.
图2示出根据本申请另一个实施例的数据处理方法的示意性流程图。FIG. 2 shows a schematic flowchart of a data processing method according to another embodiment of the present application.
图3示出根据本申请一个实施例的图像传感器的示意性结构框图。FIG. 3 shows a schematic structural block diagram of an image sensor according to an embodiment of the present application.
图4示出根据本申请一个实施例的图像处理器的示意性结构框图。FIG. 4 shows a schematic structural block diagram of an image processor according to an embodiment of the present application.
图5示出根据本申请实施例的电子设备的示意性结构框图。FIG. 5 shows a schematic structural block diagram of an electronic device according to an embodiment of the present application.
图6示出根据本申请再一个实施例的数据处理方法的示意性流程图。FIG. 6 shows a schematic flowchart of a data processing method according to still another embodiment of the present application.
图7示出根据本申请又一个实施例的数据处理方法的示意性流程图。FIG. 7 shows a schematic flowchart of a data processing method according to yet another embodiment of the present application.
图8示出根据本申请另一个实施例的图像传感器的示意性结构框图。FIG. 8 shows a schematic structural block diagram of an image sensor according to another embodiment of the present application.
图9示出根据本申请另一个实施例的图像处理器的示意性结构框图。FIG. 9 shows a schematic structural block diagram of an image processor according to another embodiment of the present application.
具体实施方式Detailed ways
为了使得本申请的目的、技术方案和优点更为明显,下面将参照附图详细描述根据本申请的示例实施例。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是本申请的全部实施例,应理解,本申请不受这里描述的示例实施例的限制。In order to make the objectives, technical solutions and advantages of the present application more apparent, the exemplary embodiments according to the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein.
在下文的描述中,给出了大量具体的细节以便提供对本申请更为彻底 的理解。然而,对于本领域技术人员而言显而易见的是,本申请可以无需一个或多个这些细节而得以实施。在其他的例子中,为了避免与本申请发生混淆,对于本领域公知的一些技术特征未进行描述。In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced without one or more of these details. In other instances, some technical features known in the art have not been described in order to avoid confusion with the present application.
应当理解的是,本申请能够以不同形式实施,而不应当解释为局限于这里提出的实施例。相反地,提供这些实施例将使公开彻底和完全,并且将本申请的范围完全地传递给本领域技术人员。It should be understood that the application may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of this application to those skilled in the art.
在此使用的术语的目的仅在于描述具体实施例并且不作为本申请的限制。在此使用时,单数形式的“一”、“一个”和“所述/该”也意图包括复数形式,除非上下文清楚指出另外的方式。还应明白术语“组成”和/或“包括”,当在该说明书中使用时,确定所述特征、整数、步骤、操作、元件和/或部件的存在,但不排除一个或更多其它的特征、整数、步骤、操作、元件、部件和/或组的存在或添加。在此使用时,术语“和/或”包括相关所列项目的任何及所有组合。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a," "an," and "the/the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the terms "compose" and/or "include", when used in this specification, identify the presence of stated features, integers, steps, operations, elements and/or components, but do not exclude one or more other The presence or addition of features, integers, steps, operations, elements, parts and/or groups. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
为了彻底理解本申请,将在下列的描述中提出详细的步骤以及详细的结构,以便阐释本申请提出的技术方案。本申请的较佳实施例详细描述如下,然而除了这些详细描述外,本申请还可以具有其他实施方式。For a thorough understanding of the present application, detailed steps and detailed structures will be presented in the following description, so as to explain the technical solutions proposed by the present application. The preferred embodiments of the present application are described in detail below, however, the present application may have other embodiments in addition to these detailed descriptions.
图1示出了根据本申请实施例的数据处理方法100的示意性流程图。如图1所示,根据本申请实施例的数据处理方法100可以包括如下步骤:FIG. 1 shows a schematic flowchart of a data processing method 100 according to an embodiment of the present application. As shown in FIG. 1 , the data processing method 100 according to the embodiment of the present application may include the following steps:
在步骤S110,由图像传感器针对同一像素位置获得至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据。In step S110, at least two image data including the first image data and the second image data are obtained by the image sensor for the same pixel position.
在步骤S120,基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差。In step S120, a residual corresponding to the second image data is determined based on a preset mapping relationship between the second image data and the first image data.
在步骤S130,对所述残差进行压缩编码,得到压缩数据;In step S130, compression coding is performed on the residual to obtain compressed data;
在步骤S140,将所述第一图像数据和所述压缩数据这两者作为所述像素位置处的像素数据传送至图像处理器。In step S140, both the first image data and the compressed data are transmitted to an image processor as pixel data at the pixel positions.
在本申请的实施例中,图像传感器针对同一像素位置获得至少两个图像数据,即第一图像数据和第二图像数据,将第一图像数据和第二图像数据的残差压缩数据传送至图像处理器,以用于由图像处理器恢复出第二图像数据后,结合第一图像数据确定该像素位置最终的像素值。在本申请的实施例中,传送至图像处理器的数据包括两类:一类是原始图像数据(即 第一图像数据),一类是经处理的图像数据(即第二图像数据的残差被压缩后得到的数据);其中,第二图像数据的残差是根据第二图像数据与第一图像数据的预设映射关系而确定的,压缩数据是对该残差进行压缩编码而得到的;图像处理器接收到这两类数据后,可以根据该预设映射关系以及对应的解码方式解码得到第二图像数据,从而结合第一图像数据确定该像素位置最终的像素值。因此,根据本申请实施例的数据处理方法无需将同一像素位置的不同原始图像数据均传送至图像处理器以由图像处理器合成该像素位置的最终像素值,而是传送部分原始图像数据以及其余原始图像数据的残差压缩数据,这可大大减小数据传输量;而且,由于仍是向图像处理器传送同一像素位置的不同图像数据,因而无需在图像传感器端执行像素合成,避免增加图像传感器的复杂度和功耗。In the embodiment of the present application, the image sensor obtains at least two image data for the same pixel position, that is, the first image data and the second image data, and transmits the residual compressed data of the first image data and the second image data to the image The processor is configured to determine the final pixel value of the pixel position in combination with the first image data after the second image data is recovered by the image processor. In the embodiment of the present application, the data transmitted to the image processor includes two types: one is the original image data (ie the first image data), and the other is the processed image data (ie the residual of the second image data) The data obtained after being compressed); wherein, the residual of the second image data is determined according to the preset mapping relationship between the second image data and the first image data, and the compressed data is obtained by compressing and encoding the residual. ; After the image processor receives the two types of data, it can decode and obtain the second image data according to the preset mapping relationship and the corresponding decoding method, so as to determine the final pixel value of the pixel position in combination with the first image data. Therefore, the data processing method according to the embodiment of the present application does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the rest Residual compressed data of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding adding image sensors. complexity and power consumption.
在本申请的实施例中,图像传感器可以针对同一像素位置曝光至少两次以得到至少两个图像数据,每次曝光的时间不同。在另一实施例中,图像传感器可以针对同一像素位置曝光一次得到曝光数据,并对所述曝光数据进行至少两次模数转换以得到至少两个图像数据,每次模数转换的增益不同。在其他实施例中,图像传感器还可以通过其他合适的方式针对同一像素位置获得至少两个图像数据。在本申请的实施例中,像素位置可以是指一个像素单元,也可以是一个像素行,或者其他与像素相关的位置。例如,可以以行为单位来进行上述曝光,例如对于每一行像素先后进行长曝光和短曝光,然后以行为单位先后发送给图像处理器,以满足时序控制的需要。类似地,模数转换后得到的图像数据也可以以行为单位或者以帧为单元输出至图像处理器,以满足时序控制的需要。In the embodiment of the present application, the image sensor may be exposed at least twice for the same pixel position to obtain at least two image data, and the time of each exposure is different. In another embodiment, the image sensor may obtain exposure data by exposing the same pixel position once, and perform at least two analog-to-digital conversions on the exposure data to obtain at least two image data, and the gain of each analog-to-digital conversion is different. In other embodiments, the image sensor may also obtain at least two image data for the same pixel position in other suitable manners. In the embodiments of the present application, a pixel position may refer to a pixel unit, or a pixel row, or other positions related to pixels. For example, the above exposure can be performed in row units, for example, long exposure and short exposure are successively performed for each row of pixels, and then sequentially sent to the image processor in row units to meet the needs of timing control. Similarly, the image data obtained after analog-to-digital conversion can also be output to the image processor in units of lines or in units of frames to meet the needs of timing control.
下面以针对同一像素位置曝光至少两次为例来描述针对同一像素位置得到的至少两个图像数据。在本申请的实施例中,当针对同一像素位置曝光两次时,得到两个图像数据,分别是第一图像数据和第二图像数据,其中第一图像数据为第一次曝光后得到的图像数据,第二图像数据为第二次曝光后得到的图像数据。例如,如果第一次曝光的时间比第二次曝光的时间长,则第一图像数据为长曝光得到的数据,第二图像数据为短曝光得到的数据;反之,如果第一次曝光的时间比第二次曝光的时间短,则第一图像数据为短曝光得到的数据,第二图像数据为长曝光得到的数据。The at least two image data obtained for the same pixel position are described below by taking at least two exposures for the same pixel position as an example. In the embodiment of the present application, when the same pixel position is exposed twice, two image data are obtained, namely the first image data and the second image data, wherein the first image data is the image obtained after the first exposure data, the second image data is the image data obtained after the second exposure. For example, if the time of the first exposure is longer than the time of the second exposure, the first image data is the data obtained by the long exposure, and the second image data is the data obtained by the short exposure; conversely, if the time of the first exposure is If the time of the second exposure is shorter than that of the second exposure, the first image data is the data obtained by the short exposure, and the second image data is the data obtained by the long exposure.
在本申请的实施例中,当针对同一像素位置曝光两次以上时,第一图像数据可以为第一次曝光后得到的输出数据,第二图像数据为其余次曝光后分别得到的输出数据。在该实施例中,除了第一次曝光后得到的数据作为第一图像数据之外,其他次曝光得到的数据都作为第二图像数据,这意味着步骤S120中确定第二图像数据对应的残差时均依赖于第一次曝光后得到的数据。例如,当针对同一像素位置曝光三次时,第一图像数据为第一次曝光后得到的输出数据,例如称为A数据,第二次曝光后得到的数据和第三次曝光后得到的数据均为第二图像数据,为了彼此区分,可以将第二次曝光后得到的数据和第三次曝光后得到的数据分别称为B数据和C数据。那么,B数据的残差可以根据A数据与B数据之间的预设映射关系确定;C数据的残差可以根据A数据与C数据之间的预设映射关系确定。其中,关于预设映射关系在下文中将进一步描述。In the embodiment of the present application, when the same pixel position is exposed more than twice, the first image data may be the output data obtained after the first exposure, and the second image data may be the output data obtained after the remaining exposures. In this embodiment, except the data obtained after the first exposure is used as the first image data, the data obtained from other exposures are used as the second image data, which means that the residual data corresponding to the second image data is determined in step S120 The difference time depends on the data obtained after the first exposure. For example, when exposing the same pixel position three times, the first image data is the output data obtained after the first exposure, such as the A data, the data obtained after the second exposure and the data obtained after the third exposure are both For the second image data, in order to distinguish from each other, the data obtained after the second exposure and the data obtained after the third exposure may be referred to as B data and C data, respectively. Then, the residual of the B data may be determined according to the preset mapping relationship between the A data and the B data; the residual of the C data may be determined according to the preset mapping relationship between the A data and the C data. The preset mapping relationship will be further described below.
在本申请的另一实施例中,当针对同一像素位置曝光两次以上时,第一图像数据也可以为各次曝光后得到的所有输出数据中的部分数据,第二图像数据为其他部分数据。在该实施例中,多次曝光得到的数据中,部分数据作为第一图像数据,其余部分数据作为第二图像数据。例如,当针对同一像素位置曝光四次时,第一图像数据例如为第一次曝光和第二次曝光后分别得到的输出数据,为了彼此区分,例如分别称为A数据和B数据,第三次曝光后得到的数据和第四次曝光后得到的数据均为第二图像数据,为了彼此区分,可以将第三次曝光后得到的数据和第四次曝光后得到的数据分别称为C数据和D数据。那么,C数据的残差例如可以根据A数据与C数据之间的预设映射关系确定,或者可以根据B数据与C数据之间的预设映射关系确定;D数据的残差可以根据A数据与D数据之间的预设映射关系确定,或者可以根据B数据与D数据之间的预设映射关系确定。In another embodiment of the present application, when the same pixel position is exposed more than twice, the first image data may also be part of all output data obtained after each exposure, and the second image data may be other part of the data . In this embodiment, among the data obtained by multiple exposures, part of the data is used as the first image data, and the remaining part of the data is used as the second image data. For example, when exposures are made for the same pixel position four times, the first image data is, for example, the output data obtained after the first exposure and the second exposure, respectively. The data obtained after the first exposure and the data obtained after the fourth exposure are both the second image data. In order to distinguish from each other, the data obtained after the third exposure and the data obtained after the fourth exposure can be called C data respectively. and D data. Then, the residual of the C data can be determined according to the preset mapping relationship between the A data and the C data, or can be determined according to the preset mapping relationship between the B data and the C data; the residual of the D data can be determined according to the A data The preset mapping relationship with the D data is determined, or may be determined according to the preset mapping relationship between the B data and the D data.
在本申请的实施例中,不管是利用多次曝光(每次曝光时间不同)来针对同一像素位置得到多个图像数据,还是利用一次曝光多次模数转换(每次模数转换增益不同)来针对同一像素位置得到多个图像数据,最终得到的图像数据之间是可以有确定的映射关系的。例如,采用DOL、DCG等针对相同像素位置输出多个不同幅度信号的高动态范围传感器技术时,记当前像素位置输出两个不同的像素值(即图像数据),分别为S和L。在S 和L都没有达到0或者最大数值时,二者之间的数字关系是可以确定的。该关系可以由图像传感器硬件设计决定(在DCG模式时,诸如模数转换增益)、或者由控制程序指定的图像传感器曝光参数(在DOL模式时,诸如曝光时间)决定。通常二者为大致线性关系,比如L=4*S(该表达式中以两次曝光时间之间的比例为4为例来描述,即长曝光时间是短曝光时间的4倍),在实际情况下有一些偏差。在实际应用中,可以通过遍历不同的S信号所对应的L信号,得到映射关系L=M(S)。因此,在本申请的实施例中,可以预先确定针对同一像素位置得到多个图像数据的方式,并据此进一步确定得到的图像数据之间的映射关系,如前面示例中所述的。In the embodiments of the present application, whether multiple exposures (with different exposure times for each time) are used to obtain multiple image data for the same pixel position, or multiple analog-to-digital conversions are used for one exposure (each time the gain of analog-to-digital conversion is different) To obtain multiple image data for the same pixel position, there can be a definite mapping relationship between the finally obtained image data. For example, when using DOL, DCG and other high dynamic range sensor technologies that output multiple signals of different amplitudes for the same pixel position, record the current pixel position and output two different pixel values (ie image data), which are S and L respectively. When neither S nor L reaches 0 or the maximum value, the numerical relationship between the two can be determined. This relationship may be determined by image sensor hardware design (such as analog-to-digital conversion gain in DCG mode), or by image sensor exposure parameters specified by the control program (such as exposure time in DOL mode). Usually the two have a roughly linear relationship, such as L=4*S (in this expression, the ratio between two exposure times is 4 as an example to describe, that is, the long exposure time is 4 times the short exposure time). There are some deviations in the case. In practical applications, the mapping relationship L=M(S) can be obtained by traversing the L signals corresponding to different S signals. Therefore, in the embodiments of the present application, the manner of obtaining multiple image data for the same pixel position may be predetermined, and accordingly, the mapping relationship between the obtained image data may be further determined, as described in the previous example.
基于此,步骤S120的基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差,可以包括:基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差。在前述的示例中,第一图像数据即为S,第二图像数据即为L,可以根据映射关系M,将L表示为M(S)(即衍生图像数据),然后计算残差D=L-M(S),也就是L信号与M(S)的差值。Based on this, determining the residual corresponding to the second image data based on the preset mapping relationship between the second image data and the first image data in step S120 may include: mapping the second image data based on the preset mapping relationship The image data is expressed as a function of the first image data to obtain derived image data; the difference between the second image data and the derived image data is calculated to obtain a residual corresponding to the second image data. In the foregoing example, the first image data is S, and the second image data is L. According to the mapping relationship M, L can be expressed as M(S) (ie, the derived image data), and then the residual D=L-M is calculated. (S), which is the difference between the L signal and M(S).
在本申请的实施例中,上述映射关系一般在第一图像数据和第二图像数据这两者均不为零值或者均未达到极限最大值时成立,因此,在第一图像数据和第二图像数据这两者均不为零值或者均未达到极限最大值时,D=L-M(S)信号数值非常接近0,非常有利于进行压缩。当第一图像数据和第二图像数据这两者中的任一者为零值或者达到极限最大值时,D=L-M(S)信号数值则不接近0,压缩后的数据会复杂一些。整体上,由于在大多数情况下均能满足L=M(S),因此整体上能够实现较高的压缩率,如下文所述的。In the embodiments of the present application, the above-mentioned mapping relationship is generally established when both the first image data and the second image data are not zero or have not reached the limit maximum value. When both of the image data are not zero or have not reached the limit maximum value, the value of the D=L-M(S) signal is very close to 0, which is very beneficial for compression. When either of the first image data and the second image data is zero or reaches the limit maximum value, the value of the D=L-M(S) signal is not close to 0, and the compressed data will be more complicated. Overall, since L=M(S) can be satisfied in most cases, a higher compression ratio can be achieved overall, as described below.
在本申请的实施例中,在步骤S120得到残差后,对该残差进行编码得到压缩数据,然后将第一图像数据和该压缩数据作为该像素位置处的像素数据传送至图像处理器,如前文所述的。在前述的示例中,残差D=L-M(S),由于在大多数情况下L=M(S),即D=L-M(S)信号数值非常接近0,因此,D与L信号相比幅度小很多,而且更加集中,利于进行压缩。将压缩后的数据传送至图像处理器,而不是直接发送数据L,可以大大减少传 输的数据量。此外,可以将第一图像数据和压缩数据一起发送至图像处理器,也可以在得到第一图像数据后,先将第一图像数据传送至图像处理器,再计算得到压缩数据并传送至图像处理器。In the embodiment of the present application, after the residual is obtained in step S120, the residual is encoded to obtain compressed data, and then the first image data and the compressed data are transmitted to the image processor as pixel data at the pixel position, as mentioned earlier. In the previous example, the residual D=L-M(S), since in most cases L=M(S), ie D=L-M(S), the signal value is very close to 0, so the magnitude of D is compared with the L signal. Much smaller and more concentrated for compression. Sending the compressed data to the image processor, rather than sending the data L directly, can greatly reduce the amount of data transferred. In addition, the first image data and the compressed data can be sent to the image processor together, or after the first image data is obtained, the first image data can be sent to the image processor, and then the compressed data can be calculated and sent to the image processor. device.
在一个示例中,对残差进行编码可以包括:对残差进行差值编码(即Differential Pulse code modulation,简称为DPCM编码)。具体地,对所述残差进行差值编码,得到压缩数据,可以包括:将当前残差对应的像素位置之前的一个或多个像素位置对应的先前残差的真实值作为当前残差的预测值;计算当前残差的真实值与所述预测值之间的差值作为误差数据;对所述误差数据进行正值映射,得到正值数据;对所述正值数据进行量化,得到量化后的数据;对所述量化后的数据进行熵编码,得到所述压缩数据。在一个示例中,对所述量化后的数据进行熵编码可以包括:对所述量化后的数据进行霍夫曼编码或者格伦布编码。In one example, encoding the residual may include: performing difference encoding on the residual (ie, Differential Pulse code modulation, DPCM encoding for short). Specifically, performing difference encoding on the residual to obtain compressed data may include: using the true value of the previous residual corresponding to one or more pixel positions before the pixel position corresponding to the current residual as the prediction of the current residual Calculate the difference between the true value of the current residual and the predicted value as error data; perform positive mapping on the error data to obtain positive data; quantify the positive data to obtain a quantized data; entropy encoding is performed on the quantized data to obtain the compressed data. In one example, the entropy encoding of the quantized data may include: Huffman encoding or Gromb encoding of the quantized data.
下面以更详细的示例来描述上述编码过程。以N个(例如N=8)相邻像素为单位,对于每个像素,通过前m个(例如m=4)像素的数值预测当前像素,如下面的公式所表示的:The above encoding process is described below with a more detailed example. Taking N (eg, N=8) adjacent pixels as a unit, for each pixel, the current pixel is predicted by the numerical value of the first m (eg, m=4) pixels, as expressed by the following formula:
Figure PCTCN2021089069-appb-000001
Figure PCTCN2021089069-appb-000001
其中,
Figure PCTCN2021089069-appb-000002
为当前残差的预测值,x 0、x 1、x m-1是当前残差对应的像素位置之前的m个像素位置对应的先前残差的真实值,a 0、a 1、…、a m-1为预定义的系数(例:a 0=a 1=a 2=a 3=0.25)。
in,
Figure PCTCN2021089069-appb-000002
is the predicted value of the current residual, x 0 , x 1 , x m-1 are the real values of the previous residual corresponding to m pixel positions before the pixel position corresponding to the current residual, a 0 , a 1 , ..., a m-1 is a predefined coefficient (eg: a 0 =a 1 =a 2 =a 3 =0.25).
误差数据e m为当前残差的真实值与所述预测值之间的差值,即: The error data em is the difference between the actual value of the current residual and the predicted value, namely:
Figure PCTCN2021089069-appb-000003
Figure PCTCN2021089069-appb-000003
对误差数据进行正值映射,得到正值数据e′ m,正值映射过程即: The positive value mapping is performed on the error data to obtain the positive value data e' m . The positive value mapping process is:
Figure PCTCN2021089069-appb-000004
Figure PCTCN2021089069-appb-000004
对正值数据e′ m进行量化,即: Quantize the positive data e'm , that is:
Figure PCTCN2021089069-appb-000005
Figure PCTCN2021089069-appb-000005
其中,q为预定义的量化系数,例如q=2。Wherein, q is a predefined quantization coefficient, for example, q=2.
最后,对e q进行熵编码,得到压缩数据。 Finally, entropy encoding is performed on e q to obtain compressed data.
在本申请的实施例中,熵编码采用霍夫曼编码,也就是通过查表法使 用变长编码表对数值进行编码。在其他实施例中,也可以使用其它熵编码技术,如格伦布编码等。此外,前述的预定义参数,诸如映射关系L=M(S)、DPCM编码方案、相邻像素分组包含像素个数N、预测当前像素数值用到前面像素个数m、量化系数q、熵编码码表(如霍夫曼编码使用的霍夫曼码表),都可以由图像传感器控制程序指定存入图像传感器。同时,图像传感器控制程序可以将相同参数通知图像处理器,用以重建压缩前的L信号(即第二图像数据)。In the embodiments of the present application, Huffman coding is used for entropy coding, that is, a variable-length coding table is used to encode numerical values by using a table look-up method. In other embodiments, other entropy coding techniques, such as Glenbow coding, may also be used. In addition, the aforementioned predefined parameters, such as the mapping relationship L=M(S), the DPCM coding scheme, the number N of pixels included in the adjacent pixel group, the number m of previous pixels used to predict the current pixel value, the quantization coefficient q, the entropy coding The code table (such as the Huffman code table used by Huffman coding) can be specified and stored in the image sensor by the image sensor control program. At the same time, the image sensor control program can notify the image processor of the same parameters to reconstruct the L signal before compression (ie, the second image data).
基于上面的描述,根据本申请实施例的数据处理方法无需将同一像素位置的不同原始图像数据均传送至图像处理器以由图像处理器合成该像素位置的最终像素值,而是传送部分原始图像数据以及其余原始图像数据的残差压缩数据,这可大大减小数据传输量;而且,由于仍是向图像处理器传送同一像素位置的不同图像数据,因而无需在图像传感器端执行像素合成,避免增加图像传感器的复杂度和功耗。Based on the above description, the data processing method according to the embodiment of the present application does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the residual compressed data of the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding Increase the complexity and power consumption of the image sensor.
以上示例性地示出了根据本申请一个实施例的数据处理方法100,其是站在图像传感器的角度来描述的,可以由图像传感器来执行。下面结合图2描述根据本申请另一实施例的数据处理方法200,其是站在图像处理器的角度来描述的,可以由图像处理器来执行,且数据处理方法200是与数据处理方法100相对应的。如图2所示,数据处理方法200可以包括如下步骤:The above exemplarily shows the data processing method 100 according to an embodiment of the present application, which is described from the perspective of an image sensor, and can be executed by the image sensor. The following describes a data processing method 200 according to another embodiment of the present application with reference to FIG. 2 , which is described from the perspective of an image processor and can be executed by an image processor, and the data processing method 200 is the same as the data processing method 100 Corresponding. As shown in FIG. 2, the data processing method 200 may include the following steps:
在步骤S210,接收图像传感器针对同一像素位置输出的至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据对应的压缩数据。In step S210, at least two image data output by the image sensor for the same pixel position are received, where the at least two image data include compressed data corresponding to the first image data and the second image data.
在步骤S220,对所述压缩数据进行解码,得到解码数据;In step S220, the compressed data is decoded to obtain decoded data;
在步骤S230,基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及所述解码数据确定所述第二图像数据;In step S230, the second image data is determined based on the first image data, a preset mapping relationship between the second image data and the first image data, and the decoded data;
在步骤S240,将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。In step S240, the first image data and the second image data are fused to obtain the pixel value of the pixel position.
在本申请的实施例中,数据处理方法200是图像处理器在接收到图像传感器经过数据处理方法100后得到的同一像素位置的不同图像数据后进行的数据处理。具体地,在接收到第一图像数据和第二图像数据对应的压 缩数据后(第一图像数据和该压缩数据可以一并从图像传感器接收,也可先接收到第一图像数据,再接收到压缩数据,取决于图像传感器的发送情况),对该压缩数据解码(解码方式与编码方式对应,与解码相关的参数可由图像传感器发送至图像处理器,也可提前存储在图像处理器中);解码后得到的解码数据即为数据处理方法100中的残差数据(诸如前文示例中的D);然后,基于预设映射关系(诸如前文示例中的M)用第一图像数据(诸如前文示例中的S)表示第二图像数据L,即第二图像数据的衍生图像数据(诸如前文示例中的M(S)),该衍生图像数据与残差数据(即解码数据)的和即为第二图像数据(L=D+M(S));在得到第二图像数据本身之后,将第一图像数据与第二图像数据这两者融合(诸如求平均值、加权平均值或者其他图像处理算法),即可得到该像素位置的像素值。In the embodiment of the present application, the data processing method 200 is the data processing performed by the image processor after receiving different image data of the same pixel position obtained by the image sensor after passing through the data processing method 100 . Specifically, after receiving the compressed data corresponding to the first image data and the second image data (the first image data and the compressed data may be received from the image sensor together, or the first image data may be received first, and then received Compressed data, depending on the sending situation of the image sensor), decode the compressed data (the decoding method corresponds to the encoding method, and the parameters related to decoding can be sent by the image sensor to the image processor, or can be stored in the image processor in advance); The decoded data obtained after decoding is the residual data in the data processing method 100 (such as D in the foregoing example); then, based on the preset mapping relationship (such as M in the foregoing example), the first image data (such as S) in the second image data L, that is, the derived image data of the second image data (such as M(S) in the previous example), the sum of the derived image data and the residual data (ie the decoded data) is the first Two image data (L=D+M(S)); after obtaining the second image data itself, fuse both the first image data and the second image data (such as averaging, weighted averaging, or other image processing algorithm), you can get the pixel value of the pixel position.
基于上面的描述,根据本申请实施例的数据处理方法从图像传感器接收针对同一像素位置的部分原始图像数据以及其余原始图像数据的残差压缩数据,可大大减小数据传输量。Based on the above description, the data processing method according to the embodiment of the present application receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
以上示例性地描述了根据本申请实施例的数据处理方法,下面结合图3和图4描述执行上述方法的装置。The data processing method according to the embodiment of the present application has been exemplarily described above, and the apparatus for executing the above method will be described below with reference to FIG. 3 and FIG. 4 .
图3示出了根据本申请实施例的图像传感器300的示意性结构框图。如图3所示,图像传感器300包括光电器件310、存储器件320、编码器件330和接口器件340,其中:所述光电器件310用于针对同一像素位置获得至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据;所述存储器件320用于存储由所述编码器件330运行的计算机程序,所述计算机程序在被所述编码器件330运行时执行以下步骤:基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差,并对所述残差进行压缩编码,得到压缩数据;所述接口器件340用于将所述第一图像数据和所述压缩数据这两者作为所述像素位置处的像素数据传送至图像处理器。根据本申请实施例的图像传感器300可以用于执行前文所述的数据处理方法100,本领域技术人员可以结合前文描述理解图像传感器300各部件执行的操作,为了简洁,此处仅描述一些主要操作,具体细节不再赘述。FIG. 3 shows a schematic structural block diagram of an image sensor 300 according to an embodiment of the present application. As shown in FIG. 3 , the image sensor 300 includes an optoelectronic device 310, a storage device 320, an encoding device 330 and an interface device 340, wherein: the optoelectronic device 310 is used to obtain at least two image data for the same pixel position, the at least two The pieces of image data include first image data and second image data; the storage device 320 is configured to store a computer program executed by the encoding device 330, and the computer program executes the following steps when executed by the encoding device 330: The residual corresponding to the second image data is determined based on the preset mapping relationship between the second image data and the first image data, and the residual is compressed and encoded to obtain compressed data; the interface device 340 for transmitting both the first image data and the compressed data to an image processor as pixel data at the pixel location. The image sensor 300 according to the embodiment of the present application can be used to execute the data processing method 100 described above. Those skilled in the art can understand the operations performed by the components of the image sensor 300 in combination with the above description. For brevity, only some main operations are described here. , the specific details will not be repeated.
在本申请的实施例中,所述光电器件310用于针对同一像素位置曝光 至少两次以得到至少两个图像数据,每次曝光的时间不同;或者所述光电器件310用于针对同一像素位置曝光一次得到曝光数据,并对所述曝光数据进行至少两次模数转换以得到至少两个图像数据,每次模数转换的增益不同。In the embodiment of the present application, the optoelectronic device 310 is used for exposing the same pixel position at least twice to obtain at least two image data, and the time of each exposure is different; or the optoelectronic device 310 is used for the same pixel position Exposure is performed once to obtain exposure data, and at least two analog-to-digital conversions are performed on the exposure data to obtain at least two image data, and the gain of each analog-to-digital conversion is different.
在本申请的实施例中,所述计算机程序在被所述编码器件330运行时执行的所述基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差,包括:基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差;其中,所述预设映射关系是基于不同次曝光各自采用的曝光时间之间的比例和所述图像传感器的线性度而确定的,或者,所述预设映射关系是基于不同次模数转换各自的增益之间的比例和所述图像传感器的线性度而确定的。In the embodiment of the present application, the computer program is executed when the encoding device 330 is executed to determine the second image based on the preset mapping relationship between the second image data and the first image data The residual error corresponding to the data includes: representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derived image data; calculating the difference between the second image data and the derived image data The residual difference corresponding to the second image data is obtained; wherein, the preset mapping relationship is determined based on the ratio between the exposure times used in different exposures and the linearity of the image sensor , or, the preset mapping relationship is determined based on the ratio between the respective gains of different analog-to-digital conversions and the linearity of the image sensor.
在本申请的实施例中,当所述第一图像数据和所述第二图像数据这两者均不为零值或者均未达到极限最大值时,所述残差接近零值。In the embodiment of the present application, when both the first image data and the second image data are not zero or reach a limit maximum value, the residual is close to zero.
在本申请的实施例中,在所述光电器件310输出所述第一图像数据后,所述接口器件340先将所述第一图像数据传送至所述图像处理器,再从所述编码器件330获取所述压缩数据并将所述压缩数据传送至所述图像处理器。In the embodiment of the present application, after the optoelectronic device 310 outputs the first image data, the interface device 340 first transmits the first image data to the image processor, and then transmits the first image data from the encoding device 330 obtains the compressed data and transmits the compressed data to the image processor.
在本申请的实施例中,所述光电器件310针对同一像素位置曝光两次,并且如果第一次曝光的时间比第二次曝光的时间长,则所述第一图像数据为长曝光得到的数据,所述第二图像数据为短曝光得到的数据;如果第一次曝光的时间比第二次曝光的时间短,则所述第一图像数据为短曝光得到的数据,所述第二图像数据为长曝光得到的数据。In the embodiment of the present application, the photoelectric device 310 is exposed twice for the same pixel position, and if the time of the first exposure is longer than the time of the second exposure, the first image data is obtained by long exposure If the time of the first exposure is shorter than the time of the second exposure, the first image data is the data obtained by the short exposure, and the second image The data is the data obtained by long exposure.
在本申请的实施例中,所述光电器件310针对同一像素位置曝光多于两次,并且:所述第一图像数据为第一次曝光后得到的输出数据,所述第二图像数据为其余次曝光后分别得到的输出数据;或者所述第一图像数据为各次曝光后得到的所有输出数据中的部分数据,所述第二图像数据为其他部分数据。In the embodiment of the present application, the photoelectric device 310 is exposed more than twice for the same pixel position, and: the first image data is the output data obtained after the first exposure, and the second image data is the rest or the first image data is part of all the output data obtained after each exposure, and the second image data is other part of the data.
在本申请的实施例中,所述编码器件330用于对所述残差进行差值编 码。In the embodiment of the present application, the encoding device 330 is configured to perform difference encoding on the residual.
在本申请的实施例中,所述编码器件330对所述残差进行差值编码,得到压缩数据,包括:将当前残差对应的像素位置之前的一个或多个像素位置对应的先前残差的真实值作为当前残差的预测值;计算当前残差的真实值与所述预测值之间的差值作为误差数据;对所述误差数据进行正值映射,得到正值数据;对所述正值数据进行量化,得到量化后的数据;对所述量化后的数据进行熵编码,得到所述压缩数据。In the embodiment of the present application, the encoding device 330 performs difference encoding on the residual to obtain compressed data, including: encoding previous residuals corresponding to one or more pixel positions before the pixel positions corresponding to the current residuals The true value of the current residual is used as the predicted value of the current residual; the difference between the true value of the current residual and the predicted value is calculated as the error data; the positive value mapping is performed on the error data to obtain positive value data; The positive value data is quantized to obtain quantized data; the quantized data is entropy encoded to obtain the compressed data.
在本申请的实施例中,所述编码器件330对所述量化后的数据进行的熵编码包括霍夫曼编码或者格伦布编码。In the embodiment of the present application, the entropy encoding performed by the encoding device 330 on the quantized data includes Huffman encoding or Gromb encoding.
基于上面的描述,根据本申请实施例的图像传感器无需将同一像素位置的不同原始图像数据均传送至图像处理器以由图像处理器合成该像素位置的最终像素值,而是传送部分原始图像数据以及其余原始图像数据的残差压缩数据,这可大大减小数据传输量;而且,由于仍是向图像处理器传送同一像素位置的不同图像数据,因而无需在图像传感器端执行像素合成,避免增加图像传感器的复杂度和功耗。Based on the above description, the image sensor according to the embodiment of the present application does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the residual compressed data of the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding increased Image sensor complexity and power consumption.
图4示出了根据本申请实施例的图像处理器400的示意性结构框图。如图4所示,图像处理器400包括接口器件410、存储器件420和解码器件430,其中:所述接口器件410用于接收图像传感器针对同一像素位置输出的至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据对应的压缩数据;所述存储器件420用于存储由所述解码器件430运行的计算机程序,所述计算机程序在被所述解码器件430运行时执行以下步骤:对所述压缩数据进行解码,得到解码数据;基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及所述解码数据确定所述第二图像数据;将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。根据本申请实施例的图像处理器400可以用于执行前文所述的数据处理方法200,本领域技术人员可以结合前文描述理解图像处理器400各部件执行的操作,为了简洁,此处仅描述一些主要操作,具体细节不再赘述。FIG. 4 shows a schematic structural block diagram of an image processor 400 according to an embodiment of the present application. As shown in FIG. 4 , the image processor 400 includes an interface device 410, a storage device 420 and a decoding device 430, wherein: the interface device 410 is configured to receive at least two image data output by the image sensor for the same pixel position, the at least The two image data include compressed data corresponding to the first image data and the second image data; the storage device 420 is used to store a computer program executed by the decoding device 430, and the computer program is executed by the decoding device 430. The following steps are performed when the compressed data is decoded to obtain decoded data; based on the preset mapping relationship between the first image data, the second image data and the first image data and the decoded data, determine the the second image data; the first image data and the second image data are fused to obtain the pixel value of the pixel position. The image processor 400 according to the embodiment of the present application can be used to execute the data processing method 200 described above. Those skilled in the art can understand the operations performed by the components of the image processor 400 in combination with the above description. For brevity, only some of the operations are described here. The main operation, the specific details will not be repeated.
在本申请的实施例中,所述计算机程序在被所述解码器件430运行时执行的所述基于所述第一图像数据、所述第二图像数据与所述第一图像数据 的预设映射关系以及所述解码数据确定所述第二图像数据,包括:基于所述预设映射关系将所述第一图像数据映射为衍生数据,并计算所述衍生数据和所述解码数据这两者之和得到所述第二图像数据。In the embodiment of the present application, the preset mapping based on the first image data, the second image data and the first image data executed when the computer program is executed by the decoding device 430 and the decoded data to determine the second image data, including: mapping the first image data to derived data based on the preset mapping relationship, and calculating the difference between the derived data and the decoded data and obtain the second image data.
在本申请的实施例中,所述预设映射关系是所述接口器件410从所述图像传感器接收得到并传送至所述解码器件430的。In the embodiment of the present application, the preset mapping relationship is received by the interface device 410 from the image sensor and transmitted to the decoding device 430 .
在本申请的实施例中,所述接口器件410先接收到所述第一图像数据,再接收到所述压缩数据。In the embodiment of the present application, the interface device 410 receives the first image data first, and then receives the compressed data.
基于上面的描述,根据本申请实施例的图像处理器从图像传感器接收针对同一像素位置的部分原始图像数据以及其余原始图像数据的残差压缩数据,可大大减小数据传输量。Based on the above description, the image processor according to the embodiment of the present application receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
下面结合图5描述根据本申请再一方面提供的电子设备。图5示出了根据本申请实施例的电子设备500的示意性结构框图。如图5所示,电子设备500可以包括图像传感器510和图像处理器520,其中:所述图像传感器510可以为前文所述的根据本申请实施例的图像传感器300,所述图像处理器520可以为前文所述的根据本申请实施例的图像处理器400。也就是说,根据本申请实施例的电子设备500可以同时实现上述数据处理方法100和200。示例性地,电子设备500可以为各种高中低端照相机、摄影机,以及各种使用相机设备的手机、无人机等。The electronic device provided according to still another aspect of the present application will be described below with reference to FIG. 5 . FIG. 5 shows a schematic structural block diagram of an electronic device 500 according to an embodiment of the present application. As shown in FIG. 5 , the electronic device 500 may include an image sensor 510 and an image processor 520, wherein: the image sensor 510 may be the image sensor 300 according to the embodiment of the present application described above, and the image processor 520 may be It is the aforementioned image processor 400 according to the embodiment of the present application. That is, the electronic device 500 according to the embodiment of the present application can simultaneously implement the above data processing methods 100 and 200 . Exemplarily, the electronic device 500 may be various high-, middle- and low-end cameras, video cameras, as well as various mobile phones, drones, etc. that use the camera device.
在本申请的再一实施例中,还提供了一种数据处理方法,下面结合图6来描述。图6示出了根据本申请再一个实施例的数据处理方法600的示意性流程图。如图6所示,数据处理方法600可以包括如下步骤:In yet another embodiment of the present application, a data processing method is also provided, which will be described below with reference to FIG. 6 . FIG. 6 shows a schematic flowchart of a data processing method 600 according to still another embodiment of the present application. As shown in FIG. 6, the data processing method 600 may include the following steps:
在步骤S610,图像传感器针对同一像素位置生成至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的。In step S610, the image sensor generates at least two pixel data for the same pixel position; wherein, the at least two pixel data includes the first image data and the compressed data obtained by compressing the residual corresponding to the second image data; The residual is determined based on a preset mapping relationship between the second image data and the first image data.
在步骤S620,所述图像传感器向图像处理器发送所述至少两个像素数据。In step S620, the image sensor sends the at least two pixel data to the image processor.
在本申请的实施例中,数据处理方法600与前文结合图1所示的数据处理方法100本质上相同,只是数据处理方法100是从图像传感器的内部实现角度描述的,数据处理方法600是从码流的角度描述的。本领域技术 人员可以结合前文所述理解数据处理方法600的具体过程。为了简洁,此处不再赘述数据处理方法600的具体过程,仅描述一些主要的步骤。In the embodiment of the present application, the data processing method 600 is substantially the same as the data processing method 100 shown in the foregoing in conjunction with FIG. 1 , except that the data processing method 100 is described from the perspective of the internal implementation of the image sensor, and the data processing method 600 is Described from the perspective of the code stream. Those skilled in the art can understand the specific process of the data processing method 600 in combination with the foregoing description. For the sake of brevity, the specific process of the data processing method 600 is not repeated here, and only some main steps are described.
在本申请的实施例中,步骤S610中的所述第一图像数据和所述第二图像数据可以是由所述图像传感器针对同一像素位置曝光至少两次而得到的,每次曝光的时间不同;或者步骤S610中的所述第一图像数据和所述第二图像数据可以是由所述图像传感器针对同一像素位置曝光一次得到曝光数据,并对所述曝光数据进行至少两次模数转换而得到的,每次模数转换的增益不同。In the embodiment of the present application, the first image data and the second image data in step S610 may be obtained by exposing the image sensor to the same pixel position at least twice, and each exposure time is different ; Or the first image data and the second image data in step S610 may be obtained by exposing the image sensor once for the same pixel position to obtain exposure data, and performing at least two analog-to-digital conversions on the exposure data to obtain exposure data. As a result, the gain of each analog-to-digital conversion is different.
在本申请的实施例中,步骤S610中的所述残差可以是通过如下方式确定的:基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差;其中,所述预设映射关系是基于不同次曝光各自采用的曝光时间之间的比例和所述图像传感器的线性度而确定的,或者,所述预设映射关系是基于不同次模数转换各自的增益之间的比例和所述图像传感器的线性度而确定的。In the embodiment of the present application, the residual in step S610 may be determined by the following method: expressing the second image data as a function of the first image data based on a preset mapping relationship to obtain a derived image data; calculating the difference between the second image data and the derived image data to obtain a residual corresponding to the second image data; wherein, the preset mapping relationship is based on exposures respectively adopted for different exposures The ratio between the time and the linearity of the image sensor is determined, or the preset mapping relationship is determined based on the ratio between the respective gains of different analog-to-digital conversions and the linearity of the image sensor. .
基于上面的描述,根据本申请的实施例的数据处理方法600无需将同一像素位置的不同原始图像数据均传送至图像处理器以由图像处理器合成该像素位置的最终像素值,而是传送部分原始图像数据以及其余原始图像数据的残差压缩数据,这可大大减小数据传输量;而且,由于仍是向图像处理器传送同一像素位置的不同图像数据,因而无需在图像传感器端执行像素合成,避免增加图像传感器的复杂度和功耗。Based on the above description, the data processing method 600 according to the embodiment of the present application does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the Residual compressed data of the original image data and the rest of the original image data, which can greatly reduce the amount of data transfer; also, because different image data at the same pixel location is still sent to the image processor, there is no need to perform pixel synthesis on the image sensor side , to avoid increasing the complexity and power consumption of the image sensor.
在本申请的又一实施例中,还提供了一种数据处理方法,下面结合图7来描述。图7示出了根据本申请又一个实施例的数据处理方法700的示意性流程图。如图7所示,数据处理方法700可以包括如下步骤:In yet another embodiment of the present application, a data processing method is also provided, which will be described below with reference to FIG. 7 . FIG. 7 shows a schematic flowchart of a data processing method 700 according to yet another embodiment of the present application. As shown in FIG. 7, the data processing method 700 may include the following steps:
在步骤S710,图像处理器接收图像传感器发送的针对同一像素位置输出的至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的。In step S710, the image processor receives at least two pixel data output from the image sensor for the same pixel position; wherein, the at least two pixel data includes the first image data, and the residuals corresponding to the second image data are processed compressed data obtained by compression; the residual is determined based on a preset mapping relationship between the second image data and the first image data.
在步骤S720,所述图像处理器基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值。In step S720, the image processor obtains the pixel value of the pixel position based on the first image data and the compressed data.
在本申请的实施例中,数据处理方法700与前文结合图2所示的数据处理方法200本质上相同,只是数据处理方法200是从图像处理器的内部实现角度描述的,数据处理方法700是从码流的角度描述的。本领域技术人员可以结合前文所述理解数据处理方法700的具体过程。为了简洁,此处不再赘述数据处理方法700的具体过程,仅描述一些主要的步骤。In the embodiment of the present application, the data processing method 700 is essentially the same as the data processing method 200 shown in the foregoing in conjunction with FIG. 2 , except that the data processing method 200 is described from the perspective of the internal implementation of the image processor, and the data processing method 700 is Described from the point of view of the code stream. Those skilled in the art can understand the specific process of the data processing method 700 in combination with the foregoing description. For the sake of brevity, the specific process of the data processing method 700 is not repeated here, and only some main steps are described.
在本申请的实施例中,所述图像处理器基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值,可以包括:所述图像处理器基于所述预设映射关系将所述第一图像数据映射为衍生数据,计算所述衍生数据与所述压缩数据的解码数据这两者之和得到所述第二图像数据,并将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。In the embodiment of the present application, the image processor obtaining the pixel value of the pixel position based on the first image data and the compressed data may include: the image processor converts the pixel value based on the preset mapping relationship The first image data is mapped to derived data, the sum of the derived data and the decoded data of the compressed data is calculated to obtain the second image data, and the first image data and the second image data are combined. The image data is fused to obtain the pixel value of the pixel position.
基于上面的描述,根据本申请实施例的数据处理方法从图像传感器接收针对同一像素位置的部分原始图像数据以及其余原始图像数据的残差压缩数据,可大大减小数据传输量。Based on the above description, the data processing method according to the embodiment of the present application receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
以上示例性地描述了根据本申请实施例的数据处理方法600和700,下面结合图8和图9描述执行上述方法的装置。The data processing methods 600 and 700 according to the embodiments of the present application are exemplarily described above, and the apparatuses for executing the above methods are described below with reference to FIG. 8 and FIG. 9 .
图8示出了根据另一个本申请实施例的图像传感器800的示意性结构框图。如图8所示,图像传感器800包括存储器件810、处理器件820和接口器件830,其中:所述存储器件810用于存储由所述处理器件820运行的计算机程序,所述计算机程序在被所述处理器件820运行时执行以下步骤:针对同一像素位置生成至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;所述接口器件830用于向图像处理器发送所述至少两个像素数据。根据本申请实施例的图像传感器800可以用于执行前文所述的数据处理方法600,本领域技术人员可以结合前文描述理解图像传感器800各部件执行的操作,为了简洁,此处仅描述一些主要操作,具体细节不再赘述。FIG. 8 shows a schematic structural block diagram of an image sensor 800 according to another embodiment of the present application. As shown in FIG. 8 , the image sensor 800 includes a storage device 810, a processing device 820, and an interface device 830, wherein: the storage device 810 is used for storing a computer program executed by the processing device 820, and the computer program is executed by the processing device 820. When the processing device 820 is running, the following steps are performed: at least two pixel data are generated for the same pixel position; wherein, the at least two pixel data include the first image data, and the residual error corresponding to the second image data is compressed. compressed data; the residual is determined based on a preset mapping relationship between the second image data and the first image data; the interface device 830 is configured to send the at least two pixel data to the image processor. The image sensor 800 according to the embodiment of the present application can be used to execute the data processing method 600 described above. Those skilled in the art can understand the operations performed by the components of the image sensor 800 in combination with the above description. For brevity, only some main operations are described here. , the specific details will not be repeated.
在本申请的实施例中,所述图像传感器800还包括光电器件(未示出),所述光电器件用于获得所述第一图像数据和所述第二图像数据,其中:所 述光电器件针对同一像素位置曝光至少两次以得到所述第一图像数据和所述第二图像数据,每次曝光的时间不同;或者所述光电器件针对同一像素位置曝光一次得到曝光数据,并对所述曝光数据进行至少两次模数转换以得到所述第一图像数据和所述第二图像数据,每次模数转换的增益不同。In the embodiment of the present application, the image sensor 800 further includes an optoelectronic device (not shown), the optoelectronic device is used to obtain the first image data and the second image data, wherein: the optoelectronic device Expose the same pixel position at least twice to obtain the first image data and the second image data, and the time for each exposure is different; or the optoelectronic device is exposed to the same pixel position once to obtain exposure data, and the The exposure data is subjected to at least two analog-to-digital conversions to obtain the first image data and the second image data, and the gain of each analog-to-digital conversion is different.
在本申请的实施例中,所述残差是通过如下方式确定的:基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差;其中,所述预设映射关系是基于不同次曝光各自采用的曝光时间之间的比例和所述图像传感器的线性度而确定的,或者,所述预设映射关系是基于不同次模数转换各自的增益之间的比例和所述图像传感器的线性度而确定的。In the embodiment of the present application, the residual is determined by: representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derived image data; calculating the The difference between the second image data and the derived image data obtains the residual corresponding to the second image data; wherein, the preset mapping relationship is based on the ratio between exposure times respectively adopted for different exposures and the linearity of the image sensor, or, the preset mapping relationship is determined based on the ratio between the respective gains of different analog-to-digital conversions and the linearity of the image sensor.
基于上面的描述,根据本申请实施例的图像传感器无需将同一像素位置的不同原始图像数据均传送至图像处理器以由图像处理器合成该像素位置的最终像素值,而是传送部分原始图像数据以及其余原始图像数据的残差压缩数据,这可大大减小数据传输量;而且,由于仍是向图像处理器传送同一像素位置的不同图像数据,因而无需在图像传感器端执行像素合成,避免增加图像传感器的复杂度和功耗。Based on the above description, the image sensor according to the embodiment of the present application does not need to transmit different original image data of the same pixel position to the image processor to synthesize the final pixel value of the pixel position by the image processor, but transmits part of the original image data and the residual compressed data of the rest of the original image data, which can greatly reduce the amount of data transmission; moreover, because different image data at the same pixel position is still transmitted to the image processor, there is no need to perform pixel synthesis on the image sensor side, avoiding increased Image sensor complexity and power consumption.
图9示出了根据另一个本申请实施例的图像处理器900的示意性结构框图。如图9所示,图像处理器900包括接口器件910、存储器件920和处理器件930,其中:所述接口器件910用于接收图像传感器发送的针对同一像素位置输出的至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;所述存储器件920用于存储由所述处理器件930运行的计算机程序,所述计算机程序在被所述处理器件930运行时执行以下步骤:基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值。根据本申请实施例的图像处理器900可以用于执行前文所述的数据处理方法700,本领域技术人员可以结合前文描述理解图像处理器900各部件执行的操作,为了简洁,此处仅描述一些主要操作,具体细节不再赘述。FIG. 9 shows a schematic structural block diagram of an image processor 900 according to another embodiment of the present application. As shown in FIG. 9 , the image processor 900 includes an interface device 910, a storage device 920 and a processing device 930, wherein: the interface device 910 is configured to receive at least two pixel data sent by the image sensor and output for the same pixel position; wherein , the at least two pixel data include first image data and compressed data obtained by compressing residuals corresponding to the second image data; the residuals are based on the second image data and the first image data The storage device 920 is configured to store a computer program executed by the processing device 930, and the computer program executes the following steps when executed by the processing device 930: based on the first image data and the compressed data to obtain pixel values for the pixel locations. The image processor 900 according to the embodiment of the present application can be used to execute the data processing method 700 described above. Those skilled in the art can understand the operations performed by the components of the image processor 900 in combination with the above description. For brevity, only some of the operations are described here. The main operation, the specific details will not be repeated.
在本申请的实施例中,所述计算机程序在被所述处理器件运行时执行 的基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值,包括:基于所述预设映射关系将所述第一图像数据映射为衍生数据,计算所述衍生数据与所述压缩数据的解码数据这两者之和得到所述第二图像数据,并将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。In the embodiment of the present application, the computer program that is executed by the processing device to obtain the pixel value of the pixel position based on the first image data and the compressed data includes: based on the preset The mapping relationship maps the first image data to derived data, calculates the sum of the derived data and the decoded data of the compressed data to obtain the second image data, and combines the first image data with the derived data. The second image data is fused to obtain the pixel value of the pixel position.
基于上面的描述,根据本申请实施例的图像处理器从图像传感器接收针对同一像素位置的部分原始图像数据以及其余原始图像数据的残差压缩数据,可大大减小数据传输量。Based on the above description, the image processor according to the embodiment of the present application receives part of the original image data for the same pixel position and residual compressed data of the remaining original image data from the image sensor, which can greatly reduce the amount of data transmission.
根据本申请再一方面,还提供了一种电子设备,其可以包括图像传感器(诸如前文所述的图像传感器800)和图像处理器(诸如前文所述的图像处理器900),其结构可以如图5所示的。也就是说,根据本申请实施例的该电子设备可以同时实现上述数据处理方法600和700。示例性地,该电子设备可以为各种高中低端照相机、摄影机,以及各种使用相机设备的手机、无人机等。According to still another aspect of the present application, an electronic device is also provided, which may include an image sensor (such as the aforementioned image sensor 800 ) and an image processor (such as the aforementioned image processor 900 ), the structure of which may be as follows shown in Figure 5. That is to say, the electronic device according to the embodiment of the present application can simultaneously implement the above data processing methods 600 and 700 . Exemplarily, the electronic device can be various high, middle and low-end cameras, video cameras, as well as various mobile phones, drones, etc. that use camera devices.
此外,根据本申请实施例,还提供了一种计算机可读存储介质,在所述计算机可读存储介质上存储了程序指令,在所述程序指令被计算机或处理器运行时用于执行本申请实施例的数据处理方法的相应步骤。所述计算机可读存储介质例如可以包括智能电话的存储卡、平板电脑的存储部件、个人计算机的硬盘、只读存储器(ROM)、可擦除可编程只读存储器(EPROM)、便携式紧致盘只读存储器(CD-ROM)、USB存储器、或者上述计算机可读存储介质的任意组合。所述计算机可读存储介质可以是一个或多个计算机可读存储介质的任意组合。In addition, according to an embodiment of the present application, a computer-readable storage medium is also provided, where program instructions are stored on the computer-readable storage medium, and the program instructions are used to execute the present application when the program instructions are run by a computer or a processor Corresponding steps of the data processing method of the embodiment. The computer-readable storage medium may include, for example, a memory card of a smartphone, a storage component of a tablet computer, a hard disk of a personal computer, a read only memory (ROM), an erasable programmable read only memory (EPROM), a portable compact disk Read only memory (CD-ROM), USB memory, or any combination of the above computer readable storage media. The computer-readable storage medium can be any combination of one or more computer-readable storage media.
基于上面的描述,根据本申请实施例的数据处理方法、图像传感器、图像处理器和电子设备无需将同一像素位置的不同原始图像数据均传送至图像处理器以由图像处理器合成该像素位置的最终像素值,而是传送部分原始图像数据以及其余原始图像数据的残差压缩数据,这可大大减小数据传输量;而且,由于仍是向图像处理器传送同一像素位置的不同图像数据,因而无需在图像传感器端执行像素合成,避免增加图像传感器的复杂度和功耗。Based on the above description, the data processing method, image sensor, image processor, and electronic device according to the embodiments of the present application do not need to transmit different original image data of the same pixel position to the image processor to synthesize the pixel position by the image processor. The final pixel value, but the residual compressed data of part of the original image data and the rest of the original image data is transmitted, which can greatly reduce the amount of data transmission; There is no need to perform pixel synthesis on the image sensor side, avoiding increasing the complexity and power consumption of the image sensor.
尽管这里已经参考附图描述了示例实施例,应理解上述示例实施例仅 仅是示例性的,并且不意图将本申请的范围限制于此。本领域普通技术人员可以在其中进行各种改变和修改,而不偏离本申请的范围和精神。所有这些改变和修改意在被包括在所附权利要求所要求的本申请的范围之内。Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above-described example embodiments are by way of example only, and are not intended to limit the scope of the application thereto. Various changes and modifications may be made therein by those of ordinary skill in the art without departing from the scope and spirit of the present application. All such changes and modifications are intended to be included within the scope of this application as claimed in the appended claims.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for a particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that the embodiments of the present application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
类似地,应当理解,为了精简本申请并帮助理解各个发明方面中的一个或多个,在对本申请的示例性实施例的描述中,本申请的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该本申请的方法解释成反映如下意图:即所要求保护的本申请要求比在权利要求中所明确记载的特征更多的特征。更确切地说,如相应的权利要求书所反映的那样,其发明点在于可以用少于某个公开的单个实施例的所有特征的特征来解决相应的技术问题。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中权利要求本身都作为本申请的单独实施例。Similarly, it is to be understood that in the description of the exemplary embodiments of the present application, various features of the present application are sometimes grouped together into a single embodiment, FIG. , or in its description. However, this method of application should not be construed as reflecting the intention that the claimed application claims more features than are expressly recited in the claims. Rather, as the corresponding claims reflect, the invention lies in the fact that the corresponding technical problem may be solved with less than all features of a single disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with the claims standing on their own as separate embodiments of this application.
本领域的技术人员可以理解,除了特征之间相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的特征可以由提供相同、等同或相似目的的替代特征来代替。It will be understood by those skilled in the art that all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or apparatus so disclosed may be used in any combination, except that the features are mutually exclusive. Processes or units are combined. Unless expressly stated otherwise, the features disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本申请的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the present application within and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的一些模块的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读存储介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The present application can also be implemented as a program of apparatus (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present application may be stored on a computer-readable storage medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.
应该注意的是上述实施例对本申请进行说明而不是对本申请进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the application, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.
以上所述,仅为本申请的具体实施方式或对具体实施方式的说明,本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application or descriptions of the specific embodiments, and the protection scope of the present application is not limited thereto. Any changes or substitutions should be included within the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (42)

  1. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    由图像传感器针对同一像素位置获得至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据;at least two image data are obtained by the image sensor for the same pixel position, the at least two image data including the first image data and the second image data;
    基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差;determining a residual corresponding to the second image data based on a preset mapping relationship between the second image data and the first image data;
    对所述残差进行压缩编码,得到压缩数据;performing compression coding on the residual to obtain compressed data;
    将所述第一图像数据和所述压缩数据这两者作为所述像素位置处的像素数据传送至图像处理器。Both the first image data and the compressed data are communicated to an image processor as pixel data at the pixel locations.
  2. 根据权利要求1所述的方法,其特征在于,所述由图像传感器针对同一像素位置获得至少两个图像数据,包括:The method according to claim 1, wherein the obtaining by the image sensor at least two image data for the same pixel position comprises:
    由图像传感器针对同一像素位置曝光至少两次以得到至少两个图像数据,每次曝光的时间不同;或者At least two exposures by the image sensor for the same pixel location to obtain at least two image data, each exposure for a different time; or
    由图像传感器针对同一像素位置曝光一次得到曝光数据,并对所述曝光数据进行至少两次模数转换以得到至少两个图像数据,每次模数转换的增益不同。Exposure data is obtained by exposing the image sensor once for the same pixel position, and at least two analog-to-digital conversions are performed on the exposure data to obtain at least two image data, and the gain of each analog-to-digital conversion is different.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差,包括:The method according to claim 2, wherein the determining the residual corresponding to the second image data based on the preset mapping relationship between the second image data and the first image data comprises:
    基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;Representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derivative image data;
    计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差;calculating the difference between the second image data and the derived image data to obtain a residual corresponding to the second image data;
    其中,所述预设映射关系是基于不同次曝光各自采用的曝光时间之间的比例和所述图像传感器的线性度而确定的,或者,所述预设映射关系是基于不同次模数转换各自的增益之间的比例和所述图像传感器的线性度而确定的。Wherein, the preset mapping relationship is determined based on the ratio between exposure times used in different exposure times and the linearity of the image sensor, or the preset mapping relationship is based on the respective analog-to-digital conversion times of different times. The ratio between the gain and the linearity of the image sensor is determined.
  4. 根据权利要求1或2所述的方法,其特征在于,当所述第一图像数据和所述第二图像数据这两者均不为零值或者均未达到极限最大值时,所述残差接近零值。The method according to claim 1 or 2, characterized in that, when both the first image data and the second image data are not zero or do not reach a limit maximum value, the residual error close to zero.
  5. 根据权利要求1或2所述的方法,其特征在于,在得到所述第一图像数据后,先将所述第一图像数据传送至所述图像处理器,再基于所述预设映射关系得到所述衍生图像数据。The method according to claim 1 or 2, wherein after the first image data is obtained, the first image data is first transmitted to the image processor, and then obtained based on the preset mapping relationship the derived image data.
  6. 根据权利要求2所述的方法,其特征在于,当所述图像传感器针对同一像素位置曝光两次时:The method of claim 2, wherein when the image sensor is exposed twice for the same pixel position:
    如果第一次曝光的时间比第二次曝光的时间长,则所述第一图像数据为长曝光得到的数据,所述第二图像数据为短曝光得到的数据;If the time of the first exposure is longer than the time of the second exposure, the first image data is data obtained by long exposure, and the second image data is data obtained by short exposure;
    如果第一次曝光的时间比第二次曝光的时间短,则所述第一图像数据为短曝光得到的数据,所述第二图像数据为长曝光得到的数据。If the time of the first exposure is shorter than the time of the second exposure, the first image data is data obtained by short exposure, and the second image data is data obtained by long exposure.
  7. 根据权利2述的方法,其特征在于,当所述图像传感器针对同一像素位置曝光两次以上时:The method according to claim 2, wherein when the image sensor is exposed more than twice for the same pixel position:
    所述第一图像数据为第一次曝光后得到的输出数据,所述第二图像数据为其余次曝光后分别得到的输出数据;或者The first image data is the output data obtained after the first exposure, and the second image data is the output data obtained after the remaining exposures; or
    所述第一图像数据为各次曝光后得到的所有输出数据中的部分数据,所述第二图像数据为其他部分数据。The first image data is part of all the output data obtained after each exposure, and the second image data is other part of the data.
  8. 根据权利要求1-7中的任一项所述的方法,其特征在于,对所述残差进行压缩编码包括:对所述残差进行差值编码。The method according to any one of claims 1-7, wherein the compression-encoding the residual comprises: difference-encoding the residual.
  9. 根据权利要求8所述的方法,其特征在于,对所述残差进行差值编码,得到压缩数据,包括:The method according to claim 8, wherein the difference encoding is performed on the residual to obtain compressed data, comprising:
    将当前残差对应的像素位置之前的一个或多个像素位置对应的先前残差的真实值作为当前残差的预测值;Taking the true value of the previous residual corresponding to one or more pixel positions before the pixel position corresponding to the current residual as the predicted value of the current residual;
    计算当前残差的真实值与所述预测值之间的差值作为误差数据;Calculate the difference between the real value of the current residual and the predicted value as error data;
    对所述误差数据进行正值映射,得到正值数据;performing positive mapping on the error data to obtain positive data;
    对所述正值数据进行量化,得到量化后的数据;Quantifying the positive value data to obtain quantized data;
    对所述量化后的数据进行熵编码,得到所述压缩数据。Entropy encoding is performed on the quantized data to obtain the compressed data.
  10. 根据权利要求9所述的方法,其特征在于,对所述量化后的数据进行熵编码,包括:The method according to claim 9, wherein entropy coding the quantized data comprises:
    对所述量化后的数据进行霍夫曼编码或者格伦布编码。Huffman coding or Grumbu coding is performed on the quantized data.
  11. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    接收图像传感器针对同一像素位置输出的至少两个图像数据,所述至 少两个图像数据包括第一图像数据和第二图像数据对应的压缩数据;receiving at least two image data output by the image sensor for the same pixel position, the at least two image data including compressed data corresponding to the first image data and the second image data;
    对所述压缩数据进行解码,得到解码数据;Decoding the compressed data to obtain decoded data;
    基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及所述解码数据确定所述第二图像数据;determining the second image data based on the first image data, a preset mapping relationship between the second image data and the first image data, and the decoded data;
    将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。The first image data and the second image data are fused to obtain the pixel value of the pixel position.
  12. 根据权利要求11所述的方法,其特征在于,所述基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及所述解码数据确定所述第二图像数据,包括:The method according to claim 11, wherein the determining the first image data based on the first image data, the preset mapping relationship between the second image data and the first image data, and the decoded data Two image data, including:
    基于所述预设映射关系将所述第一图像数据映射为衍生数据,并计算所述衍生数据和所述解码数据这两者之和得到所述第二图像数据。The first image data is mapped to derived data based on the preset mapping relationship, and the sum of the derived data and the decoded data is calculated to obtain the second image data.
  13. 根据权利要求11或12所述的方法,其特征在于,所述预设映射关系是从所述图像传感器接收得到的。The method according to claim 11 or 12, wherein the preset mapping relationship is received from the image sensor.
  14. 根据权利要求11所述的方法,其特征在于,在接收的所述至少两个图像数据中,先接收到所述第一图像数据,再接收到所述压缩数据。The method according to claim 11, wherein, among the at least two received image data, the first image data is received first, and then the compressed data is received.
  15. 一种图像传感器,其特征在于,所述图像传感器包括光电器件、存储器件、编码器件和接口器件,其中:An image sensor, characterized in that the image sensor includes a photoelectric device, a storage device, an encoding device and an interface device, wherein:
    所述光电器件用于针对同一像素位置获得至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据;The optoelectronic device is used to obtain at least two image data for the same pixel position, the at least two image data includes first image data and second image data;
    所述存储器件用于存储由所述编码器件运行的计算机程序,所述计算机程序在被所述编码器件运行时执行以下步骤:基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差,并对所述残差进行压缩编码,得到压缩数据;The storage device is used for storing a computer program executed by the encoding device, and the computer program executes the following steps when executed by the encoding device: a preset based on the second image data and the first image data The mapping relationship determines the residual corresponding to the second image data, and compresses and encodes the residual to obtain compressed data;
    所述接口器件用于将所述第一图像数据和所述压缩数据这两者作为所述像素位置处的像素数据传送至图像处理器。The interface device is configured to transmit both the first image data and the compressed data to an image processor as pixel data at the pixel locations.
  16. 根据权利要求15所述的图像传感器,其特征在于,所述光电器件针对同一像素位置曝光至少两次以得到至少两个图像数据,每次曝光的时间不同;或者The image sensor according to claim 15, wherein the photoelectric device is exposed at least twice for the same pixel position to obtain at least two image data, and the time of each exposure is different; or
    所述光电器件针对同一像素位置曝光一次得到曝光数据,并对所述曝光数据进行至少两次模数转换以得到至少两个图像数据,每次模数转换的 增益不同。The photoelectric device is exposed once for the same pixel position to obtain exposure data, and the exposure data is subjected to at least two analog-to-digital conversions to obtain at least two image data, and the gain of each analog-to-digital conversion is different.
  17. 根据权利要求16所述的图像传感器,其特征在于,所述计算机程序在被所述编码器件运行时执行的所述基于所述第二图像数据与所述第一图像数据的预设映射关系确定所述第二图像数据对应的残差,包括:17. The image sensor according to claim 16, wherein the determination based on the preset mapping relationship between the second image data and the first image data is executed when the computer program is executed by the encoding device. The residual corresponding to the second image data includes:
    基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;Representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derivative image data;
    计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差;calculating the difference between the second image data and the derived image data to obtain a residual corresponding to the second image data;
    其中,所述预设映射关系是基于不同次曝光各自采用的曝光时间之间的比例和所述图像传感器的线性度而确定的,或者,所述预设映射关系是基于不同次模数转换各自的增益之间的比例和所述图像传感器的线性度而确定的。Wherein, the preset mapping relationship is determined based on the ratio between exposure times used in different exposure times and the linearity of the image sensor, or the preset mapping relationship is based on the respective analog-to-digital conversion times of different times. The ratio between the gain and the linearity of the image sensor is determined.
  18. 根据权利要求15或16所述的图像传感器,其特征在于,当所述第一图像数据和所述第二图像数据这两者均不为零值或者均未达到极限最大值时,所述残差接近零值。16. The image sensor according to claim 15 or 16, wherein when both the first image data and the second image data are both non-zero or not reaching a limit maximum value, the residual The difference is close to zero.
  19. 根据权利要求15或16所述的图像传感器,其特征在于,在所述光电器件输出所述第一图像数据后,所述接口器件先将所述第一图像数据传送至所述图像处理器,再从所述编码器件获取所述压缩数据并将所述压缩数据传送至所述图像处理器。The image sensor according to claim 15 or 16, wherein after the optoelectronic device outputs the first image data, the interface device first transmits the first image data to the image processor, The compressed data is then obtained from the encoding device and transmitted to the image processor.
  20. 根据权利要求16所述的图像传感器,其特征在于,所述光电器件针对同一像素位置曝光两次,并且17. The image sensor of claim 16, wherein the optoelectronic device is exposed twice for the same pixel location, and
    如果第一次曝光的时间比第二次曝光的时间长,则所述第一图像数据为长曝光得到的数据,所述第二图像数据为短曝光得到的数据;If the time of the first exposure is longer than the time of the second exposure, the first image data is data obtained by long exposure, and the second image data is data obtained by short exposure;
    如果第一次曝光的时间比第二次曝光的时间短,则所述第一图像数据为短曝光得到的数据,所述第二图像数据为长曝光得到的数据。If the time of the first exposure is shorter than the time of the second exposure, the first image data is data obtained by short exposure, and the second image data is data obtained by long exposure.
  21. 根据权利要求16所述的图像传感器,其特征在于,所述光电器件针对同一像素位置曝光多于两次,并且:17. The image sensor of claim 16, wherein the optoelectronic device is exposed more than twice for the same pixel location, and:
    所述第一图像数据为第一次曝光后得到的输出数据,所述第二图像数据为其余次曝光后分别得到的输出数据;或者The first image data is the output data obtained after the first exposure, and the second image data is the output data obtained after the remaining exposures; or
    所述第一图像数据为各次曝光后得到的所有输出数据中的部分数据, 所述第二图像数据为其他部分数据。The first image data is part of all the output data obtained after each exposure, and the second image data is other part of the data.
  22. 根据权利要求15-21中的任一项所述的图像传感器,其特征在于,所述编码器件用于对所述残差进行差值编码。The image sensor according to any one of claims 15-21, wherein the encoding device is used for difference encoding the residual.
  23. 根据权利要求22所述的图像传感器,其特征在于,所述编码器件对所述残差进行差值编码,得到压缩数据,包括:The image sensor according to claim 22, wherein the encoding device performs differential encoding on the residual to obtain compressed data, comprising:
    将当前残差对应的像素位置之前的一个或多个像素位置对应的先前残差的真实值作为当前残差的预测值;Taking the true value of the previous residual corresponding to one or more pixel positions before the pixel position corresponding to the current residual as the predicted value of the current residual;
    计算当前残差的真实值与所述预测值之间的差值作为误差数据;Calculate the difference between the real value of the current residual and the predicted value as error data;
    对所述误差数据进行正值映射,得到正值数据;performing positive mapping on the error data to obtain positive data;
    对所述正值数据进行量化,得到量化后的数据;Quantifying the positive value data to obtain quantized data;
    对所述量化后的数据进行熵编码,得到所述压缩数据。Entropy encoding is performed on the quantized data to obtain the compressed data.
  24. 根据权利要求23所述的图像传感器,其特征在于,所述编码器件对所述量化后的数据进行的熵编码包括霍夫曼编码或者格伦布编码。The image sensor according to claim 23, wherein the entropy encoding performed by the encoding device on the quantized data includes Huffman encoding or Glumbus encoding.
  25. 一种图像处理器,其特征在于,所述图像处理器包括接口器件、存储器件和解码器件,其中:An image processor, characterized in that the image processor includes an interface device, a storage device and a decoding device, wherein:
    所述接口器件用于接收图像传感器针对同一像素位置输出的至少两个图像数据,所述至少两个图像数据包括第一图像数据和第二图像数据对应的压缩数据;The interface device is configured to receive at least two image data output by the image sensor for the same pixel position, the at least two image data including compressed data corresponding to the first image data and the second image data;
    所述存储器件用于存储由所述解码器件运行的计算机程序,所述计算机程序在被所述解码器件运行时执行以下步骤:对所述压缩数据进行解码,得到解码数据;基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及所述解码数据确定所述第二图像数据;将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。The storage device is used for storing a computer program executed by the decoding device, and the computer program executes the following steps when executed by the decoding device: decoding the compressed data to obtain decoded data; based on the first The image data, the preset mapping relationship between the second image data and the first image data, and the decoded data determine the second image data; fuse the first image data and the second image data , to obtain the pixel value of the pixel position.
  26. 根据权利要求25所述的图像处理器,其特征在于,所述计算机程序在被所述解码器件运行时执行的所述基于所述第一图像数据、所述第二图像数据与所述第一图像数据的预设映射关系以及所述解码数据确定所述第二图像数据,包括:26. The image processor according to claim 25, wherein the computer program is executed based on the first image data, the second image data and the first image data when the computer program is executed by the decoding device. The preset mapping relationship of the image data and the decoded data determine the second image data, including:
    基于所述预设映射关系将所述第一图像数据映射为衍生数据,并计算所述衍生数据和所述解码数据这两者之和得到所述第二图像数据。The first image data is mapped to derived data based on the preset mapping relationship, and the sum of the derived data and the decoded data is calculated to obtain the second image data.
  27. 根据权利要求25或26所述的图像处理器,其特征在于,所述预 设映射关系是所述接口器件从所述图像传感器接收得到并传送至所述解码器件的。The image processor according to claim 25 or 26, wherein the preset mapping relationship is received by the interface device from the image sensor and transmitted to the decoding device.
  28. 根据权利要求25所述的图像处理器,其特征在于,所述接口器件先接收到所述第一图像数据,再接收到所述压缩数据。The image processor according to claim 25, wherein the interface device receives the first image data first, and then receives the compressed data.
  29. 一种电子设备,其特征在于,所述电子设备包括图像传感器和图像处理器,其中:An electronic device, characterized in that the electronic device includes an image sensor and an image processor, wherein:
    所述图像传感器包括权利要求15至24任一项所述的图像传感器;The image sensor comprises the image sensor of any one of claims 15 to 24;
    所述图像处理器包括权利要求25至28任一项所述的图像处理器。The image processor includes the image processor of any one of claims 25 to 28.
  30. 一种存储介质,其特征在于,所述存储介质上存储有计算机程序,所述计算机程序在被处理器运行时使得所述处理器执行如权利要求1-14中的任一项所述的数据处理方法。A storage medium, characterized in that, a computer program is stored on the storage medium, and when the computer program is run by a processor, the computer program causes the processor to execute the data according to any one of claims 1-14 Approach.
  31. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    图像传感器针对同一像素位置生成至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;The image sensor generates at least two pixel data for the same pixel position; wherein, the at least two pixel data includes the first image data and the compressed data obtained by compressing the residual corresponding to the second image data; the residual is determined based on the preset mapping relationship between the second image data and the first image data;
    所述图像传感器向图像处理器发送所述至少两个像素数据。The image sensor sends the at least two pixel data to an image processor.
  32. 根据权利要求31所述的方法,其特征在于,所述第一图像数据和所述第二图像数据是由所述图像传感器针对同一像素位置曝光至少两次而得到的,每次曝光的时间不同;或者The method according to claim 31, wherein the first image data and the second image data are obtained by exposing the image sensor to the same pixel position at least twice, and each exposure time is different ;or
    所述第一图像数据和所述第二图像数据是由所述图像传感器针对同一像素位置曝光一次得到曝光数据,并对所述曝光数据进行至少两次模数转换而得到的,每次模数转换的增益不同。The first image data and the second image data are obtained by exposing the image sensor once for the same pixel position to obtain exposure data, and performing at least two analog-to-digital conversions on the exposure data. The gain of the conversion is different.
  33. 根据权利要求32所述的方法,其特征在于,所述残差是通过如下方式确定的:The method of claim 32, wherein the residual is determined by:
    基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;Representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derivative image data;
    计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差;calculating the difference between the second image data and the derived image data to obtain a residual corresponding to the second image data;
    其中,所述预设映射关系是基于不同次曝光各自采用的曝光时间之间 的比例和所述图像传感器的线性度而确定的,或者,所述预设映射关系是基于不同次模数转换各自的增益之间的比例和所述图像传感器的线性度而确定的。Wherein, the preset mapping relationship is determined based on the ratio between exposure times used in different exposure times and the linearity of the image sensor, or the preset mapping relationship is based on the respective analog-to-digital conversion times of different times. The ratio between the gain and the linearity of the image sensor is determined.
  34. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    图像处理器接收图像传感器发送的针对同一像素位置输出的至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;The image processor receives at least two pixel data output from the image sensor for the same pixel position; wherein, the at least two pixel data includes the first image data and the compression obtained by compressing the residual corresponding to the second image data data; the residual is determined based on a preset mapping relationship between the second image data and the first image data;
    所述图像处理器基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值。The image processor obtains pixel values of the pixel positions based on the first image data and the compressed data.
  35. 根据权利要求34所述的方法,其特征在于,所述图像处理器基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值,包括:The method according to claim 34, wherein the image processor obtains the pixel value of the pixel position based on the first image data and the compressed data, comprising:
    所述图像处理器基于所述预设映射关系将所述第一图像数据映射为衍生数据,计算所述衍生数据与所述压缩数据的解码数据这两者之和得到所述第二图像数据,并将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。The image processor maps the first image data to derived data based on the preset mapping relationship, and calculates the sum of the derived data and the decoded data of the compressed data to obtain the second image data, The first image data and the second image data are fused to obtain the pixel value of the pixel position.
  36. 一种图像传感器,其特征在于,所述图像传感器包括存储器件、处理器件和接口器件,其中:An image sensor, characterized in that the image sensor includes a storage device, a processing device and an interface device, wherein:
    所述存储器件用于存储由所述处理器件运行的计算机程序,所述计算机程序在被所述处理器件运行时执行以下步骤:针对同一像素位置生成至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;The storage device is configured to store a computer program executed by the processing device, the computer program executing the following steps when executed by the processing device: generating at least two pixel data for the same pixel position; wherein the at least two The pieces of pixel data include first image data and compressed data obtained by compressing residuals corresponding to the second image data; the residuals are based on a preset mapping relationship between the second image data and the first image data definite;
    所述接口器件用于向图像处理器发送所述至少两个像素数据。The interface device is used for sending the at least two pixel data to the image processor.
  37. 根据权利要求36所述的图像传感器,其特征在于,所述图像传感器还包括光电器件,所述光电器件用于获得所述第一图像数据和所述第二图像数据,其中:The image sensor of claim 36, wherein the image sensor further comprises an optoelectronic device for obtaining the first image data and the second image data, wherein:
    所述光电器件针对同一像素位置曝光至少两次以得到所述第一图像数据和所述第二图像数据,每次曝光的时间不同;或者The optoelectronic device is exposed at least twice for the same pixel position to obtain the first image data and the second image data, and the time of each exposure is different; or
    所述光电器件针对同一像素位置曝光一次得到曝光数据,并对所述曝 光数据进行至少两次模数转换以得到所述第一图像数据和所述第二图像数据,每次模数转换的增益不同。The photoelectric device is exposed once for the same pixel position to obtain exposure data, and the exposure data is subjected to at least two analog-to-digital conversions to obtain the first image data and the second image data, and the gain of each analog-to-digital conversion is different.
  38. 根据权利要求37所述的图像传感器,其特征在于,所述残差是通过如下方式确定的:38. The image sensor of claim 37, wherein the residual is determined by:
    基于预设映射关系将所述第二图像数据表示为所述第一图像数据的函数,得到衍生图像数据;Representing the second image data as a function of the first image data based on a preset mapping relationship to obtain derivative image data;
    计算所述第二图像数据与所述衍生图像数据之间的差值,得到所述第二图像数据对应的残差;calculating the difference between the second image data and the derived image data to obtain a residual corresponding to the second image data;
    其中,所述预设映射关系是基于不同次曝光各自采用的曝光时间之间的比例和所述图像传感器的线性度而确定的,或者,所述预设映射关系是基于不同次模数转换各自的增益之间的比例和所述图像传感器的线性度而确定的。Wherein, the preset mapping relationship is determined based on the ratio between exposure times used in different exposure times and the linearity of the image sensor, or the preset mapping relationship is based on the respective analog-to-digital conversion times of different times. The ratio between the gain and the linearity of the image sensor is determined.
  39. 一种图像处理器,其特征在于,所述图像处理器包括接口器件、存储器件和处理器件,其中:An image processor, characterized in that the image processor includes an interface device, a storage device and a processing device, wherein:
    所述接口器件用于接收图像传感器发送的针对同一像素位置输出的至少两个像素数据;其中,所述至少两个像素数据包括第一图像数据,以及对第二图像数据对应的残差进行压缩得到的压缩数据;所述残差是基于所述第二图像数据与所述第一图像数据的预设映射关系确定的;The interface device is configured to receive at least two pixel data output from the image sensor for the same pixel position; wherein the at least two pixel data include first image data, and compress residuals corresponding to the second image data The obtained compressed data; the residual is determined based on the preset mapping relationship between the second image data and the first image data;
    所述存储器件用于存储由所述处理器件运行的计算机程序,所述计算机程序在被所述处理器件运行时执行以下步骤:基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值。The storage device is configured to store a computer program executed by the processing device, the computer program executing the following steps when executed by the processing device: obtaining the pixel positions based on the first image data and the compressed data pixel value.
  40. 根据权利要求39所述的图像处理器,其特征在于,所述计算机程序在被所述处理器件运行时执行的基于所述第一图像数据以及所述压缩数据获得所述像素位置的像素值,包括:The image processor according to claim 39, wherein the computer program is executed by the processing device to obtain the pixel value of the pixel position based on the first image data and the compressed data, include:
    基于所述预设映射关系将所述第一图像数据映射为衍生数据,计算所述衍生数据与所述压缩数据的解码数据这两者之和得到所述第二图像数据,并将所述第一图像数据和所述第二图像数据进行融合,得到所述像素位置的像素值。The first image data is mapped to derived data based on the preset mapping relationship, the sum of the derived data and the decoded data of the compressed data is calculated to obtain the second image data, and the first image data is One image data and the second image data are fused to obtain the pixel value of the pixel position.
  41. 一种电子设备,其特征在于,所述电子设备包括图像传感器和图像处理器,其中:An electronic device, characterized in that the electronic device comprises an image sensor and an image processor, wherein:
    所述图像传感器包括权利要求36-38中的任一项所述的图像传感器;the image sensor comprising the image sensor of any of claims 36-38;
    所述图像处理器包括权利要求39或40所述的图像处理器。The image processor includes the image processor of claim 39 or 40.
  42. 一种存储介质,其特征在于,所述存储介质上存储有计算机程序,所述计算机程序在被处理器运行时使得所述处理器执行如权利要求31-35中的任一项所述的数据处理方法。A storage medium, characterized in that a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program causes the processor to execute the data according to any one of claims 31-35 Approach.
PCT/CN2021/089069 2021-04-22 2021-04-22 Data processing method, image sensor, image processor and electronic device WO2022222112A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/089069 WO2022222112A1 (en) 2021-04-22 2021-04-22 Data processing method, image sensor, image processor and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/089069 WO2022222112A1 (en) 2021-04-22 2021-04-22 Data processing method, image sensor, image processor and electronic device

Publications (1)

Publication Number Publication Date
WO2022222112A1 true WO2022222112A1 (en) 2022-10-27

Family

ID=83723610

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/089069 WO2022222112A1 (en) 2021-04-22 2021-04-22 Data processing method, image sensor, image processor and electronic device

Country Status (1)

Country Link
WO (1) WO2022222112A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103535038A (en) * 2011-05-16 2014-01-22 杜比实验室特许公司 Efficient architecture for layered vdr coding
WO2020106559A1 (en) * 2018-11-19 2020-05-28 Dolby Laboratories Licensing Corporation Video encoder and encoding method
CN111586375A (en) * 2020-05-08 2020-08-25 Oppo广东移动通信有限公司 High dynamic range image processing system and method, electronic device and readable storage medium
CN112040240A (en) * 2020-11-03 2020-12-04 深圳市大疆创新科技有限公司 Data processing method, device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103535038A (en) * 2011-05-16 2014-01-22 杜比实验室特许公司 Efficient architecture for layered vdr coding
WO2020106559A1 (en) * 2018-11-19 2020-05-28 Dolby Laboratories Licensing Corporation Video encoder and encoding method
CN111586375A (en) * 2020-05-08 2020-08-25 Oppo广东移动通信有限公司 High dynamic range image processing system and method, electronic device and readable storage medium
CN112040240A (en) * 2020-11-03 2020-12-04 深圳市大疆创新科技有限公司 Data processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN102685478B (en) Encoding method and device, and decoding method and device
EP4254964A1 (en) Image processing method and apparatus, device, and storage medium
CN106688237B (en) Video encoding apparatus, video decoding apparatus, video compression transmission system, video encoding method, video decoding method and program
CN111741302B (en) Data processing method and device, computer readable medium and electronic equipment
TW201010441A (en) Rate-distortion defined interpolation for video coding based on fixed filter or adaptive filter
TW201134223A (en) Perceptual video encoding system and circuit thereof
AU2008240343A1 (en) Rate-distortion control in DVC with no feedback
KR20170026387A (en) Method and apparatus for predicting image samples for encoding or decoding
CN110740319B (en) Video encoding and decoding method, device, electronic device and storage medium
CN114449286A (en) Video coding method, decoding method and device
US20190098325A1 (en) Storing and retrieving high bit depth image data
WO2022222112A1 (en) Data processing method, image sensor, image processor and electronic device
JP2015019364A (en) Image compression apparatus and method
CN110784722B (en) Encoding and decoding method, encoding and decoding device, encoding and decoding system and storage medium
US20110299790A1 (en) Image compression method with variable quantization parameter
KR101035746B1 (en) Distributed Motion Prediction Method in Video Encoder and Video Decoder
US10873747B2 (en) Residual mapping method for image/video compression
JP2015115721A (en) Image data compression circuit, image data compression method, and imaging apparatus
CN114760467A (en) Method and device for determining coding mode
CN108600751A (en) Polygon information-distribution type Video coding based on JND, decoded method and system
WO2021263251A1 (en) State transition for dependent quantization in video coding
CN109819251B (en) Encoding and decoding method of pulse array signal
JP2018032909A (en) Image coding device, control method therefor, imaging apparatus and program
Hojjat et al. MCUCoder: Adaptive Bitrate Learned Video Compression for IoT Devices
WO2020215338A1 (en) Video coding and decoding method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21937350

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21937350

Country of ref document: EP

Kind code of ref document: A1