GetFeretsDiameter Method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short GetFeretsDiameter()

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.

This method updates the following properties with information about the Feret's diameter:

FeretsDiameterLength property

FeretsFirstIndex property

FeretsSecondIndex property

See Also

Elements:

GetRgnContourPoints method, GetRgnPerimeterLength method, Segment method, RgnPerimeterLength property

Topics:

Raster Images: Creating and Using a Region