ClassesClassesClassesClasses | | | | Operators

elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayelliptic_axis_grayEllipticAxisGrayEllipticAxisGray (Operator)


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


elliptic_axis_gray(Regions, Image : : : Ra, Rb, Phi)

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

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

Herror elliptic_axis_gray(Hobject Regions, Hobject Image, double* Ra, double* Rb, double* Phi)

Herror elliptic_axis_gray(Hobject Regions, Hobject Image, HTuple* Ra, HTuple* Rb, HTuple* Phi)

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

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

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

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

double HImage::EllipticAxisGray(const HRegion& Regions, 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

void HOperatorSetX.EllipticAxisGray(
[in] IHUntypedObjectX* Regions, [in] IHUntypedObjectX* Image, [out] VARIANT* Ra, [out] VARIANT* Rb, [out] VARIANT* Phi)

VARIANT HImageX.EllipticAxisGray(
[in] IHRegionX* Regions, [out] VARIANT* Rb, [out] VARIANT* Phi)

VARIANT HRegionX.EllipticAxisGray(
[in] IHImageX* Image, [out] VARIANT* Rb, [out] VARIANT* Phi)

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

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

double HImage.EllipticAxisGray(HRegion regions, 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)


The operator elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayelliptic_axis_grayEllipticAxisGrayEllipticAxisGray calculates the length of the axes and the orientation of the ellipse having the “same orientation” and the “aspect ratio” as the input region. Several input regions can be passed in RegionsRegionsRegionsRegionsRegionsregions 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_axisEllipticAxiselliptic_axisEllipticAxisEllipticAxis. The only difference is that in elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayelliptic_axis_grayEllipticAxisGrayEllipticAxisGray the gray value moments are used instead of the region moments. The gray value moments are derived from the input image ImageImageImageImageImageimage. For the definition of the gray value moments, see area_center_grayarea_center_grayAreaCenterGrayarea_center_grayAreaCenterGrayAreaCenterGray.


Note that the operator elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayelliptic_axis_grayEllipticAxisGrayEllipticAxisGray only considers the given RegionsRegionsRegionsRegionsRegionsregions and ignores any previously set domain of the input image ImageImageImageImageImageimage.



RegionsRegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Region(s) to be examined.

ImageImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Gray value image.

RaRaRaRaRara (output_control)  real(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Major axis of the region.

RbRbRbRbRbrb (output_control)  real(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Minor axis of the region.

PhiPhiPhiPhiPhiphi (output_control)  angle.rad(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

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


elliptic_axis_grayelliptic_axis_grayEllipticAxisGrayelliptic_axis_grayEllipticAxisGrayEllipticAxisGray 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>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If necessary, an exception is raised.

Possible Predecessors

thresholdthresholdThresholdthresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionconnectionConnectionConnection

Possible Successors




See also




ClassesClassesClassesClasses | | | | Operators