Patent ID: 8619146

Claim:
A method of correcting sideways slant in an image recorded by a digital camera, said method comprising: providing a first accelerometer integrated on a monolithic chip in the digital camera, the first accelerometer being sensitive to acceleration in a first direction lying in an imaging plane of the digital camera, said first accelerometer being adapted to provide a first output signal in response to acceleration in the first direction; providing a second accelerometer integrated on a monolithic chip in the digital camera, the second accelerometer being sensitive to acceleration in a second direction lying in an imaging plane of the digital camera and being different from the first direction, said second accelerometer being adapted to provide a second output signal in response to acceleration in the second direction; low-pass filtering the first and second output signals to obtain information relating to static accelerations; using the information relating to static accelerations to identify a roll angle of the digital camera when the image was recorded; and correcting sideways slant in the recorded image in accordance with the identified roll angle to reduce the influence of roll away from a vertical orientation or a horizontal orientation.