Development of the CVIPtools Algorithm Test and Analysis Tool with Application to Necrotic Tissue Detection in Liver Samples and Thermographic Gait Mask Segmentation