halcon算子翻译——get_image_type

名称

get_image_type - 返回图像的类型。

用法

get_image_type(Image : : : Type)

描述

算子get_image_type返回图像类型(Type ='byte','int2','uint2'等)。

注意

对于多通道的输入图像,返回第一个通道的类型。

并行

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

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

参数

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


Type (output_control)    string(-array) → (string)
  图像类型
  List of values: 'byte', 'complex', 'cyclic', 'direction', 'int1', 'int2', 'int4', 'int8', 'real', 'uint2', 'vector_field_absolute', 'vector_field_relative'

结果

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

Possible Predecessors

read_image

Alternatives

get_image_pointer1

See also

get_image_size

模块

Foundation

posted @ 2017-12-10 14:45  水行  阅读(429)  评论(0编辑  收藏  举报