Section based algorithm for image enhancement
First Claim
Patent Images
1. A method of enhancing an image comprising the steps of:
- converting the image to a two-dimensional array;
converting said image to grayscale;
dividing said image into vertical sections;
determining the minimum pixel intensity in each of said sections;
assigning all pixels in said image having an intensity below a first threshold an intensity corresponding to black;
assigning all pixels in said image having an intensity above a second threshold an intensity corresponding to white;
assigning a pixel in a section an intensity corresponding to black if the intensity of the pixel lies within a predetermined range of the minimum pixel intensity for that section; and
assigning a pixel in a section an intensity corresponding to black if the intensity of pixels surrounding said pixel lie within a predetermined range of minimum pixel intensity for said section; and
recombining said image sections.
4 Assignments
0 Petitions
Accused Products
Abstract
This present invention discloses a system and method for enhancing images of barcodes and other similar objects taken by the digital camera connected to or embedded in a mobile device. This filter works by converting the image into its equivalent gray scale. The algorithm then divides the image into sections and finds the pixels of minimum intensity in each section of the image. This minima is used to calculate cut-off values for thresholding. After thresholding, the image is reassembled from its divided sections.
-
Citations
4 Claims
-
1. A method of enhancing an image comprising the steps of:
-
converting the image to a two-dimensional array;
converting said image to grayscale;
dividing said image into vertical sections;
determining the minimum pixel intensity in each of said sections;
assigning all pixels in said image having an intensity below a first threshold an intensity corresponding to black;
assigning all pixels in said image having an intensity above a second threshold an intensity corresponding to white;
assigning a pixel in a section an intensity corresponding to black if the intensity of the pixel lies within a predetermined range of the minimum pixel intensity for that section; and
assigning a pixel in a section an intensity corresponding to black if the intensity of pixels surrounding said pixel lie within a predetermined range of minimum pixel intensity for said section; and
recombining said image sections. - View Dependent Claims (2, 3, 4)
-
Specification