Optical imaging works by illuminating a tissue with light and capturing the scattered or emitted light. Various methods such as fluorescence imaging, bioluminescence imaging, and Raman spectroscopy are employed to enhance contrast and detail. Fluorescent dyes or proteins can be injected or expressed in cancer cells to make them more visible.