An image fusion algorithm of infrared thermal and optical images for pig contour