Two parameters are developed to analyze the CCD images from ground-based an
d/or space telescopes. The first parameter, deduced from the intensity prof
ile of the object sharp, is useful to resolve stars and hot pixels. The sec
ond parameter shape distinguishes the stars from the background cosmic-ray
events using geometric characteristics defined by its shapes. The parameter
s are applied to a simulated OMC/INTEGRAL image and a HST image.