Patent ID: 8384956

Claim:
An image processing apparatus comprising: a segmentation unit configured to segment image data into a plurality of blocks; a discrimination unit configured to discriminate an attribute in each of the segmented blocks; a generating unit configured to select at least one image processing module for each attribute in accordance with the discriminated attribute and the content of image processing made to correspond to the attribute, and to generate an image processing flow for each block by use of the selected image processing module or modules; a determination unit configured to determine whether or not the generated image processing flows can be constructed in an image processing area; and a constructing unit configured to construct the image processing flows in the image processing area when it is determined that the image processing flows can be constructed in the image processing area as a result of the determination, and when it is determined that a processing area of the image processing flows cannot be constructed in the image processing area as a result of the determination, the constructing unit selects an image processing flow having an image processing module which is not contained the other image processing flows, to construct the selected image processing flow in the image processing area such that the processing area of the image processing flow is included in the image processing area.