Speeding up probabilistic inference of camera orientation by function approximation and grid masking - WSCG2011 presentation