Example and Summary

A scenario for using the above functions in order to save a page as MRC is as follows:

1.

Start up the segmentation process by calling the StartSegmentation method.

2.

Set the following properties used to control the automatic segmentation process:

CombineFactor property

CombineFlags property

ImageType property

Sensitivity property

3.

Perform automatic segmentation by calling the AutoSegment method.

4.

Change some properties of the segments by calling the SetSegmentData and the EnumSegments methods.

5.

Delete some segments by calling the DeleteSegment and the EnumSegments methods.

6.

Combine segments by calling the CombineSegments and the EnumSegments methods.

7.

Call the SaveSegmentation method to save the resulting segments to a file. To load segments that have been saved to a file, call the LoadSegmentation method.

8.

Call the SaveT44 method to save the page as a Standard T44 file OR call the Save method to save the page using the LEAD Proprietary T44 Format.

9.

End the segmentation process by calling the StopSegmentation method.

The functionality provided by this module can be broken into the following categories:

1.

Start up and end the segmentation process:

StartSegmentation method

StopSegmentation method

2.

Automatic segmentation of a page:

AutoSegment method

3.

Manual segmentation of a page:

CreateNewSegment method

4.

Manipulating segments:

SetSegmentData method

CombineSegments method

CopySegmentationData method

DeleteSegment method

EnumSegments method

LoadSegmentation method

SaveSegmentation method

5.

Saving a page as MRC:

SaveT44 method

Save method

6.

Loading an MRC file:

Load method

GetPagesCount method

MRCPagesCount property