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: |
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: |
2. |
Automatic segmentation of a page: |
3. |
Manual segmentation of a page: |
4. |
Manipulating segments: |
5. |
Saving a page as MRC: |
6. |
Loading an MRC file: |