1. An image processing apparatus comprising: a first acquisition unit configured to obtain identification information for a plurality of blocks of an image, a second acquisition unit configured to obtain information to be used for image processing from a pixel value of a region of the image determined based on the identification information, and an image processing unit configured to perform image processing of the image based on the information obtained by the second acquisition unit.