fix(undistort): make remap maps dimensions smaller
fix(undistort): make remap maps dimensions smaller

In opencv3 the maximum dimension of remap coordinate arrays is SHRT_MAX.  When storing an image as a 1D array, we overpass that limit. So we fix this by reshaping the coordinate array before the remap to have small x, y dimensions.

Fixes #146

mapillary/OpenSfM,oscarlorentzon/OpenSfM,sunbingfengPI/OpenSFM_Test,sunbingfengPI/OpenSFM_Test,oscarlorentzon/OpenSfM,mapillary/OpenSfM,oscarlorentzon/OpenSfM,BrookRoberts/OpenSfM,sunbingfengPI/OpenSFM_Test,sunbingfengPI/OpenSFM_Test,oscarlorentzon/OpenSfM,BrookRoberts/OpenSfM,mapillary/OpenSfM,BrookRoberts/OpenSfM,oscarlorentzon/OpenSfM,BrookRoberts/OpenSfM,mapillary/OpenSfM,BrookRoberts/OpenSfM,mapillary/OpenSfM,sunbingfengPI/OpenSFM_Test