elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayEllipticAxisGrayelliptic_axis_gray (算子名称)

名称

elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayEllipticAxisGrayelliptic_axis_gray — Compute the orientation and major axes of a region in a gray value image.

参数签名

elliptic_axis_gray(区域, Image : : : Ra, Rb, Phi)

Herror elliptic_axis_gray(const Hobject 区域, const Hobject Image, double* Ra, double* Rb, double* Phi)

Herror T_elliptic_axis_gray(const Hobject 区域, const Hobject Image, Htuple* Ra, Htuple* Rb, Htuple* Phi)

void EllipticAxisGray(const HObject& 区域, const HObject& Image, HTuple* Ra, HTuple* Rb, HTuple* Phi)

HTuple HImage::EllipticAxisGray(const HRegion& 区域, HTuple* Rb, HTuple* Phi) const

double HImage::EllipticAxisGray(const HRegion& 区域, double* Rb, double* Phi) const

HTuple HRegion::EllipticAxisGray(const HImage& Image, HTuple* Rb, HTuple* Phi) const

double HRegion::EllipticAxisGray(const HImage& Image, double* Rb, double* Phi) const

static void HOperatorSet.EllipticAxisGray(HObject 区域, HObject image, out HTuple ra, out HTuple rb, out HTuple phi)

HTuple HImage.EllipticAxisGray(HRegion 区域, out HTuple rb, out HTuple phi)

double HImage.EllipticAxisGray(HRegion 区域, out double rb, out double phi)

HTuple HRegion.EllipticAxisGray(HImage image, out HTuple rb, out HTuple phi)

double HRegion.EllipticAxisGray(HImage image, out double rb, out double phi)

def elliptic_axis_gray(区域: HObject, image: HObject) -> Tuple[Sequence[float], Sequence[float], Sequence[float]]

def elliptic_axis_gray_s(区域: HObject, image: HObject) -> Tuple[float, float, float]

描述

该算子 elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayEllipticAxisGrayEllipticAxisGrayelliptic_axis_gray calculates the length of the axes RaRaRaRarara and RbRbRbRbrbrb and the orientation PhiPhiPhiPhiphiphi of the ellipse having the “same orientation” and the “aspect ratio” as the input region in 区域区域区域区域区域区域. Therefore, gray value moments which are derived from the ImageImageImageImageimageimage are used. Several input regions can be passed in 区域区域区域区域区域区域 as tuples. The length of the major axis RaRaRaRarara and the minor axis RbRbRbRbrbrb as well as the orientation of the major axis with regard to the x-axis (PhiPhiPhiPhiphiphi) are determined. The angle is returned in radians. The calculation is done analogously to elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxiselliptic_axis. The only difference is that in elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayEllipticAxisGrayEllipticAxisGrayelliptic_axis_gray the gray value moments are used instead of the region moments. For the definition of the gray value moments, see area_center_grayarea_center_grayAreaCenterGrayAreaCenterGrayAreaCenterGrayarea_center_gray.

Note, that in the case where the gray value area is zero the length of the axes RaRaRaRarara and RbRbRbRbrbrb as well as the orientation PhiPhiPhiPhiphiphi are also set to zero.

注意

Note that 该算子 elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayEllipticAxisGrayEllipticAxisGrayelliptic_axis_gray only considers the given 区域区域区域区域区域区域 and ignores any previously set domain of the input image ImageImageImageImageimageimage.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Region(s) to be examined.

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Gray value image.

RaRaRaRarara (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Major axis of the region.

RbRbRbRbrbrb (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Minor axis of the region.

PhiPhiPhiPhiphiphi (output_control)  angle.rad(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Angle enclosed by the major axis and the x-axis.

结果

elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayEllipticAxisGrayEllipticAxisGrayelliptic_axis_gray returns 2 ( H_MSG_TRUE) if all parameters are correct and no error occurs during execution. If the input is empty the behavior can be 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>). If necessary, an exception is raised.

可能的前置算子

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, connectionconnectionConnectionConnectionConnectionconnection

可能的后置算子

gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipsegen_ellipse

可替代算子

elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxiselliptic_axis

参考其它

area_center_grayarea_center_grayAreaCenterGrayAreaCenterGrayAreaCenterGrayarea_center_gray

模块

Foundation