A technology first developed to assist the U.S. military in spotting enemies sneaking past battlefield perimeters could soon help self-driving vehicles create detailed portraits of their surroundings.