In order to solve problem that the image which is under different wavelength channels can’t match in the ice detection whit the near infrared, this paper describes a solution of image matching which based on the chain code of angle related to a tangential direction of image edge. By extracting the edge with Canny, calculating the chain code of angle and differences, computing the relative chain code of direction angle and comparing the relative chain code, the possible rotation angle between the images will be gained. After rotating the image and differencing the corresponding coordinates, the shift amount can be obtained. Ultimately image match can be achieved. Experimental results show that this method is accuracy and have certain inhibition of noise.