An Efficient Implementation of a Census-Based Stereo Matching and Its Applications in Medical Imaging