Patent ID: 9672454
Date: 2017-06-06
CPC Classifications: G06K,H04N

Claim:
1. An image processing apparatus for rendering objects, the image processing apparatus comprising: a memory storing instructions; one or more processors which execute the instructions and cause an image processing apparatus to function as: a division unit configured to divide, according to order of closeness of the objects to a background surface, the objects so that each of the objects is included in any one of a plurality of groups including at least a first group and a second group, the objects included in the first group being closer to the background surface than the objects included in the second group; and a rendering unit configured to render the objects included in the first group to obtain a rendering result, and render the objects included in the second group using the rendering result in a manner such that the objects in the second group is superimposed on the rendering result, wherein, in a case where the division unit divides, in the dividing, a plurality of objects included in an application range of a clip command into the first group and the second group, the rendering unit applies, in the rendering of the first group, a clip process based on a first clip command corresponding to the clip command to a part of the plurality of objects divided into the first group, and applies, in the rendering of the second group, a clip process based on a second clip command corresponding to the clip command to a rest part of the plurality of objects divided into the second group, a generation unit configured to generate the first clip command and the second clip command based on the clip command, wherein the division unit divides the plurality of objects so that the part of the plurality of objects is included in the first group and the rest part of the plurality of objects is included in the second group, wherein the generation unit generates the first clip command having an application range based on a number of the part of the plurality of objects, and the second clip command having an application range based on a number of the rest part of the plurality of objects, the application range of the first clip command including the part of the plurality of objects, the application range of the second clip command including the rest part of the plurality of objects, and wherein the rendering unit applies, in the rendering of the first group, the clip process based on the first clip command to the part of the plurality of objects, and applies, in the rendering of the second group, the clip process based on the second clip command to the rest part of the plurality of objects, wherein in a case where it is determined that the division unit divides the plurality of objects into the first group and the second group, the generation unit adds to the first group a padding object that does not affect rendering, so that the part of the plurality of objects included in the first group moves to the second group including the rest part of the plurality of objects.