A novel heterogeneous framework for stereo matching