1. A method for processing image data, comprising using a processor to perform: providing input image data; segmenting the input image data to generate: a background layer representing the background attributes of an image; a selector layer for identifying one or more foreground attributes of the image not included in the background layer; and a foreground layer representing the foreground attributes of the image; generating a black text layer comprising pixel data representing black text in the input image data; assigning the black text pixel data a predetermined value for the color black; and integrating the background layer, the selector layer, the foreground layer, and the black text layer into a data structure having machine-readable instructions that may be stored in a memory device.
1. A method for processing image data, comprising using a processor to perform: providing input image data; segmenting the input image data to generate: a background layer representing the background attributes of an image; a selector layer for identifying one or more foreground attributes of the image not included in the background layer; and a foreground layer representing the foreground attributes of the image; generating a black text layer comprising pixel data representing black text in the input image data; assigning the black text pixel data a predetermined value for the color black; and integrating the background layer, the selector layer, the foreground layer, and the black text layer into a data structure having machine-readable instructions that may be stored in a memory device. 2. The method according to claim 1 , wherein generating the black text layer further comprises: performing low-value thresholding on the input image data to identify black colored pixels; determining pictorial elements and/or non-text features from the black pixel data; and removing the pictorial features and/or non-text features from the black pixel data to provide black text pixel data.