polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagepolar_trans_image (算子)

名称

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagepolar_trans_image — 将图像变换为极坐标。

警告

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagePolarTransImagepolar_trans_image 已过时,仅出于向后兼容性考虑而保留。 New applications should use the operator polar_trans_image_extpolar_trans_image_extPolarTransImageExtPolarTransImageExtPolarTransImageExtpolar_trans_image_ext instead.

签名

polar_trans_image(ImageXY : ImagePolar : Row, Column, Width, Height : )

Herror polar_trans_image(const Hobject ImageXY, Hobject* ImagePolar, const Hlong Row, const Hlong Column, const Hlong Width, const Hlong Height)

Herror T_polar_trans_image(const Hobject ImageXY, Hobject* ImagePolar, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

void PolarTransImage(const HObject& ImageXY, HObject* ImagePolar, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

HImage HImage::PolarTransImage(Hlong Row, Hlong Column, Hlong Width, Hlong Height) const

static void HOperatorSet.PolarTransImage(HObject imageXY, out HObject imagePolar, HTuple row, HTuple column, HTuple width, HTuple height)

HImage HImage.PolarTransImage(int row, int column, int width, int height)

def polar_trans_image(image_xy: HObject, row: int, column: int, width: int, height: int) -> HObject

描述

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagePolarTransImagepolar_trans_image transforms an image in Cartesian coordinates to an image in polar coordinates. The size of the resulting image is selected with WidthWidthWidthWidthwidthwidth and HeightHeightHeightHeightheightheight. WidthWidthWidthWidthwidthwidth determines the angular resolution, while HeightHeightHeightHeightheightheight determines the resolution of the radius. RowRowRowRowrowrow and ColumnColumnColumnColumncolumncolumn determine the center of the polar coordinate system in the original image ImageXYImageXYImageXYImageXYimageXYimage_xy. This point is mapped to the upper row of ImagePolarImagePolarImagePolarImagePolarimagePolarimage_polar

A point (x',y') in the result image corresponds to the point (x,y) in the original image in the following manner:

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagePolarTransImagepolar_trans_image can be executed on an OpenCL device if the input image does not exceed the maximum size of image objects of the selected device. Due to numerical reasons, there can be slight differences in the output compared to the execution on the CPU.

更多信息

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

执行信息

参数

ImageXYImageXYImageXYImageXYimageXYimage_xy (输入对象)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte* / int2* / uint2* / real*) *允许用于计算设备

Input image in Cartesian coordinates.

ImagePolarImagePolarImagePolarImagePolarimagePolarimage_polar (输出对象)  (multichannel-)image(-array) objectHImageHObjectHImageHobject * (byte / int2 / uint2 / real)

Result image in polar coordinates.

RowRowRowRowrowrow (输入控制)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinate of the center of the coordinate system.

默认值: 100

建议值: 0, 10, 100, 200

值范围: 0 ≤ Row Row Row Row row row ≤ 512

最小增量: 1

建议增量: 1

ColumnColumnColumnColumncolumncolumn (输入控制)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinate of the center of the coordinate system.

默认值: 100

建议值: 0, 10, 100, 200

值范围: 0 ≤ Column Column Column Column column column ≤ 512

最小增量: 1

建议增量: 1

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

Width of the result image.

默认值: 314

建议值: 100, 200, 157, 314, 512

值范围: 2 ≤ Width Width Width Width width width ≤ 512

最小增量: 1

建议增量: 10

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

Height of the result image.

默认值: 200

建议值: 100, 128, 256, 512

值范围: 2 ≤ Height Height Height Height height height ≤ 512

最小增量: 1

建议增量: 10

示例(HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

示例(C)

read_image(&Image,"monkey");
disp_image(Image,WindowHandle);
polar_trans_image(Image,&PolarImage,100,100,314,200);
disp_image(PolarImage,WindowHandle);

示例(HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

示例(HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

示例(HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

模块

基础