polar_trans_image — 将图像变换为极坐标。
polar_trans_image 已过时,仅出于向后兼容性考虑而保留。 New applications should use
the operator polar_trans_image_ext instead.
polar_trans_image transforms an image in Cartesian coordinates
to an image in polar coordinates. The size of the resulting image
is selected with Width and Height.
Width determines the angular resolution, while
Height determines the resolution of the radius.
Row and Column determine the center of the
polar coordinate system in the original image ImageXY.
This point is mapped to the upper row of ImagePolar。
A point (x',y') in the result image corresponds to the point (x,y) in the original image in the following manner:
polar_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 中使用的不同二维坐标系的说明,请参阅 变换 / 二维变换 一章的引言。
ImageXY (输入对象) (multichannel-)image(-array) → object (byte* / int2* / uint2* / real*) *允许用于计算设备
Input image in Cartesian coordinates.
ImagePolar (输出对象) (multichannel-)image(-array) → object (byte / int2 / uint2 / real)
Result image in polar coordinates.
Row (输入控制) point.y → (integer)
Row coordinate of the center of the coordinate system.
默认值: 100
建议值: 0, 10, 100, 200
值范围:
0
≤
Row
≤
512
最小增量: 1
建议增量: 1
Column (输入控制) point.x → (integer)
Column coordinate of the center of the coordinate system.
默认值: 100
建议值: 0, 10, 100, 200
值范围:
0
≤
Column
≤
512
最小增量: 1
建议增量: 1
Width (输入控制) extent.x → (integer)
Width of the result image.
默认值: 314
建议值: 100, 200, 157, 314, 512
值范围:
2
≤
Width
≤
512
最小增量: 1
建议增量: 10
Height (输入控制) extent.y → (integer)
Height of the result image.
默认值: 200
建议值: 100, 128, 256, 512
值范围:
2
≤
Height
≤
512
最小增量: 1
建议增量: 10
read_image(Image,'monkey') dev_display (Image) polar_trans_image(Image,PolarImage,100,100,314,200) dev_display (PolarImage)
基础