function [stretched_stack] = TiffStackStretch(filename, write_file)

prefix = 'mov__ ';
input_filename = [prefix filename];

input_stack = TiffStackImport(input_filename);

stretch_tform = affine3d([1 0 0 0; 0 1 0 0; 0 0 3.077 0; 0 0 0 1].');

stretched_stack = imwarp(input_stack,stretch_tform);

if write_file
    TiffStackWrite(stretched_stack,['stretched ' filename],16);
end

end