Repairing holes in images
First Claim
Patent Images
1. 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.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. 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. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. 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. - View Dependent Claims (17, 18, 19, 20)
-
Specification