Pattern Assignment for Intermediate Photography