Create generate_mask.m

This function return the binary mask for a given shape