Repairing holes in images
AssigneeKonica Minolta Laboratory U.S.A., Inc.
InventorStuart Guarnieri
Life of this patent
Estimating the term…
Abstract
A method for image processing that includes: obtaining a mask of a connected component (CC) from an image; generating a stroke width transform (SWT) image based on the mask; calculating multiple stroke width parameters for the mask based on the SWT image; identifying a hole in the CC of the mask; calculating a stroke width estimate for the hole based on the stroke width values of pixels in the SWT image surrounding the hole; generating a comparison of the stroke width estimate for the hole with a limit based on the multiple stroke width parameters for the mask; and generating a revised mask by filling the hole in response to the comparison.
Claims20
A method for image processing using a computer processor, comprising:
- obtaining a mask of a connected component (CC) from an image;
- generating, by the computer processor, a first stroke width transform (SWT) image based on the mask;
- calculating a plurality of stroke width parameters for the mask based on the first SWT image;
- identifying a first hole in the CC of the mask;
- calculating a stroke width estimate for the first hole based on a plurality of stroke width values of a plurality of pixels in the first SWT image surrounding the first hole;
- generating a first comparison of the stroke width estimate for the first hole with a limit based on the plurality of stroke width parameters for the mask;
- and
- generating, by the computer processor, a revised mask by filling the first hole in response to the first comparison.
A non-transitory computer readable medium (CRM) storing computer readable program code embodied therein that, when executed by a computer processor:
- obtains a mask of a connected component (CC) from an image;
- generates a first stroke width transform (SWT) image based on the mask;
- calculates a plurality of stroke width parameters for the mask based on the first SWT image;
- identifies a first hole in the CC of the mask;
- calculates a stroke width estimate for the first hole based on a plurality of stroke width values of a plurality of pixels in the first SWT image surrounding the first hole;
- generates a first comparison of the stroke width estimate for the first hole with a limit based on the plurality of stroke width parameters for the mask;
- and
- generates a revised mask by filling the first hole in response to the first comparison.
A system for image processing, comprising:
- a memory storing a mask of a connected component (CC) from an image;
- and
- a computer processor connected to the memory that:
- identifies a first hole in the CC of the mask;
- generates a first stroke width transform (SWT) image based on the mask;
- calculates a plurality of stroke width parameters for the mask based on the first SWT image;
- calculates a stroke width estimate for the first hole based on a plurality of stroke width values of a plurality of pixels in the first SWT image surrounding the first hole;
- generates a first comparison of the stroke width estimate for the first hole with a limit based on the plurality of stroke width parameters for the mask;
- and
- generates a revised mask by filling the first hole in response to the first comparison.
Dependencies are inferred from the claim text.