Automatic Focusing Techniques for Infrared Sensors