get_image_sizeget_image_sizeGetImageSizeGetImageSizeget_image_size (算子名称)
名称
get_image_sizeget_image_sizeGetImageSizeGetImageSizeget_image_size — Return the size of an image.
参数签名
def get_image_size(image: HObject) -> Tuple[Sequence[int], Sequence[int]]
def get_image_size_s(image: HObject) -> Tuple[int, int]
描述
该算子 get_image_sizeget_image_sizeGetImageSizeGetImageSizeGetImageSizeget_image_size returns the image
size (width and height) of the input image.
运行信息
- Supports objects on compute devices.
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
ImageImageImageImageimageimage (input_object) (multichannel-)image(-array) → objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
Input image.
WidthWidthWidthWidthwidthwidth (output_control) extent.x(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Width of image.
HeightHeightHeightHeightheightheight (output_control) extent.y(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Height of image.
结果
该算子 get_image_sizeget_image_sizeGetImageSizeGetImageSizeGetImageSizeget_image_size 返回值 2 (
H_MSG_TRUE)
.
The behavior in case of empty input (no input images available) is set via
该算子 set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>).
If necessary an exception is raised.
可能的前置算子
read_imageread_imageReadImageReadImageReadImageread_image
可替代算子
get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1get_image_pointer1
参考其它
get_image_typeget_image_typeGetImageTypeGetImageTypeGetImageTypeget_image_type
模块
Foundation