pow_image pow_image PowImage PowImage pow_image (算子)
名称
pow_image pow_image PowImage PowImage pow_image — 将图像提高到幂。
签名
def pow_image (image : HObject, exponent : Union[int, float]) -> HObject
描述
pow_image pow_image PowImage PowImage PowImage pow_image raises the gray values of the input image
Image Image Image Image image image to the power Exponent Exponent Exponent Exponent exponent exponent and stores the result
in the image PowImage PowImage PowImage PowImage powImage pow_image . If Image Image Image Image image image contains gray
values that would overflow the range of PowImage PowImage PowImage PowImage powImage pow_image , e.g., >
7131.55017 for Exponent Exponent Exponent Exponent exponent exponent = 10 , the corresponding
gray values in PowImage PowImage PowImage PowImage powImage pow_image are set to the largest value
representable in PowImage PowImage PowImage PowImage powImage pow_image (i.e.,
). If Image Image Image Image image image contains gray
values that cannot be raised to the power Exponent Exponent Exponent Exponent exponent exponent , i.e.,
if the gray values are negative and Exponent Exponent Exponent Exponent exponent exponent is not an
integer, the corresponding gray values in PowImage PowImage PowImage PowImage powImage pow_image are set
to 0.
注意
pow_image pow_image PowImage PowImage PowImage pow_image 可在 OpenCL 设备上执行,适用于 byte、int1、int2、uint2、int4 和 real 图像。Note that the results of
the OpenCL code may vary from the results produced by the CPU.
执行信息
支持 OpenCL 计算设备。
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在元组级别上自动并行化。
在通道级别上自动并行化。
在域级别上自动并行化。
参数
Image Image Image Image image image (输入对象) (multichannel-)image(-array) → object HImage HObject HImage Hobject (byte* / int1* / uint2* / int2* / int4* / int8 / real*) *允许用于计算设备
输入图像。
PowImage PowImage PowImage PowImage powImage pow_image (输出对象) (multichannel-)image(-array) → object HImage HObject HImage Hobject * (real)
输出图像。
Exponent Exponent Exponent Exponent exponent exponent (输入控制) number → HTuple Union[int, float] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Power to which the gray values are raised.
默认值:
2
建议值:
0.25, 0.5, 2, 3, 4
替代
gamma_image gamma_image GammaImage GammaImage GammaImage gamma_image
另见
sqrt_image sqrt_image SqrtImage SqrtImage SqrtImage sqrt_image ,
exp_image exp_image ExpImage ExpImage ExpImage exp_image ,
log_image log_image LogImage LogImage LogImage log_image
模块
基础