Herror ::get_region_thickness (
    Hobject Region,
    HTuple *Thickness,
    HTuple *Histogramm
)
HTuple HRegion::GetRegionThickness (
    HTuple *Histogramm
) const

Access the thickness of a region along the main axis.

The operator ::get_region_thickness calculates the thickness of the regions along the main axis (see ::elliptic_axis) for each pixel of the section. The thickness at one point on the main axis is defined as the distance between the intersections of the contour with the plumb on the main axis in the respective point which are the furthest apart. Additionally the operator ::get_region_thickness returns the Histogramm of the thicknesses of the region. The length of the histogram corresponds to the largest occurring thickness in the observed region.


Attention

Only one region may be passed.


Parameters

Region (input_object)
region -> Hobject: HRegion
Region to be analysed.

Thickness (output_control)
integer-array -> HTuple.long *
Thickness of the region along its main axis.

Histogramm (output_control)
integer-array -> HTuple.long *
Histogram of the thickness of the region along its main axis.


Result

The operator ::get_region_thickness returns the value H_MSG_TRUE if exactly one region is passed. The behavior in case of empty input (no input regions available) is set via the operator ::set_system('no_object_result',<Result>).


Possible Predecessors

::sobel_amp, ::threshold, ::connection


See also

::copy_obj, ::elliptic_axis


Module

Region processing



Copyright © 1996-2002 MVTec Software GmbH