Image processing
AssigneeHewlett-Packard Development Company, L.P.
InventorGeorge Forman
Life of this patent
Estimating the term…
Abstract
An example method is of image processing provided in according with one implementation of the present disclosure. The method includes receiving an image, placing a window across the image, and computing a set of all occurring grayscale values within the window. The method further includes computing a threshold value based on the set of all occurring grayscale values within the window and determining an output pixel value of at least one pixel from the window based on the threshold value.
Claims15
A method of image processing comprising, by at least one processing device:
- receiving an image;
- placing a window across the image;
- computing a set of all occurring grayscale values within the window;
- computing a threshold value based on the set of all occurring grayscale values within the window;
- and
- determining an output pixel value of at least one pixel from the window based on the threshold value.
A system comprising:
- at least one processing device w pith a control unit to:
- process an image;
- move a window across the image;
- compute a histogram of grayscale values for the window;
- and
- compute a set of all occurring grayscale values within the window by selecting the grayscale values that have a non-zero count;
- compute a threshold value based on the set of all occurring grayscale values within the window;
- and
- determine an output pixel value of at least one pixel from the window based on the threshold value.
A non-transitory machine-readable storage medium encoded with instructions executable by at least one processor, the machine-readable storage medium comprising instructions to:
- process an image;
- iteratively slide a window across the image;
- compute a histogram of grayscale values for the window;
- and
- compute a set including all occurring grayscale values within the window by including grayscale values having a non-zero count in the histogram;
- compute a threshold value based on the set of all occurring grayscale values within the window;
- and
- identify an output pixel value of at east one pixel from the window based on the threshold value.
The non-transitory machine-readable storage medium, further comp sing instructions to compute an average grayscale value of the set of all occurring grayscale values in the window to compute the threshold value.
The non-transitory machine-readable storage medium, further comprising instructions to:
- identify the output pixel value of the at least one pixel as white if a grayscale value of the at least one pixel is above the threshold value, and identify the output pixel value of the at least one pixel as black if a grayscale value of the at least one pixel is below the threshold value.
Dependencies are inferred from the claim text.