Camera motion estimation of rolling-shutter images