Clinically, real time visualization aids in the diagnosis and treatment of diseases. For example, optical coherence tomography is widely used in ophthalmology to visualize retinal layers and detect early signs of diseases such as glaucoma and macular degeneration. In dermatology, confocal microscopy enables the non-invasive examination of skin lesions, assisting in the early detection of skin cancers.