Real-time detection of small and dim moving objects in IR video sequences using a robust background estimator and a noise-adaptive double thresholding