Method for correcting an acquired image
11257192 · 2022-02-22
Assignee
Inventors
Cpc classification
H04N23/683
ELECTRICITY
H04N23/6812
ELECTRICITY
International classification
Abstract
A method of correcting an image obtained by an image acquisition device includes obtaining successive measurements, G.sub.n, of device movement during exposure of each row of an image. An integration range, idx, is selected in proportion to an exposure time, t.sub.e, for each row of the image. Accumulated measurements, C.sub.n, of device movement for each row of an image are averaged across the integration range to provide successive filtered measurements,
Claims
1. A method comprising: receiving sensor data representing movement of a device, the sensor data comprising a set of measurements of device movement during exposure of a first row and a second row of an image; determining an integration range based at least in part on an exposure time of the first row and the second row of the image; determining an average measurement of device movement based at least in part on the set of measurements and the integration range; and correcting the image for device movement based at least in part on the average measurement.
2. A method according to claim 1, wherein determining the integration range is further based at least in part on a sampling frequency associated with the first row or the second row of the image.
3. A method according to claim 1, wherein determining the integration range is further based at least in part on a first sampling frequency associated with the first row and a second sampling frequency associated with the second row.
4. A method according to claim 1, wherein at least one of the set of measurements of device movement comprises a gyroscope measurement, an accelerometer measurement, or a magnetometer measurement.
5. A method according to claim 1, wherein the set of measurements of device movement comprises a first measurement of device movement associated with a first sensor and a second measurement of device movement associated with a second sensor.
6. A method according to claim 1, wherein the image is acquired using a rolling shutter technique.
7. A method according to claim 1, wherein the image is part of a video sequence and wherein correcting the image for device movement using the average measurement comprises stabilizing multiple images of the video sequence.
8. A method according to claim 1, wherein correcting the image for device movement using the average measurement comprises correcting blur in at least a portion of the image to account for device motion during image capture.
9. A system comprising: one or more processors; and memory storing processor-executable instructions that, when executed by the one or more processors, cause the system to perform actions comprising: receiving sensor data representing movement of a device, the sensor data comprising a set of measurements of device movement during exposure of a first row and a second row of an image; determining an integration range based at least in part on an exposure time of the first row and the second row of the image; determining a measurement of device movement based at least in part on the set of measurements and the integration range; and correcting the image for device movement based at least in part on the measurement.
10. A system according to claim 9, wherein at least one of the set of measurements of device movement comprises a gyroscope measurement, an accelerometer measurement, or a magnetometer measurement.
11. A system according to claim 9, wherein the set of measurements of device movement comprises a first measurement of device movement associated with a first sensor and a second measurement of device movement associated with a second sensor.
12. A system according to claim 9, wherein determining the integration range is further based at least in part on a sampling frequency associated with the first row or the second row of the image.
13. A system according to claim 9, wherein the image is acquired using a rolling shutter technique.
14. A system according to claim 9, wherein the image is part of a video sequence and wherein correcting the image for device movement using the measurement comprises stabilizing multiple images of the video sequence.
15. A system according to claim 9, wherein correcting the image for device movement using the measurement comprises correcting blur in at least a portion of the image to account for device motion during image capture.
16. An image acquisition device comprising: a sensor to receive sensor data representing movement of a device, the sensor data comprising a set of measurements of device movement during exposure of a first row and a second row of an image; one or more processors; and memory storing processor-executable instructions that, when executed by the one or more processors, cause the image acquisition device to perform actions comprising: determining an integration range based at least in part on an exposure time of the first row and the second row of the image; determining an average measurement of device movement based at least in part on the set of measurements and the integration range; and correcting the image for device movement based at least in part on the average measurement.
17. A image acquisition device according to claim 16, wherein at least one of the set of measurements of device movement comprises a gyroscope measurement, an accelerometer measurement, or a magnetometer measurement.
18. A image acquisition device according to claim 16, wherein the set of measurements of device movement comprises a first measurement of device movement associated with a first sensor and a second measurement of device movement associated with a second sensor.
19. A image acquisition device according to claim 16, wherein the image is acquired using a rolling shutter technique.
20. A image acquisition device according to claim 16, wherein the image is part of a video sequence and wherein correcting the image for device movement using the average measurement comprises stabilizing multiple images of the video sequence.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) An embodiment of the invention will now be described, by way of example, with reference to the accompanying drawings, in which:
(2)
(3)
DESCRIPTION OF THE PREFERRED EMBODIMENT
(4) In embodiments of the present invention, IMU sensor data is integrated over the exposure time of the lines of an acquired image so tending to average the record of device movement. As a result, correction to each line of an image is calculated for average camera orientation during the exposure time of the line. Importantly, the range of the integrator (or the corner frequency of the integrator) is a function of the exposure time of the image.
(5) In one embodiment the IMU sensor data comprises gyroscope samples and the method operates as follows: 1. Successive gyroscope samples G.sub.n are added to a cumulative buffer, where each new element is a sum of the current value G.sub.n and all previous sample values added to the buffer. The cumulative value corresponding to sample G.sub.n is denoted as C.sub.n 2. An index to the cumulative buffer is calculated dependent on the gyroscope sampling frequency F and exposure time t.sub.e as follows: idx=F*t.sub.e 3. An average gyroscope rate is calculated:
(6) It will be seen that for short exposure images, idx will be short and so the linear approximation
(7) While the above example has been described in terms of gyroscope samples, the same technique can be applied to sample values from all IMU sensors (gyroscope, accelerometer, magnetometer) in implementations where full sensor fusion is required.
(8) The above approach can be employed whether images are acquired using a rolling shutter technique or not. Where lines of an image are exposed successively, then successive corresponding IMU measurements filtered as above can be employed to correct for device movement during exposure of those lines; whereas for an image where all lines are exposed at the same time, then the same IMU measurements filtered as above are applied to all lines.
(9) The filtered IMU sensor signals described above can be employed in electronic image stabilisation (EIS) schemes such as disclosed in co-filed U.S. patent application Ser. No. 15/048,149, entitled “A method of stabilizing a sequence of images” (Reference: IO002-0474-US-01) in place of raw sensor signals conventionally employed to mitigate problems caused by high frequency vibration of the camera during image capture.