GetFeretsDiameter method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int GetFeretsDiameter(PPoint pPoints, unsigned uPointsCount, unsigned &uFeretsDiameter, unsigned &uFirstIndex, unsigned &uSecondIndex);

Delphi Syntax

Function GetFeretsDiameter (pPoints: pPOINT; uPointsCount: L_UINT; var uFeretsDiameter: L_UINT; var uFirstIndex: L_UINT; var uSecondIndex: L_UINT): L_INT;

Overview

Refer to Creating and Using a Bitmap Region

Remarks

(Raster Pro and above toolkits) Computes the Feret’s diameter (caliper length) of an object, which is the maximum distance between any two points of the perimeter of a region, and finds the end points.

This diameter is equivalent to the minimum diameter of a tube through which this object/region can pass.

See Also

Elements:

GetRgnContourPoints method, GetRgnPerimeterLength method, Segment method

Topics:

Raster Images: Creating and Using a Region