The algorithm of stereo vision and shape from shading based on endoscope imaging