PROBLEM TO BE SOLVED: To provide a mechanism for performing image processing on images of great variety.SOLUTION: An image processing apparatus comprises: first acquisition means that obtains identification information for each of a plurality of blocks of an image second acquisition means that obtains information necessary for image processing from pixel values of a region of the image determined based on the identification information and image processing means that performs image processing on the image based on the information obtained by the second acquisition means.