Leaper Vision Toolkit
中文 / English 2.x
Public Member Functions
ILGeomOp Interface Reference

This interface expose APIs for basic and advanced geometry calculation functionalities. More...

Inheritance diagram for ILGeomOp:
ILObject LGeomOp

Public Member Functions

ILRectBoundingRect (ILObject *shape)
 
ILRectInnerRect (ILImage *mask)
 
ILRectInnerSquare (ILImage *mask)
 
- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

Detailed Description

This interface expose APIs for basic and advanced geometry calculation functionalities.

To use this interface, you should create a LGeomOp object.

Example Code

Member Function Documentation

◆ BoundingRect()

ILRect* BoundingRect ( ILObject shape)

Get the bounding rectangle of the input object

Parameters
[in]shapeThe input object, either a geometric shape, a region or a sortable object.
Return values
resultRectReturn the result rectangle object

◆ InnerRect()

ILRect* InnerRect ( ILImage mask)

Find the largest inner rectangle in the given binary mask, which contains or goes through only white(non-zero) pixels.

Parameters
[in]mask The input mask image
Return values
resultRectReturn the result rectangle object
See also
InnerSquare()

◆ InnerSquare()

ILRect* InnerSquare ( ILImage mask)

Find the largest inner square in the given binary mask, which contains or goes through only white(non-zero) pixels.

Parameters
[in]mask The input mask image
Return values
resultSquareReturn the result square object
See also
InnerRect()