get_region_thicknessT_get_region_thicknessGetRegionThicknessGetRegionThicknessget_region_thickness (算子名称)

名称

get_region_thicknessT_get_region_thicknessGetRegionThicknessGetRegionThicknessget_region_thickness — Access the thickness of a region along the main axis.

参数签名

get_region_thickness(区域 : : : Thickness, Histogramm)

Herror T_get_region_thickness(const Hobject 区域, Htuple* Thickness, Htuple* Histogramm)

void GetRegionThickness(const HObject& 区域, HTuple* Thickness, HTuple* Histogramm)

HTuple HRegion::GetRegionThickness(HTuple* Histogramm) const

static void HOperatorSet.GetRegionThickness(HObject 区域, out HTuple thickness, out HTuple histogramm)

HTuple HRegion.GetRegionThickness(out HTuple histogramm)

def get_region_thickness(区域: HObject) -> Tuple[Sequence[int], Sequence[int]]

描述

该算子 get_region_thicknessget_region_thicknessGetRegionThicknessGetRegionThicknessGetRegionThicknessget_region_thickness calculates the thickness of the regions along the main axis (see elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxiselliptic_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 该算子 get_region_thicknessget_region_thicknessGetRegionThicknessGetRegionThicknessGetRegionThicknessget_region_thickness returns the HistogrammHistogrammHistogrammHistogrammhistogrammhistogramm of the thicknesses of the region. The length of the histogram corresponds to the largest occurring thickness in the observed region.

注意

Only one region may be passed. If the region has several connection components, only the first one is investigated. All other components are ignored.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region objectHRegionHObjectHRegionHobject

Region to be analyzed.

ThicknessThicknessThicknessThicknessthicknessthickness (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Thickness of the region along its main axis.

HistogrammHistogrammHistogrammHistogrammhistogrammhistogramm (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Histogram of the thickness of the region along its main axis.

结果

该算子 get_region_thicknessget_region_thicknessGetRegionThicknessGetRegionThicknessGetRegionThicknessget_region_thickness 返回值 2 ( H_MSG_TRUE) if exactly one region is passed. The behavior in case of empty input (no input regions available) is set via 该算子 set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>).

可能的前置算子

sobel_ampsobel_ampSobelAmpSobelAmpSobelAmpsobel_amp, thresholdthresholdThresholdThresholdThresholdthreshold, connectionconnectionConnectionConnectionConnectionconnection, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, select_objselect_objSelectObjSelectObjSelectObjselect_obj

参考其它

copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj, elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxiselliptic_axis

模块

Foundation