halcon算子翻译——get_image_size

名称

get_image_size - 返回图像的大小。

用法

get_image_size(Image : : : Width, Height)

描述

算子get_image_size返回输入图像的图像大小(宽度和高度)。

并行

●  支持计算设备上的对象。

●  多线程类型:可重入(与非独占算子并行运行)。
●  多线程范围:全局(可以从任何线程调用)。
●  不并行化处理。

参数

Image (input_object)   (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
  输入图像。


Width (output_control)    extent.x(-array) → (integer)
  图像宽度。


Height (output_control)    extent.y(-array) → (integer)
  图像高度。

结果

  算子get_image_size返回值2(H_MSG_TRUE)。 空输入(无可用输入图像)时的行为通过算子set_system('no_object_result',<Result>)设置。 如有必要,会引发异常。

Possible Predecessor

read_image

Alternatives

get_image_pointer1

See also

get_image_type

模块

Foundation

HDevelop例程

display_operators.hdev             结果可视化
count_fish_sticks.hdev              执行鱼棒的完整性检查
barcode_param_stop_after_result_num.hdev    使用条形码参数“stop_after_result_num”

原文地址:https://www.cnblogs.com/xhiong/p/get_image_size.html