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

This interface expose APIs to create/modify an ellipse region object. More...

Inheritance diagram for ILEllipseRegion:
ILRegion ILObject LEllipseRegion

Public Member Functions

void SetPlacement (double cenx, double ceny, double w, double h, double a)
 
- Public Member Functions inherited from ILRegion
ILCompoundRegionAdd (ILRegion *other)
 
void Drag (LPVRoiHandle roiHandle, int x, int y, double zoomX, double zoomY, double panX, double panY)
 
void Draw (HDC hdc, BOOL drawHandles, double zoomX, double zoomY, double panX, double panY)
 
void EnableHandle (LPVRoiHandle roiHandle, BOOL enabled)
 
LPVRoiHandle HitTest (int x, int y, double zoomX, double zoomY, double panX, double panY)
 
ILCompoundRegionIntersect (ILRegion *other)
 
ILCompoundRegionInvert ()
 
void MapFromImage (double imagePointX, double imagePointY, double *regionPointX, double *regionPointY)
 
ILObjectMapObjectFromImage (ILObject *imageObject)
 
ILObjectMapObjectToImage (ILObject *regionObject)
 
void MapToImage (double regionPointX, double regionPointY, double *imagePointX, double *imagePointY)
 
void ReduceImage (ILImage *image, ILImage **newImage, ILImage **newMask)
 
ILRegionRotate (double da)
 
ILRegionRotateAndTranslate (double x, double y, double newX, double newY, double da)
 
ILRegionScale (double factorX, double factorY)
 
ILCompoundRegionSubtract (ILRegion *other)
 
ILImageToMask (int w, int h)
 
ILRegionTranslate (double offsetX, double offsetY)
 
ILCompoundRegionUnion (ILRegion *other)
 
ILCompoundRegionXOR (ILRegion *other)
 
- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

Properties

double Angle [get, set]
 The angle of the ellipse region, aka. the orientation of the long axis.
 
double CenterX [get, set]
 The x-coordinate of the ellipse region's center.
 
double CenterY [get, set]
 The y-coordinate of the ellipse region's center.
 
double Height [get, set]
 The length of the ellipse region's minor axis.
 
double Width [get, set]
 The length of the ellipse region's major axis.
 
- Properties inherited from ILRegion
LPVInterpolationMethod InterpolationMethod [get, set]
 The interpolation method used in image reduction.
 
double ReduceAngle [get, set]
 The angle of the reduced result.
By default, it's 0. A non-zero value means we'll rotated the reduced result image by the angle clockwise. More...
 
double ReduceScale [get, set]
 The scale of the reduced result.
By default, it's 1. Change this value to scale the reduced result image. More...
 

Detailed Description

This interface expose APIs to create/modify an ellipse region object.

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

Example Code

Member Function Documentation

◆ SetPlacement()

void SetPlacement ( double  cenx,
double  ceny,
double  w,
double  h,
double  a 
)

Modify the ellipse region's placement.

Parameters
[in]cenxThe x-coordinate of the ellipse region center.
[in]cenyThe y-coordinate of the ellipse region center.
[in]wThe width of the ellipse region.
[in]hThe height of the ellipse region.
[in]aThe angle of the ellipse region.