Infrared image photographed in the ship with swaying always gets motion-blur
which reduces the quality of the image. Analyze the degradation model of motion-blur image and its properties. Firstly
the cepstrum of degraded image is calculated and transformed to a binary image. Thus Radon transform of the binary cepstrum is used to identify the motion direction of PSF. Secondly
the image is restored by Wiener filtering with iterative blur length. Then edge detection is used to these images and blur length is determined by the cumulative edge count.The result of experiment which covers artificially images and real images shows the proposed algorithm is correct.