A system monitoring the spatial and intensity distribution on CCD patterns applied to in situ characterization