NIRF works by administering fluorescent dyes that bind specifically to cancer cells. Once these dyes are injected into the body, they accumulate in the tumor tissues. When exposed to near-infrared light, these dyes emit fluorescence, which can be captured and analyzed using specialized imaging devices. The resulting images provide a detailed map of the tumor's location and size.