Image enhancement and moving target detection in IR image sequences