ClassesClasses | | Operators

distance_rr_min_dildistance_rr_min_dilDistanceRrMinDilDistanceRrMinDil (Operator)

Name

distance_rr_min_dildistance_rr_min_dilDistanceRrMinDilDistanceRrMinDil — Minimum distance between two regions with the help of dilation.

Signature

distance_rr_min_dil(Regions1, Regions2 : : : MinDistance)

Herror distance_rr_min_dil(const Hobject Regions1, const Hobject Regions2, Hlong* MinDistance)

Herror T_distance_rr_min_dil(const Hobject Regions1, const Hobject Regions2, Htuple* MinDistance)

void DistanceRrMinDil(const HObject& Regions1, const HObject& Regions2, HTuple* MinDistance)

HTuple HRegion::DistanceRrMinDil(const HRegion& Regions2) const

static void HOperatorSet.DistanceRrMinDil(HObject regions1, HObject regions2, out HTuple minDistance)

HTuple HRegion.DistanceRrMinDil(HRegion regions2)

Description

The operator distance_rr_min_dildistance_rr_min_dilDistanceRrMinDilDistanceRrMinDilDistanceRrMinDil calculates the minimum distance between pairs of regions, by iteratively applying dilations on both regions until their intersection is non empty. If several regions are passed in Regions1Regions1Regions1Regions1regions1 and Regions2Regions2Regions2Regions2regions2 the distance between the i-th elements in each case is calculated. It then forms the i-th entry in the output parameter MinDistanceMinDistanceMinDistanceMinDistanceminDistance. The calculation is carried out with the help of dilation with the Golay element 'h'. The result is:

               Number of iterations * 2 - 1.
The mask 'h' has the effect that precisely the maximum metrics are calculated.

Attention

Both parameters must contain the same number of regions. The regions must not be empty.

Execution Information

Parameters

Regions1Regions1Regions1Regions1regions1 (input_object)  region(-array) objectHRegionHRegionHobject

Regions to be examined.

Regions2Regions2Regions2Regions2regions2 (input_object)  region(-array) objectHRegionHRegionHobject

Regions to be examined.

MinDistanceMinDistanceMinDistanceMinDistanceminDistance (output_control)  integer(-array) HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Minimum distances of the regions.

Assertion: -1 <= MinDistance

Result

The operator distance_rr_min_dildistance_rr_min_dilDistanceRrMinDilDistanceRrMinDilDistanceRrMinDil returns the value 2 (H_MSG_TRUE) if the input is not empty. Otherwise an exception is raised.

Possible Predecessors

thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionConnectionConnection

Alternatives

distance_rr_mindistance_rr_minDistanceRrMinDistanceRrMinDistanceRrMin, dilation1dilation1Dilation1Dilation1Dilation1, intersectionintersectionIntersectionIntersectionIntersection

Module

Foundation


ClassesClasses | | Operators