Image processing apparatus and image processing method
AssigneeCanon Kabushiki Kaisha
InventorJun Nagai
Life of this patent
Estimating the term…
Abstract
To detect an image region to be an object of thinning processing appropriately and through the use of simple processing. An image processing apparatus detects a line region being a region sandwiched by white pixel regions and consisting only of a non-white pixel region, and detects a thinning candidate region being a region sandwiched by black pixel regions in the line region. A thinning region is detected from the inside of the thinning candidate region.
Claims8
An image processing apparatus comprising:
- a memory storing instructions;
- and
- one or more processors which execute the instructions and cause the image processing apparatus to function as:
- a first edge detecting unit configured to detect two first edges of a line region included in image data, each first edge extending in a main scanning direction, including at least one pixel having a density greater than a predetermined density, and being adjacent to a white pixel region, the image data consisting of N pixels in the main scanning direction and M pixels in a sub scanning direction, wherein N and M are integers;
- a second edge detecting unit configured to detect two second edges which are sandwiched between the first two edges and have a density greater than the predetermined density included in the line region, each second edge extending in the main scanning direction, consisting of pixels having a density greater than the predetermined density, and being closest to the corresponding one of the two first edges;
- and
- a processing unit configured to decrease a density of at least one pixel having a density greater than the predetermined density within a target region sandwiched between the two second edges in the line region,
- wherein the density decreasing is not performed for the at least one pixel which has a density greater than the predetermined density and is in the line region, in a case where the at least one pixel is in a region other than the target region.
An image processing method comprising:
- detecting two first edges of a line region included in image data, each first edge extending in a main scanning direction, including at least one pixel having a density greater than a predetermined density, and being adjacent to a white pixel region, the image data consisting of N pixels in the main scanning direction and M pixels in a sub scanning direction, wherein N and M are integers;
- detecting two second edges which are sandwiched between the first two edges and have a density greater than the predetermined density included in the line region, each second edge extending in the main scanning direction, consisting of pixels having a density greater than the predetermined density, and being closest to the corresponding one of the two first edges;
- and
- decreasing a density of at least one pixel having a density greater than the predetermined density within a target region sandwiched between the two second edges in the line region,
- wherein the density decreasing is not performed for the at least one pixel which has a density greater than the predetermined density and is in the line region, in a case where the at least one pixel is in a region other than the target region.
A non-transitory computer readable storage medium storing a program that, when executed by a computer, causes the computer to perform a method comprising:
- detecting two first edges of a line region included in image data, each first edge extending in a main scanning direction, including at least one pixel having a density greater than a predetermined density, and being adjacent to a white pixel region, the image data consisting of N pixels in the main scanning direction and M pixels in a sub scanning direction, wherein N and M are integers;
- detecting two second edges which are sandwiched between the first two edges and have a density greater than the predetermined density included in the line region, each second edge extending in the main scanning direction, consisting of pixels having a density greater than the predetermined density, and being closest to the corresponding one of the two first edges;
- and
- decreasing a density of at least one pixel having a density greater than the predetermined density within a target region sandwiched between the two second edges in the line region,
- wherein the density decreasing is not performed for the at least one pixel which has a density greater than the predetermined density and is in the line region, in a case where the at least one pixel is in a region other than the target region.
Dependencies are inferred from the claim text.