EXOBJ_OBJECT

typedef struct EXOBJ_OBJECT 
{ 
   L_UINT uStructSize; 
   pEXOBJ_OBJECT pPrev; 
   pEXOBJ_OBJECT pNext; 
   L_BOOL bWhiteOnBlack; 
   L_RECT rcTotalBounds; 
   pEXOBJ_OUTLINE_POINTLIST pOutline; 
   pEXOBJ_SEGMENTLIST pRegionHorizontal; 
   pEXOBJ_SEGMENTLIST pRegionVertical; 
   L_UINT64 uImmediatePixelCount; 
   pEXOBJ_OBJECTLIST pChildren; 
   L_UINT64 uImmediateChildCount; 
   pEXOBJ_OBJECTLIST pSiblings; 
} EXOBJ_OBJECT, * pEXOBJ_OBJECT; 

Contains the information about the extracted object.

Members

L_UINT uStructSize

Size of this structure in bytes, for versioning. Use the sizeof(EXOBJ_OBJECT) operator to calculate this value.

pEXOBJ_OBJECT pPrev

Pointer to EXOBJ_OBJECT structure representing the previous object in the list.

pEXOBJ_OBJECT pNext

Pointer to EXOBJ_OBJECT structure representing the next object in the list.

L_BOOL bWhiteOnBlack

Boolean flag that indicates whether this object is white on a black background. Possible values are:

Value Meaning
TRUE The object is white on a black background.
FALSE The object is not white on a black background.

L_RECT rcTotalBounds

The total bounding rectangle for an object (defaults to outline bounds, but must be maintained if siblings are added by user).

pEXOBJ_OUTLINE_POINTLIST pOutline

Pointer to the outline for an object.

Note: This will contain four points (one at each corner) if the outline is around a single pixel.

pEXOBJ_SEGMENTLIST pRegionHorizontal

Pointer to the region for an object stored as a collection of horizontal segments.

pEXOBJ_SEGMENTLIST pRegionVertical

Pointer to the region for an object stored as a collection of vertical segments.

L_UINT64 uImmediatePixelCount

The number of pixels for the object excluding any children.

pEXOBJ_OBJECTLIST pChildren

Pointer to the children of the object.

L_UINT64 uImmediateChildCount

The number of immediate children (this will be equal to pChildren->uCount).

pEXOBJ_OBJECTLIST pSiblings

Optional pointer to the siblings of the object.

Note: This will not be updated by L_ExtractObjectsBitmap, but will be used by helper functions if updated by the user.

Comments

The structure is used by:

See Also

Functions

Help Version 21.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.