摘要

As production of the telescope observation system, spectrum CCD images are affected by cosmic rays, dust, atmospheric and other natural conditions, which add noise to the spectrum information in image and make the image data difficult to study. The process of repairing the noise influence for CCD image is important. Existing methods such as median filter process and template matching cannot get balance for speed and precision. This paper presents a method based on local patch analysis. First, source image is compressed in order to target the noise area patch efficiently. Second, noise area patches in source CCD image are captured by building mapping relationship of noise area patches between compression image and source image. Finally noise area patches are fixed by using the local patch analysis method. Experiment proves that this algorithm can get better result and remove the cosmic rays affect efficiently.