Patent ID: 7529421

Claim:
A method for adjusting corners of a pattern to be written into a sensitive recording surface, comprising: using one or more processors to implement generating a grayscale pixel map by rasterizing a data file for an image of the pattern, the pixel map comprising an array of pixels having corresponding grayscale values between 0 and an integer N; generating a Boolean pixel map comprising an array of pixels having Boolean values of zero or one, depending on the grayscale values of corresponding pixels in the gray-scale pixel map; detecting corner pixels in said grayscale pixel map by comparing arrays of pixels in the Boolean pixel map including pixels corresponding to the corner pixels and surrounding pixels to templates of pixels corresponding to corners; and adjusting grayscale values of at least one of corner pixels and pixels neighboring corner pixels, wherein adjusting grayscale values of at least one of corner pixels and pixels neighboring corner pixels comprises: modifying grayscale values in a correction buffer without modifying grayscale values in an original grayscale buffer; calculating a sum of a grayscale value of a convex corner pixel in the original grayscale buffer and a first correction factor; and increasing the grayscale value of a pixel in the correction buffer corresponding to the convex corner pixel by the first correction factor if the calculated sum is less than or equal to a maximum grayscale value; increasing the grayscale value of one or more pixels in the correction buffer neighboring the pixel corresponding to the convex corner pixel if the calculated sum exceeds the maximum grayscale value, wherein increasing the grayscale value of one or more pixels in the correction buffer neighboring the pixel corresponding to the convex corner pixel if the calculated sum exceeds the maximum grayscale value comprises increasing the grayscale value of one or more pixels diagonally outward from the pixel corresponding to the convex corner by the amount the calculated sum exceeds the maximum grayscale value.