Characterization and calibration of a CCD detector for light engineering