Dim and small target detection based on their living environment