polar_trans_contour_xld_invpolar_trans_contour_xld_invPolarTransContourXldInvPolarTransContourXldInvpolar_trans_contour_xld_inv (算子)

名称

polar_trans_contour_xld_invpolar_trans_contour_xld_invPolarTransContourXldInvPolarTransContourXldInvpolar_trans_contour_xld_inv — 将极坐标系中的轮廓变换回笛卡尔坐标系。

签名

polar_trans_contour_xld_inv(PolarContour : XYTransContour : Row, Column, AngleStart, AngleEnd, RadiusStart, RadiusEnd, WidthIn, HeightIn, Width, Height : )

Herror polar_trans_contour_xld_inv(const Hobject PolarContour, Hobject* XYTransContour, double Row, double Column, double AngleStart, double AngleEnd, double RadiusStart, double RadiusEnd, const Hlong WidthIn, const Hlong HeightIn, const Hlong Width, const Hlong Height)

Herror T_polar_trans_contour_xld_inv(const Hobject PolarContour, Hobject* XYTransContour, const Htuple Row, const Htuple Column, const Htuple AngleStart, const Htuple AngleEnd, const Htuple RadiusStart, const Htuple RadiusEnd, const Htuple WidthIn, const Htuple HeightIn, const Htuple Width, const Htuple Height)

void PolarTransContourXldInv(const HObject& PolarContour, HObject* XYTransContour, const HTuple& Row, const HTuple& Column, const HTuple& AngleStart, const HTuple& AngleEnd, const HTuple& RadiusStart, const HTuple& RadiusEnd, const HTuple& WidthIn, const HTuple& HeightIn, const HTuple& Width, const HTuple& Height)

HXLDCont HXLDCont::PolarTransContourXldInv(const HTuple& Row, const HTuple& Column, double AngleStart, double AngleEnd, const HTuple& RadiusStart, const HTuple& RadiusEnd, Hlong WidthIn, Hlong HeightIn, Hlong Width, Hlong Height) const

HXLDCont HXLDCont::PolarTransContourXldInv(double Row, double Column, double AngleStart, double AngleEnd, double RadiusStart, double RadiusEnd, Hlong WidthIn, Hlong HeightIn, Hlong Width, Hlong Height) const

static void HOperatorSet.PolarTransContourXldInv(HObject polarContour, out HObject XYTransContour, HTuple row, HTuple column, HTuple angleStart, HTuple angleEnd, HTuple radiusStart, HTuple radiusEnd, HTuple widthIn, HTuple heightIn, HTuple width, HTuple height)

HXLDCont HXLDCont.PolarTransContourXldInv(HTuple row, HTuple column, double angleStart, double angleEnd, HTuple radiusStart, HTuple radiusEnd, int widthIn, int heightIn, int width, int height)

HXLDCont HXLDCont.PolarTransContourXldInv(double row, double column, double angleStart, double angleEnd, double radiusStart, double radiusEnd, int widthIn, int heightIn, int width, int height)

def polar_trans_contour_xld_inv(polar_contour: HObject, row: Union[int, float], column: Union[int, float], angle_start: float, angle_end: float, radius_start: Union[int, float], radius_end: Union[int, float], width_in: int, height_in: int, width: int, height: int) -> HObject

描述

polar_trans_contour_xld_invpolar_trans_contour_xld_invPolarTransContourXldInvPolarTransContourXldInvPolarTransContourXldInvpolar_trans_contour_xld_inv transforms the polar coordinate representation of a contour, stored in PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour, back onto an annular arc in Cartesian coordinates, described by the radii RadiusStartRadiusStartRadiusStartRadiusStartradiusStartradius_start and RadiusEndRadiusEndRadiusEndRadiusEndradiusEndradius_end and the angles AngleStartAngleStartAngleStartAngleStartangleStartangle_start and AngleEndAngleEndAngleEndAngleEndangleEndangle_end with the center point located at (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn). All of these values can be chosen as real numbers. In addition, the dimensions of the virtual image containing the contour PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour must be given in WidthInWidthInWidthInWidthInwidthInwidth_in and HeightInHeightInHeightInHeightInheightInheight_in. WidthInWidthInWidthInWidthInwidthInwidth_in-1 is the column coordinate corresponding to AngleEndAngleEndAngleEndAngleEndangleEndangle_end and HeightInHeightInHeightInHeightInheightInheight_in-1 is the row coordinate corresponding to RadiusEndRadiusEndRadiusEndRadiusEndradiusEndradius_end. AngleStartAngleStartAngleStartAngleStartangleStartangle_start and RadiusStartRadiusStartRadiusStartRadiusStartradiusStartradius_start correspond to column and row coordinate 0. Furthermore, the dimensions WidthWidthWidthWidthwidthwidth and HeightHeightHeightHeightheightheight of the virtual output image containing the transformed contour XYTransContourXYTransContourXYTransContourXYTransContourXYTransContourxytrans_contour are required. The output contour is cropped at the borders of this virtual output image.

polar_trans_contour_xld_invpolar_trans_contour_xld_invPolarTransContourXldInvPolarTransContourXldInvPolarTransContourXldInvpolar_trans_contour_xld_inv is the inverse function of polar_trans_contour_xldpolar_trans_contour_xldPolarTransContourXldPolarTransContourXldPolarTransContourXldpolar_trans_contour_xld

The call sequence:
polar_trans_contour_xld(Contour, PolarContour, Row, Column, rad(360), 0, 0, Radius, Width, Height)polar_trans_contour_xld(Contour, PolarContour, Row, Column, rad(360), 0, 0, Radius, Width, Height)PolarTransContourXld(Contour, PolarContour, Row, Column, rad(360), 0, 0, Radius, Width, Height)PolarTransContourXld(Contour, PolarContour, Row, Column, rad(360), 0, 0, Radius, Width, Height)PolarTransContourXld(Contour, PolarContour, Row, Column, rad(360), 0, 0, Radius, Width, Height)polar_trans_contour_xld(Contour, PolarContour, Row, Column, rad(360), 0, 0, Radius, Width, Height)
polar_trans_contour_xld_inv(PolarContour, XYTransContour, Row, Column, rad(360), 0, 0, Radius, Width, Height, WidthOut, HeightOut)polar_trans_contour_xld_inv(PolarContour, XYTransContour, Row, Column, rad(360), 0, 0, Radius, Width, Height, WidthOut, HeightOut)PolarTransContourXldInv(PolarContour, XYTransContour, Row, Column, rad(360), 0, 0, Radius, Width, Height, WidthOut, HeightOut)PolarTransContourXldInv(PolarContour, XYTransContour, Row, Column, rad(360), 0, 0, Radius, Width, Height, WidthOut, HeightOut)PolarTransContourXldInv(PolarContour, XYTransContour, Row, Column, rad(360), 0, 0, Radius, Width, Height, WidthOut, HeightOut)polar_trans_contour_xld_inv(PolarContour, XYTransContour, Row, Column, rad(360), 0, 0, Radius, Width, Height, WidthOut, HeightOut)
returns the contour ContourContourContourContourcontourcontour, restricted to the circle around (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn) with radius RadiusRadiusRadiusRadiusradiusradius, as its output contour XYTransContourXYTransContourXYTransContourXYTransContourXYTransContourxytrans_contour.

Note that XYTransContourXYTransContourXYTransContourXYTransContourXYTransContourxytrans_contour can consist of more than one contour because PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour may be cropped at the borders of the virtual output image given by WidthWidthWidthWidthwidthwidth and HeightHeightHeightHeightheightheight

If more than one contour is passed in PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour, their transformations are computed individually and stored as a tuple in XYTransContourXYTransContourXYTransContourXYTransContourXYTransContourxytrans_contour. However, since one contour may be transformed into several contours, there is no relation between the indices of the contours in the input tuple PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour and the indices in the output tuple XYTransContourXYTransContourXYTransContourXYTransContourXYTransContourxytrans_contour

更多信息

有关 HALCON 中使用的不同二维坐标系的说明,请参阅 变换 / 二维变换 一章的引言。

注意

Only the contour points are transformed. As the polar transformation is not affine, polar_trans_contour_xld_invpolar_trans_contour_xld_invPolarTransContourXldInvPolarTransContourXldInvPolarTransContourXldInvpolar_trans_contour_xld_inv only produces reliable results if the spacing of the contour points is small. Existing attributes are not transformed.

执行信息

参数

PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour (输入对象)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject

Input contour.

XYTransContourXYTransContourXYTransContourXYTransContourXYTransContourxytrans_contour (输出对象)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject *

Output contour.

RowRowRowRowrowrow (输入控制)  number HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Row coordinate of the center of the arc.

默认值: 256

建议值: 0, 16, 32, 64, 128, 240, 256, 480, 512

ColumnColumnColumnColumncolumncolumn (输入控制)  number HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Column coordinate of the center of the arc.

默认值: 256

建议值: 0, 16, 32, 64, 128, 256, 320, 512, 640

AngleStartAngleStartAngleStartAngleStartangleStartangle_start (输入控制)  angle.rad HTuplefloatHTupleHtuple (real) (double) (double) (double)

Angle of the ray to map the column coordinate 0 of PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour to.

默认值: 0.0

建议值: 0.0, 0.78539816, 1.57079632, 3.141592654, 6.2831853

值范围: -6.2831853 ≤ AngleStart AngleStart AngleStart AngleStart angleStart angle_start ≤ 6.2831853

AngleEndAngleEndAngleEndAngleEndangleEndangle_end (输入控制)  angle.rad HTuplefloatHTupleHtuple (real) (double) (double) (double)

Angle of the ray to map the column coordinate WidthInWidthInWidthInWidthInwidthInwidth_in-1 of PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour to.

默认值: 6.2831853

建议值: 0.0, 0.78539816, 1.57079632, 3.141592654, 6.2831853

值范围: -6.2831853 ≤ AngleEnd AngleEnd AngleEnd AngleEnd angleEnd angle_end ≤ 6.2831853

RadiusStartRadiusStartRadiusStartRadiusStartradiusStartradius_start (输入控制)  number HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Radius of the circle to map the row coordinate 0 of PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour to.

默认值: 0

建议值: 0, 16, 32, 64, 100, 128, 256, 512

值范围: 0 ≤ RadiusStart RadiusStart RadiusStart RadiusStart radiusStart radius_start ≤ 32767

RadiusEndRadiusEndRadiusEndRadiusEndradiusEndradius_end (输入控制)  number HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Radius of the circle to map the row coordinate HeightInHeightInHeightInHeightInheightInheight_in-1 of PolarContourPolarContourPolarContourPolarContourpolarContourpolar_contour to.

默认值: 100

建议值: 0, 16, 32, 64, 100, 128, 256, 512

值范围: 0 ≤ RadiusEnd RadiusEnd RadiusEnd RadiusEnd radiusEnd radius_end ≤ 32767

WidthInWidthInWidthInWidthInwidthInwidth_in (输入控制)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the virtual input image.

默认值: 512

建议值: 256, 320, 512, 640, 800, 1024

值范围: 0 ≤ WidthIn WidthIn WidthIn WidthIn widthIn width_in ≤ 32767

HeightInHeightInHeightInHeightInheightInheight_in (输入控制)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the virtual input image.

默认值: 512

建议值: 240, 256, 480, 512, 600, 1024

值范围: 0 ≤ HeightIn HeightIn HeightIn HeightIn heightIn height_in ≤ 32767

WidthWidthWidthWidthwidthwidth (输入控制)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the virtual output image.

默认值: 512

建议值: 256, 320, 512, 640, 800, 1024

值范围: 0 ≤ Width Width Width Width width width ≤ 32767

HeightHeightHeightHeightheightheight (输入控制)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the virtual output image.

默认值: 512

建议值: 240, 256, 480, 512, 600, 1024

值范围: 0 ≤ Height Height Height Height height height ≤ 32767

另见

polar_trans_image_extpolar_trans_image_extPolarTransImageExtPolarTransImageExtPolarTransImageExtpolar_trans_image_ext, polar_trans_image_invpolar_trans_image_invPolarTransImageInvPolarTransImageInvPolarTransImageInvpolar_trans_image_inv, polar_trans_regionpolar_trans_regionPolarTransRegionPolarTransRegionPolarTransRegionpolar_trans_region, polar_trans_region_invpolar_trans_region_invPolarTransRegionInvPolarTransRegionInvPolarTransRegionInvpolar_trans_region_inv, polar_trans_contour_xldpolar_trans_contour_xldPolarTransContourXldPolarTransContourXldPolarTransContourXldpolar_trans_contour_xld

模块

基础