Leveraging Latents for Efficient Thermography Classification and Segmentation