Hardware-Efficient Bilateral Filtering for Stereo Matching