You are here: Start » AVL.NET » AVL.RegionDiameter Method
AVL.RegionDiameter Method
Computes the longest segment connecting two pixels contained in region and its length.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void RegionDiameter( AvlNet.Region inRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. |
Description
The operation finds the most distant pair of region pixels and returns the distance between them (outDiameterLength) and the segment representing the diameter (outDiameter). If there is more than one pair of maximal distance, the returned segment will correspond to one of them. The orientation of the resulting outDiameter is always between 0 and 180 degrees.
Examples
Errors
Error type | Description |
---|---|
DomainError | Empty region in RegionDiameter |