#include <DLSegmentation.h>
Public Member Functions | |
DLSegmentation () | |
DLSegmentation (const string &segmentationID) | |
DLSegmentation (DLPage *parentPage, const string &segmentationID) | |
virtual | ~DLSegmentation () |
bool | operator== (const DLSegmentation &right) |
int | dlGetPageWidth () const |
int | dlGetPageHeight () const |
int | dlGetNrOfZones () const |
bool | dlHasZones () |
void | dlAppendZone (DLZone &segZone) |
void | dlAppendZoneList (list< DLZone * > zoneList) |
void | dlInsertZone (DLZone &segZone, int cursorPosition) |
void | dlInsertZoneList (list< DLZone * > zoneList, int cursorPosition) |
void | dlDeleteZone (int cursorPosition) |
void | dlDeleteZone (DLZone &deletedZone) |
void | dlClearZones () |
const DLImage * | dlGetPageImage () const |
void | dlPropagateSegmentationPointer () |
bool | dlCheckPageImageData () const |
Public Attributes | |
string | segID |
DLTagList | segTags |
list< DLZone > | segZones |
Protected Member Functions | |
bool | dlCheckSegmentationPointer () |
bool | dlIsWithinPageBoundaries (int pageWidth, int pageHeight) |
Protected Attributes | |
DLPage * | segPage |
Friends | |
class | DLPage |
|
DLSegmentation Constructor |
|
DLSegmentation Constructor
|
|
DLSegmentation Constructor |
|
Default DLSegmentation Destructor |
|
Append a new zone to the segmentation at the end of the current list of zones
|
|
Append a list of new zones to the segmentation at the end of the current list
|
|
Check whether the page image has been initialized
|
|
Check whether each zone currently in the segmentation has the correct DLSegmentation*.
|
|
Clear the list of zones in the segmentation |
|
Delete a specific zone from the segmentation
|
|
Delete a zone at a given position from the segmentation
|
|
Get the number of zones in the segmentation
|
|
Get page height
|
|
Get const DLImage* to the page image
|
|
Get page width
|
|
Check whether the current list of zones in the segmentation is empty
|
|
Insert a new zone to the segmentation at the specified position of the current list
|
|
Insert a list of new zones to the segmentation starting from the specified position in the current list
|
|
Check whether all the zones in the segmentation are within the dimensions of the page
|
|
Propagate the DLSegmentation* down to all the zones in this segmentation and refresh the DLZone* to the parent zone at each level of zone hierarchy |
|
Overload equality operator |
|
|
|
|
|
|
|
|
|
|