Group average filter algorithm for digital image processing
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;
selecting a row of pixels from said image for processing;
computing the mean intensity of said pixels in said row;
dividing said image into sections;
computing the mean intensity of the pixels of each section;
processing the pixels in each of said sections according to a first method if said mean intensity of said section is greater than said mean intensity of said row;
processing the pixels in each of said sections according to a second method if said mean intensity of said section is less than said mean intensity of said row; and
disregarding the pixels in sections where said mean intensity of said section is equal to said mean intensity of said row; and
wherein said first method of processing pixels in a section consists of the steps of;
computing the value of the intensity of each pixel in said section plus a percentage threshold multiplied by the intensity of each pixel in said section; and
assigning to each pixel in said section an intensity corresponding to white if the computed value is greater than the mean intensity of said row; and
assigning to each pixel in said section an intensity corresponding to black if the computed value is less than the mean intensity of said row; and
wherein said second method of processing pixels in a section consists of the steps of;
computing the value of the intensity of each pixel in said section minus a percentage threshold multiplied by the intensity of each pixel in said section; and
assigning to each pixel in said section an intensity corresponding to white if the computed value is greater than the mean intensity of said row; and
assigning to each pixel in said section an intensity corresponding to black if the computed value is less than the mean intensity of said row; and
wherein said percentage threshold is greater than or equal to one and less than or equal to twenty.
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 computes the mean pixel intensity value of a row of pixels in the image. The row is divided into sections and the mean pixel intensity of each section is also calculated. The pixels in each section are processed according to the relation of the relative mean intensities of the row and the section. Once each pixel has been processed, the image is reassembled from its divided sections.
58 Citations
3 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; selecting a row of pixels from said image for processing; computing the mean intensity of said pixels in said row; dividing said image into sections; computing the mean intensity of the pixels of each section; processing the pixels in each of said sections according to a first method if said mean intensity of said section is greater than said mean intensity of said row; processing the pixels in each of said sections according to a second method if said mean intensity of said section is less than said mean intensity of said row; and disregarding the pixels in sections where said mean intensity of said section is equal to said mean intensity of said row; and wherein said first method of processing pixels in a section consists of the steps of; computing the value of the intensity of each pixel in said section plus a percentage threshold multiplied by the intensity of each pixel in said section; and assigning to each pixel in said section an intensity corresponding to white if the computed value is greater than the mean intensity of said row; and assigning to each pixel in said section an intensity corresponding to black if the computed value is less than the mean intensity of said row; and wherein said second method of processing pixels in a section consists of the steps of; computing the value of the intensity of each pixel in said section minus a percentage threshold multiplied by the intensity of each pixel in said section; and assigning to each pixel in said section an intensity corresponding to white if the computed value is greater than the mean intensity of said row; and assigning to each pixel in said section an intensity corresponding to black if the computed value is less than the mean intensity of said row; and wherein said percentage threshold is greater than or equal to one and less than or equal to twenty. - View Dependent Claims (2, 3)
-
Specification