主权项 |
1. An image processing apparatus that performs a first process and a second process, the first process being image processing that integrates a first image which has color information including a brightness of each pixel forming the image and an α blend value, which is a coefficient indicating a transparency of each pixel, and a second image having color information to generate a third image having color information, the second process being image processing for the third image, the image processing apparatus comprising:
an acquisition unit that acquires the first image, the second image, and an identifier indicating whether or not a portion corresponding to the first image and included in the third image is to be subjected to the second process; a first processing unit that (i) performs the first process on the first and second images acquired by the acquisition unit to generate the third image and (ii) performs conversion on the blend value of each pixel forming the generated third image for allocating the identifier to one of one or more specific values of a possible range of the α blend value, wherein, in a case in which the portion is not to be subjected to the second process, in the conversion, the first processing unit (i) changes the α blend value to a value greater than or smaller than the α blend value by a predetermined integer when the α blend value of the pixel included in the portion is equal to one of the one or more specific values, and (ii) maintains the α blend value when the α blend value of the pixel included in the portion is different from any of the one or more specific values; and a second processing unit that controls whether or not to perform the second process on each pixel forming the third image generated by the first processing unit, on the basis of the converted blend value, wherein the second process is performed when the converted blend value is determined to be equal to one of the one or more specific values, and wherein the second process is not performed when the converted blend value is determined not to be equal to any of the one or more specific values, and wherein by reserving the one or more specific values of the possible range of the α blend value for the identifier to control the second process, the image processing apparatus reduces memory usage for the identifier. |