Patent ID: 8179565

Claim:
A method for optimization of an electronic document, comprising the steps of: a) identifying a presence of a first color element in a document, b) if identifying said presence of said first color element in said document indicates that no said first color element is present in said document, then exiting the method, c) determining a distance between said first color element and a second element in said document, d) if said distance between said first color element and said second element in said document is more than a predetermined distance value, then exiting the method, e) determining a first intensity and a first color channel component of said first color element and determining a second intensity and a second color channel component of said second element in said document, f) comparing said first intensity with said second intensity in said document, g) comparing said first color channel component with said second color channel component in said document, and h) if said first color channel component varies from said second color channel component and a difference between said first intensity and said second intensity is less than 5% and said first intensity is within an interval of 0 to 0.9 of a maximum intensity, then outlining at least one of said elements.