% expects something called max_project_filename

function [] = TiffStackMaxProjectCallable(input_stack,max_project_filename)

mkdir('maximum projections')
cd('maximum projections')

max_project = max(input_stack,[],3);
TiffStackWrite(max_project,max_project_filename,16)

cd ..