A surgery system comprising at least one smart instrument, a computer system, and a sensor system adapted to wirelessly sense the position of the at least one smart instrument and to transmit position information to the computer system, wherein the sensor system includes a sensor array and the sensor array includes at least three linear CCD cameras and at least one infrared transceiver. Specifically, the insulating layer may be epitaxially grown onto the substrate, followed by an LED buildup of an n-type semiconductor layer, an optically active layer, and a p-type semiconductor layer, in succession. Basis functions for illuminants are generated by inputting reflectance and associated information of the color samples, inputting illuminant information, constructing a matrix of weighted tristimulus values, and analyzing the matrix to obtain the basis functions.