1. A method for processing scanned data representative of a document image comprising: segmenting the data into background and foreground layers wherein the foreground layer is comprised of a plurality of objects; identifying at least one of the plurality of objects as non-uniform in color; partitioning the non-uniform color object into a plurality of sub-objects; clustering the sub-objects by uniform color; and coding the clustered sub-objects as a foreground layer segment.