Here, i is an integer from 1 through 22, and j is an integer from 1 through 15.Using the hues Hue[i][j], the calculation device 110 divides the photographic image into two regions: a background region (i.e. a region in which the main photographic subject is not present), and a non-background region (i.e. a region in which the main photographic subject is present).