Leaper Vision Toolkit
中文 / English 2.x
Public Member Functions | Properties
ILSortable Interface Reference

This interface represent a sortable LPV class. More...

Inheritance diagram for ILSortable:
LBarcodeResult LBlob LAnnulusRegion LAnnulusSectorRegion LCircleRegion LCompoundRegion LEllipseRegion LMaskRegion LPolyRegion LRectRegion LRotRectRegion LArc LCircle LEllipse LLine LPoint LPoints LPolygon LRect LTransform LCircleResult LLineResult LContourResult LCrossMarkResult LPathResult LOCRChar LOCRLine LOCRResult LMatchResult

Public Member Functions

double GetPosX (LPVPositionMode posMode)
 
double GetPosY (LPVPositionMode posMode)
 
double GetScore ()
 

Properties

int Index [get, set]
 

Detailed Description

This interface represent a sortable LPV class.

You could sort the collections of sortable classes using LSorter. The result index of sorting is set via Index.

The following lists some sortable LPV classes:

LPVCoreLibLRectRegion, LRotRectRegion, LCircleRegion, LPolyRegion, LMaskRegion, LAnnulusRegion, LEllipseRegion, LAnnulusSectorRegion LCompoundRegion
LPVGeomLibLPoint, LPoints, LCircle, LLine, LPolygon, LRect, LEllipse, LArc
LPVPatLibLMatchResult, LMatchResults
LPVBlobLibLBlob, LBlobResults
LPVLocateLibLLineResult, LCircleResult
LPVLocateXLibLPathResult, LContourResult
LPVGaugeLibLShapeGaugeResult
LPVMathLibLDataList
LPVBarcodeLibLBarcodeResult
LPVOCRLibLOCRChar, LOCRLine, LOCRResult

Example Code

Member Function Documentation

◆ GetPosX()

double GetPosX ( LPVPositionMode  posMode)

The x-coordinate of the object's position, used for x-related sorting like LPVSortByX, LPVSortByColumn, etc.

Parameters
[in]posModeSpecify the position mode, by default, it's using the center point.

◆ GetPosY()

double GetPosY ( LPVPositionMode  posMode)

The y-coordinate of the object's position, used for y-related sorting like LPVSortByY, LPVSortByColumn, etc.

Parameters
[in]posModeSpecify the position mode, by default, it's using the center point.

◆ GetScore()

double GetScore ( )

The score of the object, used for score sorting, aka. LPVSortByScore

Property Documentation

◆ Index

int Index
getset

The index of the object