Adaptive resistive network for stereo depth estimation