Characterizing the detection threshold for optical imaging in surgical oncology