added new function for estimating camera parameters