Method for correcting an acquired image
A method of correcting an image obtained by an image acquisition device includes obtaining successive measurements, G 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 e , for each row of the image. Accumulated measurements, C n , of device movement for each row of an image are averaged across the integration range to provide successive filtered measurements, G , of device movement during exposure of each row of an image. The image is corrected for device movement using the filtered measurements G .
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.