Fast locally consistent dense stereo on multicore