The MRC toolkit provides an efficient way to segment the image. The segmentation process breaks the image according to its colors into different 9 types:
Background (The most prevalent color in the document)
One color Segment
1 bit black and white (Text) Segment
1 bit color Segment
2 bit color Segment
2 bit grayscale Segment
2 bit black and white (Text) Segment.
8-bit grayscale Segment
To use manual segmentation, call the L_MrcCreateNewSegment function to add a new segment and customize the segment coordinates and type. To modify a segment type or its coordinates, use the L_MrcSetSegmentData function. This function will update only one segments data each time it is called. To delete a segment, call the L_MrcDeleteSegment function.