Dim target detection in IR maritime surveillance systems