Auto-Segmentation
Calling the L_MrcSegmentBitmap function will perform automatic segmentation using the LEADTOOLS MRC engine. LEADTOOLS segments the bitmap, classifying the segments as background, text, grayscale or picture. Use the SEGMENTATIONOPTIONS structure to control the segmentation process.
It is also possible to use the L_MrcSegmentBitmapExt function to perform automatic segmentation.
To enumerate the segments, call the L_MrcEnumSegments function. This function provides the segment coordinates, types and their IDs. To modify a segment type or its coordinates, use the L_MrcSetSegmentData function. This function will update only one segment’s data each time it is called. To delete a segment, call the L_MrcDeleteSegment function. To combine two segments, call the L_MrcCombineSegments function. To copy the segmentation handle and data, call the L_MrcCopySegmentationHandle function.
Save the segmentation handle and data to a file by calling the L_MrcSaveSegmentation function. To load the saved segmentation handle and data from a file, call the L_MrcLoadSegmentation function.