a handheld confocal imaging system for in vivo observation of dermal and subdermal tissue allows diagnosis of conditions substantially beneath the surface of the skin . a confocal head has optics which scan the tissue so as to provide images of vertical sections of the tissue . both two and three dimensional imaging may be provided for diagnosis and location of basal cell carcinomas and melanomas , and so as to enable visualization of tumor borders prior to excision .