Patent ID: 8335377

Claim:
A line drawing processor for applying color to a line drawing, comprising: an acquisition part configured to acquire line drawing data; a line-disconnection correcting part configured to correct line drawing data representing a line drawing of a line disconnection in the line drawing to generate corrected image data; a designated-region setting part configured to set, for either said line drawing data or said corrected image data, a designated region within an area to be colored, based on a given input operation; an identification-point setting part configured to set, for said corrected image data, an identification point within each unit closed region which forms a corresponding part of said designated region, and to set, for both said line drawing data and said corrected image data, an identification point within a unit closed region which forms a corresponding part of said designated region; a region coloring part configured to apply a specific color to a pixel cluster, the pixel cluster being a group of pixels having the same gray-scale value as the pixel of the identification point and linked to said identification point set within said each unit closed region, in an entire image area; a pixel-cluster identification part configured to generate first identification data for said line drawing data and second identification data for said corrected image data, said first and second identification data identifying, from the entire image area, both a pixel cluster linked to said identification point and the remaining region other than said pixel cluster; a region extraction part configured to obtain a differential region between said pixel cluster identified in said first identification data and a second cluster identified in said second identification data to extract at least one closed region included in said differential region from said corrected image data; and a determination part configured to determine whether each of said at least one closed region requires coloring or not, based on a given criterion, wherein said region coloring part applies the same specific color to any of said at least one closed region determined by said determination part as requiring coloring and the second pixel cluster identified in said second identification data.