Laser scanning confocal microscope with spectral detector