function [E] = crop_and_close(I)
    O = calc_offset(I);
    cropped = I(O(1):O(1) + 99, O(2):O(2) + 99);
    SE = strel('disk', 1);
    D = imdilate(cropped,SE);
    E = imerode(D,SE);
end