%% preprocessor to take in a series of images and remove a set background from them
baseline = "/Volumes/home/lab_data/12.03.2024/151646.tiff";
baseline_img = imread(baseline);

shadows = ["/Volumes/home/lab_data/12.03.2024/152237.tiff"];

for i = 1:size(shadows ,2)
    shadow_img = imread(shadows(i));
    calibrated = shadow_img - baseline_img;
    done = imcomplement(calibrated);
    imshow(done);
end