Patent ID: 8725237

Claim:
An apparatus for providing medical therapy to an in vivo tissue sample, the apparatus comprising: a medical probe having a virtual staining device configured to provide in vivo virtual staining of the in vivo tissue sample, the virtual staining device comprising an electromagnetic radiation source for directing an electromagnetic radiation at the in vivo tissue sample, and a hyperspectral detector for detecting electromagnetic radiation reflected or transmitted from the in vivo tissue sample, a communication interface configured to provide communication between the electromagnetic radiation source and a computer system, or the hyperspectral detector and the computer system; an initial image generation module of the computer system configured to generate an input image from the detected electromagnetic radiation from the in vivo tissue sample, wherein the input image comprises a plurality of pixels; a virtual staining module of the computer system configured to assign a virtual stain to the input image of the in vivo tissue sample based on an identified waveform associated with each one of a plurality of pixels forming the input image; a therapeutic element configured to provide the medical therapy to the in vivo tissue sample based at least in part on the virtual stain; and an output image generation module of the computer system configured to generate a virtually stained image based on the assigned virtual stain to the input image wherein the virtually stained image is substantially identical to an image of the in vivo tissue sample when the in vivo tissue sample is treated with an actual stain that corresponds to the virtual stain.