Method for detecting visible and infrared light using a medical imaging system, said medical imaging system comprising a dichroic prism assembly and a camera module configured to receive visible light and infrared light from an object image, the method comprising: - exciting (S21) a fluorescence agent in an ex-vivo tissue sample with excitation light; - illuminating (S22) the tissue sample with visible light; - receiving (S23) light from the object image through an entrance face of the dichroic prism assembly, said light comprising visible light and one or more infrared fluorescence light originating from the fluorescence agent; - splitting (S24) the received light into a first, second, and third optical path; - filtering the received light in the first, second, and third optical path through a first, second and third optical filter, respectively; - detecting (S24, S25, S26) the filtered light in the first, second, and third optical path with a first, second and third sensor, respectively wherein the first, second, and third filters, in any order, are a green filter, an infrared filter, and a red/blue patterned filter comprising red and blue filters in alternating pattern so that half of the light received by the red/blue patterned filter goes through a blue filter and half of the light received by the red/blue patterned filter goes through a red filter, wherein the dichroic prism assembly comprises at least a first, second, and third prism, each prism having a respective first, second, and third exit face, and wherein: - the first exit face is provided with the first sensor, - the second exit face is provided with the second sensor, and - the third exit face is provided with the third sensor. - exciting (S21) a fluorescence agent in an ex-vivo tissue sample with excitation light; - illuminating (S22) the tissue sample with visible light; - receiving (S23) light from the object image through an entrance face of the dichroic prism assembly, said light comprising visible light and one or more infrared fluorescence light originating from the fluorescence agent; - splitting (S24) the received light into a first, second, and third optical path; - filtering the received light in the first, second, and third optical path through a first, second and third optical filter, respectively; - detecting (S24, S25, S26) the filtered light in the first, second, and third optical path with a first, second and third sensor, respectively wherein the first, second, and third filters, in any order, are a green filter, an infrared filter, and a red/blue patterned filter comprising red and blue filters in alternating pattern so that half of the light received by the red/blue patterned filter goes through a blue filter and half of the light received by the red/blue patterned filter goes through a red filter, wherein the dichroic prism assembly comprises at least a first, second, and third prism, each prism having a respective first, second, and third exit face, and wherein: - the first exit face is provided with the first sensor, - the second exit face is provided with the second sensor, and - the third exit face is provided with the third sensor. - the first exit face is provided with the first sensor, - the second exit face is provided with the second sensor, and - the third exit face is provided with the third sensor. <EOS>