Methods and systems for real-time structured light depth extraction and endoscope using real-time structured light depth extraction