Add geometry calculation for stereo matching.