Refining the fundamental matrix